Bond697

perapu_bw

Jan 3rd, 2012
428
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:00401000 ; =============== S U B R O U T I N E =======================================
  2. .text:00401000
  3. .text:00401000 ; Attributes: bp-based frame
  4. .text:00401000
  5. .text:00401000 sub_401000      proc near               ; CODE XREF: start-5Bp
  6. .text:00401000
  7. .text:00401000 var_128         = dword ptr -128h
  8. .text:00401000 var_118         = dword ptr -118h
  9. .text:00401000 var_114         = dword ptr -114h
  10. .text:00401000 var_110         = dword ptr -110h
  11. .text:00401000 var_108         = dword ptr -108h
  12. .text:00401000 var_4           = dword ptr -4
  13. .text:00401000
  14. .text:00401000                 push    ebp
  15. .text:00401001                 mov     ebp, esp
  16. .text:00401003                 and     esp, 0FFFFFFF8h
  17. .text:00401006                 sub     esp, 11Ch
  18. .text:0040100C                 mov     eax, dword_410004
  19. .text:00401011                 xor     eax, esp
  20. .text:00401013                 mov     [esp+11Ch+var_4], eax
  21. .text:0040101A                 push    ebx
  22. .text:0040101B                 push    esi
  23. .text:0040101C                 push    edi
  24. .text:0040101D                 push    offset unk_40E9D0
  25. .text:00401022                 call    sub_40164D
  26. .text:00401027                 lea     eax, [esp+12Ch+var_108]
  27. .text:0040102B                 push    eax
  28. .text:0040102C                 push    offset unk_40E9E4
  29. .text:00401031                 call    sub_40152D
  30. .text:00401036                 push    10h
  31. .text:00401038                 lea     ecx, [esp+138h+var_108]
  32. .text:0040103C                 push    0
  33. .text:0040103E                 push    ecx
  34. .text:0040103F                 call    sub_401484
  35. .text:00401044                 push    offset aPFqrf   ; "Å-önÉö------->"
  36. .text:00401049                 mov     edi, eax
  37. .text:0040104B                 mov     esi, edx
  38. .text:0040104D                 call    sub_40164D
  39. .text:00401052                 lea     edx, [esp+144h+var_114]
  40. .text:00401056                 push    edx
  41. .text:00401057                 push    offset aD       ; "%d"
  42. .text:0040105C                 call    sub_40152D
  43. .text:00401061                 push    offset aLcxVVsiVRf ; "ïµò-é+éTë¦é¦Éö:"
  44. .text:00401066                 call    sub_40164D
  45. .text:0040106B                 lea     eax, [esp+150h+var_110]
  46. .text:0040106F                 push    eax
  47. .text:00401070                 push    offset aD       ; "%d"
  48. .text:00401075                 call    sub_40152D
  49. .text:0040107A                 push    offset aW       ; "w"
  50. .text:0040107F                 lea     ecx, [esp+15Ch+var_118]
  51. .text:00401083                 push    offset aResult_txt ; "result.txt"
  52. .text:00401088                 push    ecx
  53. .text:00401089                 call    sub_401606
  54. .text:0040108E                 mov     edx, [esp+164h+var_118]
  55. .text:00401092                 push    offset unk_40EA1C
  56. .text:00401097                 push    edx
  57. .text:00401098                 call    sub_40170A
  58. .text:0040109D                 mov     eax, [esp+16Ch+var_118]
  59. .text:004010A1                 add     esp, 44h
  60. .text:004010A4                 push    esi
  61. .text:004010A5                 push    edi
  62. .text:004010A6                 push    offset a08llx   ; "%08llX,"
  63. .text:004010AB                 push    eax
  64. .text:004010AC                 call    sub_40170A
  65. .text:004010B1                 xor     ebx, ebx
  66. .text:004010B3                 add     esp, 10h
  67. .text:004010B6                 cmp     [esp+128h+var_114], ebx
  68. .text:004010BA                 jle     short loc_40111E
  69. .text:004010BC                 lea     esp, [esp+0]
  70. .text:004010C0
  71. .text:004010C0 loc_4010C0:                             ; CODE XREF: sub_401000+11Cj
  72. .text:004010C0                 push    5D588B65h
  73. .text:004010C5                 push    6C078965h
  74. .text:004010CA                 push    esi
  75. .text:004010CB                 push    edi
  76. .text:004010CC                 call    sub_402C10
  77. .text:004010D1                 add     eax, 269EC3h
  78. .text:004010D6                 adc     edx, 0
  79. .text:004010D9                 mov     edi, eax
  80. .text:004010DB                 mov     esi, edx
  81. .text:004010DD                 xor     eax, eax
  82. .text:004010DF                 mov     ecx, esi
  83. .text:004010E1                 shld    eax, ecx, 0Dh
  84. .text:004010E5                 mov     ecx, eax
  85. .text:004010E7                 mov     eax, [esp+128h+var_110]
  86. .text:004010EB                 cdq
  87. .text:004010EC                 push    edx
  88. .text:004010ED                 push    eax
  89. .text:004010EE                 push    0
  90. .text:004010F0                 push    ecx
  91. .text:004010F1                 call    sub_402C10
  92. .text:004010F6                 shrd    eax, edx, 0Dh
  93. .text:004010FA                 shr     edx, 0Dh
  94. .text:004010FD                 add     eax, 1
  95. .text:00401100                 adc     edx, 0
  96. .text:00401103                 push    edx
  97. .text:00401104                 mov     edx, [esp+12Ch+var_118]
  98. .text:00401108                 push    eax
  99. .text:00401109                 push    offset aD       ; "%d"
  100. .text:0040110E                 push    edx
  101. .text:0040110F                 call    sub_40170A
  102. .text:00401114                 inc     ebx
  103. .text:00401115                 add     esp, 10h
  104. .text:00401118                 cmp     ebx, [esp+128h+var_114]
  105. .text:0040111C                 jl      short loc_4010C0
  106. .text:0040111E
  107. .text:0040111E loc_40111E:                             ; CODE XREF: sub_401000+BAj
  108. .text:0040111E                 mov     eax, [esp+128h+var_118]
  109. .text:00401122                 push    offset aB       ; "üÜ\n"
  110. .text:00401127                 push    eax
  111. .text:00401128                 call    sub_40170A
  112. .text:0040112D                 mov     ecx, [esp+130h+var_118]
  113. .text:00401131                 push    ecx
  114. .text:00401132                 call    sub_401792
  115. .text:00401137                 mov     ecx, [esp+134h+var_4]
  116. .text:0040113E                 add     esp, 0Ch
  117. .text:00401141                 pop     edi
  118. .text:00401142                 pop     esi
  119. .text:00401143                 pop     ebx
  120. .text:00401144                 xor     ecx, esp
  121. .text:00401146                 xor     eax, eax
  122. .text:00401148                 call    sub_401151
  123. .text:0040114D                 mov     esp, ebp
  124. .text:0040114F                 pop     ebp
  125. .text:00401150                 retn
  126.  
  127.  
  128. .text:00402C10 ; =============== S U B R O U T I N E =======================================
  129. .text:00402C10
  130. .text:00402C10
  131. .text:00402C10 sub_402C10      proc near               ; CODE XREF: sub_401000+CCp
  132. .text:00402C10                                         ; sub_401000+F1p ...
  133. .text:00402C10
  134. .text:00402C10 arg_0           = dword ptr  4
  135. .text:00402C10 arg_4           = dword ptr  8
  136. .text:00402C10 arg_8           = dword ptr  0Ch
  137. .text:00402C10 arg_C           = dword ptr  10h
  138. .text:00402C10
  139. .text:00402C10                 mov     eax, [esp+arg_4]
  140. .text:00402C14                 mov     ecx, [esp+arg_C]
  141. .text:00402C18                 or      ecx, eax
  142. .text:00402C1A                 mov     ecx, [esp+arg_8]
  143. .text:00402C1E                 jnz     short loc_402C29
  144. .text:00402C20                 mov     eax, [esp+arg_0]
  145. .text:00402C24                 mul     ecx
  146. .text:00402C26                 retn    10h
  147. .text:00402C29 ; ---------------------------------------------------------------------------
  148. .text:00402C29
  149. .text:00402C29 loc_402C29:                             ; CODE XREF: sub_402C10+Ej
  150. .text:00402C29                 push    ebx
  151. .text:00402C2A                 mul     ecx
  152. .text:00402C2C                 mov     ebx, eax
  153. .text:00402C2E                 mov     eax, [esp+4+arg_0]
  154. .text:00402C32                 mul     [esp+4+arg_C]
  155. .text:00402C36                 add     ebx, eax
  156. .text:00402C38                 mov     eax, [esp+4+arg_0]
  157. .text:00402C3C                 mul     ecx
  158. .text:00402C3E                 add     edx, ebx
  159. .text:00402C40                 pop     ebx
  160. .text:00402C41                 retn    10h
  161. .text:00402C41 sub_402C10      endp
  162. .text:00402C41
  163. .text:00402C41 ; ---------------------------------------------------------------------------
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment