Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void JmpFunction::operator() ()
- {
- g_CurrJmpFunc = this;
- if(!m_PreparedArguments) PrepareArguments();
- DWORD t_Addy;
- if(m_Offset==0)
- t_Addy = (DWORD)m_Function;
- else t_Addy = m_Offset;
- int t_Diff = m_Offset-(DWORD)m_Function;
- int t_StackSize = m_Stack.size();
- int t_StackSizeBytes = t_StackSize*sizeof(void*);
- for(int i = t_StackSize-1; i>=0; i--)
- {
- DWORD t_Argument = (m_Arguments[i]);
- __asm
- {
- mov eax, t_Argument
- push eax
- }
- }
- __asm
- {
- call t_Addy
- add esp, t_StackSizeBytes
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment