0

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

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by PeKa
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.