Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:00498B78 sub_498B78      proc near               ; CODE XREF: sub_422198+1D6Ep
  2. .text:00498B78                                         ; sub_422198+1E7Dp ...
  3. .text:00498B78                 mov     eax, offset loc_62702A
  4. .text:00498B7D                 call    __EH_prolog
  5. .text:00498B82                 sub     esp, 0C34h
  6. .text:00498B88                 mov     eax, dword_79AC74
  7. .text:00498B8D                 push    ebx
  8. .text:00498B8E                 push    edi
  9. .text:00498B8F                 xor     ebx, ebx
  10. .text:00498B91                 cmp     [ebp+8], ebx
  11. .text:00498B94                 mov     edi, ecx
  12. .text:00498B96                 mov     [ebp-10h], eax
  13. .text:00498B99                 mov     [ebp-0C40h], edi
  14. .text:00498B9F                 jz      loc_499075
  15. .text:00498BA5                 cmp     dword_905CE4, ebx
  16. .text:00498BAB                 jz      loc_499075
  17. .text:00498BB1                 push    esi
  18. .text:00498BB2                 mov     esi, [ebp+0Ch]
  19. .text:00498BB5                 cmp     [esi], bl
  20. .text:00498BB7                 jz      loc_499074
  21. .text:00498BBD                 jmp     short loc_498BC5
  22.  
  23.  
  24. ;  EXAMPLE CALL
  25. .text:00423EF3                 mov     ecx, dword_988DF0
  26. .text:00423EF9                 add     esp, 14h
  27. .text:00423EFC                 lea     eax, [ebp+2F0h+var_314]
  28. .text:00423EFF                 push    eax
  29. .text:00423F00                 push    dword_905CE4
  30. .text:00423F06                 call    sub_498B78
  31.  
  32. ;Detour
  33. typedef void (__fastcall* GetChat_t)(int, int, char*);
  34. GetChat_t pGetChat = (GetChat_t)0x498B78;
  35. GetChat_t pTramp_GetChat = NULL;
  36.  
  37. static void __fastcall det_GetChat(int b, int c, char* d)
  38. {
  39.   //MessageBox(NULL, szString, "Command", 0);
  40.   pTramp_GetChat(a, b, c, d);
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement