void __declspec(naked) HOOKCChat__Draw(){ /* .text:1000EA75 00C sub esp, 10h .text:1000EA78 01C push ebx .text:1000EA79 020 push esi .text:1000EA7A 024 mov esi, ecx .text:1000EA7C 024 mov eax, [esi+0A6Dh] */ _asm { push ecx push ecx call CChat__Draw pop ecx sub esp,16 push ebx push esi mov esi,ecx mov eax,vcmpaddr add eax,0xEA7C jmp eax } } hook: MakeJump(vcmpaddr+0xea75, 7, HOOKCChat__Draw);