Guest User

Untitled

a guest
Oct 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. hook is called on 0x4A1FA0, using the old m1 client
  2.  
  3. DWORD ConsoleTextJmpBack = 0x4A1FA5;
  4.  
  5. void __declspec(naked) PrintHookStub()
  6. {
  7. char* FirstArg;
  8. char* TextBuffer;
  9.  
  10. __asm{
  11. pop FirstArg
  12. pop TextBuffer
  13. }
  14.  
  15. ProcessText(TextBuffer);
  16.  
  17. __asm{
  18. push TextBuffer
  19. push FirstArg
  20. mov eax, 800h
  21. jmp ConsoleTextJmpBack
  22. }
  23. }
  24.  
  25. I get an access violation exception
Add Comment
Please, Sign In to add comment