Hello everyone.
I need to know what FindResourceA is looking for. I am adding this function to prevent people from opeaning some aplications on game client. I'd like to see some exaples too. Could someone also check if this function look fine:

PUSH ESI
MOV ESI,DWORD PTR DS:[<&kernel32.FindRes>;  kernel32.FindResourceA
PUSH EDI                                 ; /ResourceType
PUSH 006E8E30                   ; |ResourceName = "lalalalala"
MOV EDI,0                                ; |
PUSH EDI                                 ; |hModule => NULL
CALL ESI                                 ; \FindResourceA
TEST EAX,EAX
JE SHORT 0045E6F2
XOR EAX,EAX
INC EAX
JMP SHORT Client-r.0045E724
PUSH 006E8E08                   ;  ASCII "lolololo"
PUSH EDI
CALL ESI
TEST EAX,EAX
JNZ SHORT 0045E6ED
PUSH 006E8DE8                   ;  ASCII "ioioioioioi"
PUSH EDI
CALL ESI
TEST EAX,EAX
JNZ SHORT 0045E6ED
PUSH 006E8DD8                   ;  ASCII "asasas"
PUSH EDI
CALL ESI
TEST EAX,EAX
JNZ SHORT 0045E6ED
PUSH 006E8DC4                   ;  ASCII "awawaw"
PUSH EDI
CALL ESI
NEG EAX
SBB EAX,EAX
NEG EAX
POP EDI
POP ESI
RETN

I build FindResourceA from FindWindowA.
I appreciate any help in this thread.
Best regards.

PS: Im using ollydbg

delete thread if noone is going to say something...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.