Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:005D0500 ; =============== S U B R O U T I N E =======================================
  2. .text:005D0500
  3. .text:005D0500
  4. .text:005D0500 sub_5D0500      proc near               ; CODE XREF: sub_5C9290+29p
  5. .text:005D0500
  6. .text:005D0500 arg_0           = qword ptr  4
  7. .text:005D0500 arg_8           = dword ptr  0Ch
  8. .text:005D0500 arg_C           = dword ptr  10h
  9. .text:005D0500
  10. .text:005D0500                 push    ebx
  11. .text:005D0501                 push    esi
  12. .text:005D0502                 mov     eax, [esp+8+arg_C]
  13. .text:005D0506                 or      eax, eax
  14. .text:005D0508                 jnz     short loc_5D0522
  15. .text:005D050A                 mov     ecx, [esp+8+arg_8]
  16. .text:005D050E                 mov     eax, dword ptr [esp+8+arg_0+4]
  17. .text:005D0512                 xor     edx, edx
  18. .text:005D0514                 div     ecx
  19. .text:005D0516                 mov     ebx, eax
  20. .text:005D0518                 mov     eax, dword ptr [esp+8+arg_0]
  21. .text:005D051C                 div     ecx
  22. .text:005D051E                 mov     edx, ebx
  23. .text:005D0520                 jmp     short loc_5D0563
  24. .text:005D0522 ; ---------------------------------------------------------------------------
  25. .text:005D0522
  26. .text:005D0522 loc_5D0522:                             ; CODE XREF: sub_5D0500+8j
  27. .text:005D0522                 mov     ecx, eax
  28. .text:005D0524                 mov     ebx, [esp+8+arg_8]
  29. .text:005D0528                 mov     edx, dword ptr [esp+8+arg_0+4]
  30. .text:005D052C                 mov     eax, dword ptr [esp+8+arg_0]
  31. .text:005D0530
  32. .text:005D0530 loc_5D0530:                             ; CODE XREF: sub_5D0500+3Aj
  33. .text:005D0530                 shr     ecx, 1
  34. .text:005D0532                 rcr     ebx, 1
  35. .text:005D0534                 shr     edx, 1
  36. .text:005D0536                 rcr     eax, 1
  37. .text:005D0538                 or      ecx, ecx
  38. .text:005D053A                 jnz     short loc_5D0530
  39. .text:005D053C                 div     ebx
  40. .text:005D053E                 mov     esi, eax
  41. .text:005D0540                 mul     [esp+8+arg_C]
  42. .text:005D0544                 mov     ecx, eax
  43. .text:005D0546                 mov     eax, [esp+8+arg_8]
  44. .text:005D054A                 mul     esi
  45. .text:005D054C                 add     edx, ecx
  46. .text:005D054E                 jb      short loc_5D055E
  47. .text:005D0550                 cmp     edx, dword ptr [esp+8+arg_0+4]
  48. .text:005D0554                 ja      short loc_5D055E
  49. .text:005D0556                 jb      short loc_5D055F
  50. .text:005D0558                 cmp     eax, dword ptr [esp+8+arg_0]
  51. .text:005D055C                 jbe     short loc_5D055F
  52. .text:005D055E
  53. .text:005D055E loc_5D055E:                             ; CODE XREF: sub_5D0500+4Ej
  54. .text:005D055E                                         ; sub_5D0500+54j
  55. .text:005D055E                 dec     esi
  56. .text:005D055F
  57. .text:005D055F loc_5D055F:                             ; CODE XREF: sub_5D0500+56j
  58. .text:005D055F                                         ; sub_5D0500+5Cj
  59. .text:005D055F                 xor     edx, edx
  60. .text:005D0561                 mov     eax, esi
  61. .text:005D0563
  62. .text:005D0563 loc_5D0563:                             ; CODE XREF: sub_5D0500+20j
  63. .text:005D0563                 pop     esi
  64. .text:005D0564                 pop     ebx
  65. .text:005D0565                 retn    10h
  66. .text:005D0565 sub_5D0500      endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement