Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:00498B78 sub_498B78 proc near ; CODE XREF: sub_422198+1D6Ep
- .text:00498B78 ; sub_422198+1E7Dp ...
- .text:00498B78 mov eax, offset loc_62702A
- .text:00498B7D call __EH_prolog
- .text:00498B82 sub esp, 0C34h
- .text:00498B88 mov eax, dword_79AC74
- .text:00498B8D push ebx
- .text:00498B8E push edi
- .text:00498B8F xor ebx, ebx
- .text:00498B91 cmp [ebp+8], ebx
- .text:00498B94 mov edi, ecx
- .text:00498B96 mov [ebp-10h], eax
- .text:00498B99 mov [ebp-0C40h], edi
- .text:00498B9F jz loc_499075
- .text:00498BA5 cmp dword_905CE4, ebx
- .text:00498BAB jz loc_499075
- .text:00498BB1 push esi
- .text:00498BB2 mov esi, [ebp+0Ch]
- .text:00498BB5 cmp [esi], bl
- .text:00498BB7 jz loc_499074
- .text:00498BBD jmp short loc_498BC5
- ; EXAMPLE CALL
- .text:00423EF3 mov ecx, dword_988DF0
- .text:00423EF9 add esp, 14h
- .text:00423EFC lea eax, [ebp+2F0h+var_314]
- .text:00423EFF push eax
- .text:00423F00 push dword_905CE4
- .text:00423F06 call sub_498B78
- ;Detour
- typedef void (__fastcall* GetChat_t)(int, int, char*);
- GetChat_t pGetChat = (GetChat_t)0x498B78;
- GetChat_t pTramp_GetChat = NULL;
- static void __fastcall det_GetChat(int b, int c, char* d)
- {
- //MessageBox(NULL, szString, "Command", 0);
- pTramp_GetChat(a, b, c, d);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement