Advertisement
Guest User

Untitled

a guest
Sep 8th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void CallMe(int *firstValue, int *secondValue)
  2. {
  3. 00CB2600  push        ebp  
  4. 00CB2601  mov         ebp,esp
  5. 00CB2603  sub         esp,0CCh
  6. 00CB2609  push        ebx  
  7. 00CB260A  push        esi  
  8. 00CB260B  push        edi  
  9. 00CB260C  lea         edi,[ebp-0CCh]
  10. 00CB2612  mov         ecx,33h
  11. 00CB2617  mov         eax,0CCCCCCCCh
  12. 00CB261C  rep stos    dword ptr es:[edi]
  13.     if (*firstValue != *secondValue)
  14. 00CB261E  mov         eax,dword ptr [firstValue]
  15. 00CB2621  mov         ecx,dword ptr [secondValue]
  16. 00CB2624  mov         edx,dword ptr [eax]
  17. 00CB2626  cmp         edx,dword ptr [ecx]
  18. 00CB2628  je          CallMe+44h (0CB2644h)
  19.     {
  20.         int tempValue = *firstValue;
  21. 00CB262A  mov         eax,dword ptr [firstValue]
  22. 00CB262D  mov         ecx,dword ptr [eax]
  23. 00CB262F  mov         dword ptr [tempValue],ecx
  24.         *firstValue = *secondValue;
  25. 00CB2632  mov         eax,dword ptr [firstValue]
  26. 00CB2635  mov         ecx,dword ptr [secondValue]
  27. 00CB2638  mov         edx,dword ptr [ecx]
  28. 00CB263A  mov         dword ptr [eax],edx
  29.         *secondValue = tempValue;
  30. 00CB263C  mov         eax,dword ptr [secondValue]
  31. 00CB263F  mov         ecx,dword ptr [tempValue]
  32. 00CB2642  mov         dword ptr [eax],ecx
  33.     }
  34. }
  35. 00CB2644  pop         edi  
  36. 00CB2645  pop         esi  
  37. 00CB2646  pop         ebx  
  38. 00CB2647  mov         esp,ebp
  39. 00CB2649  pop         ebp  
  40. 00CB264A  ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement