Cita:
the code in blue is what you are looking for. So you hook that and ur offset is this 0x4DD7C notice where its found in the sub.
so hooking it is quite easy
Code:
Code:
so hooking it is quite easy
Code:
Código:
then in load library like so just call your function.int(*teh_Bypass)( int a1, size_t Count, char *Dest ); int Bypass_Hook( int a1, size_t Count, char *Dest ) { //Your log code goes here. return orig_Bypass(a1,Count,Dest); }
Code:
Código:
all credits go to okiedokie i just updated from where he left off enjoy.teh_Bypass = (int (__cdecl *)(int,size_t,char *))DetourFunction( ( PBYTE )pBase + 0x4DD7C, ( PBYTE )Bypass_Hook ); __asm mov [ teh_Bypass ], eax;