Hello Guys .
i m trying to hook the 2nd Recv function the hook is success and just recv 1 packet after that the game is crash Here the code
Source code
Here is the function in ollydbg
[Only registered and activated users can see links. Click Here To Register...]
i m trying to hook the 2nd Recv function the hook is success and just recv 1 packet after that the game is crash Here the code
Source code
Code:
int MyRecvBack = 0x0052E860 + 4;
int Naked RecvDetour(char* Data, LPCSTR format,...)
{
__asm
{
push ebp
mov ebp, esp
push ecx
}
Color(15);
printf(RecvText, 1, format);
__asm
{
jmp MyRecvBack;
}
}
Intercept( INST_JMP , 0x0052E860, ( DWORD) RecvDetour , 5);
[Only registered and activated users can see links. Click Here To Register...]