Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. signed int __thiscall sub_100016CD(int this, int a2)
  2. {
  3. char v2; // dl@1
  4. signed int result; // eax@3
  5. int v4; // esi@3
  6.  
  7. v2 = a2 != 0;
  8. if ( *(_BYTE *)(this + 130) )
  9. v2 = v2 == 0;
  10. v4 = *(_WORD *)(this + 128);
  11. result = *(_WORD *)(this + 128);
  12. if ( *(_WORD *)(this + 128) )
  13. {
  14. if ( result > 0 )
  15. {
  16. if ( result <= 8 )
  17. {
  18. *(_BYTE *)(this + 121) &= v2;
  19. *(_WORD *)(this + 128) = v4 - 1;
  20. }
  21. else
  22. {
  23. if ( (unsigned int)(result - 21) <= 7 )
  24. {
  25. *(_BYTE *)(this + 121) |= v2;
  26. if ( v4 == 21 )
  27. result = 0;
  28. else
  29. --result;
  30. *(_WORD *)(this + 128) = result;
  31. }
  32. }
  33. }
  34. }
  35. else
  36. {
  37. *(_BYTE *)(this + 121) = v2;
  38. }
  39. return result;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement