Guest User

Untitled

a guest
Jun 2nd, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. void JmpFunction::operator() ()
  2. {
  3. g_CurrJmpFunc = this;
  4.  
  5. if(!m_PreparedArguments) PrepareArguments();
  6.  
  7. DWORD t_Addy;
  8. if(m_Offset==0)
  9. t_Addy = (DWORD)m_Function;
  10. else t_Addy = m_Offset;
  11.  
  12. int t_Diff = m_Offset-(DWORD)m_Function;
  13.  
  14. int t_StackSize = m_Stack.size();
  15. int t_StackSizeBytes = t_StackSize*sizeof(void*);
  16.  
  17. for(int i = t_StackSize-1; i>=0; i--)
  18. {
  19. DWORD t_Argument = (m_Arguments[i]);
  20. __asm
  21. {
  22. mov eax, t_Argument
  23. push eax
  24. }
  25. }
  26.  
  27. __asm
  28. {
  29. call t_Addy
  30. add esp, t_StackSizeBytes
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment