Bond697

perapu

Jan 3rd, 2012
383
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_118         = dword ptr -118h
  8. .text:00401000 var_114         = dword ptr -114h
  9. .text:00401000 var_110         = dword ptr -110h
  10. .text:00401000 var_10C         = dword ptr -10Ch
  11. .text:00401000 var_108         = dword ptr -108h
  12. .text:00401000 var_104         = dword ptr -104h
  13. .text:00401000 var_4           = dword ptr -4
  14. .text:00401000
  15. .text:00401000                 push    ebp
  16. .text:00401001                 mov     ebp, esp
  17. .text:00401003                 sub     esp, 118h
  18. .text:00401009                 mov     eax, dword_410004
  19. .text:0040100E                 xor     eax, ebp
  20. .text:00401010                 mov     [ebp+var_4], eax
  21. .text:00401013                 push    ebx
  22. .text:00401014                 push    offset unk_40E9D4
  23. .text:00401019                 call    sub_40134F
  24. .text:0040101E                 lea     eax, [ebp+var_104]
  25. .text:00401024                 push    eax
  26. .text:00401025                 push    offset unk_40E9E8
  27. .text:0040102A                 call    sub_40122F
  28. .text:0040102F                 push    10h
  29. .text:00401031                 lea     ecx, [ebp+var_104]
  30. .text:00401037                 push    0
  31. .text:00401039                 push    ecx
  32. .text:0040103A                 call    sub_4016BE
  33. .text:0040103F                 push    offset aII2bytexa ; "ë¦ê-2byteò¥-->"
  34. .text:00401044                 mov     [ebp+var_118], eax
  35. .text:0040104A                 call    sub_40134F
  36. .text:0040104F                 lea     edx, [ebp+var_10C]
  37. .text:00401055                 push    edx
  38. .text:00401056                 push    offset aD       ; "%d"
  39. .text:0040105B                 call    sub_40122F
  40. .text:00401060                 push    offset aPFqrf   ; "Å-önÉö------->"
  41. .text:00401065                 call    sub_40134F
  42. .text:0040106A                 lea     eax, [ebp+var_110]
  43. .text:00401070                 push    eax
  44. .text:00401071                 push    offset aD       ; "%d"
  45. .text:00401076                 call    sub_40122F
  46. .text:0040107B                 push    offset aLcxVVsiVRf ; "ïµò-é+éTë¦é¦Éö:"
  47. .text:00401080                 call    sub_40134F
  48. .text:00401085                 lea     ecx, [ebp+var_114]
  49. .text:0040108B                 push    ecx
  50. .text:0040108C                 push    offset aD       ; "%d"
  51. .text:00401091                 call    sub_40122F
  52. .text:00401096                 push    offset aW       ; "w"
  53. .text:0040109B                 lea     edx, [ebp+var_108]
  54. .text:004010A1                 push    offset aResult_txt ; "result.txt"
  55. .text:004010A6                 push    edx
  56. .text:004010A7                 call    sub_401308
  57. .text:004010AC                 mov     eax, [ebp+var_108]
  58. .text:004010B2                 add     esp, 48h
  59. .text:004010B5                 push    offset unk_40EA30
  60. .text:004010BA                 push    eax
  61. .text:004010BB                 call    sub_4016EA
  62. .text:004010C0                 mov     eax, [ebp+var_10C]
  63. .text:004010C6                 mov     ebx, eax
  64. .text:004010C8                 neg     ebx
  65. .text:004010CA                 add     esp, 8
  66. .text:004010CD                 cmp     ebx, eax
  67. .text:004010CF                 jg      loc_401183
  68. .text:004010D5                 push    esi
  69. .text:004010D6                 push    edi
  70. .text:004010D7                 jmp     short loc_4010E0
  71. .text:004010D7 ; ---------------------------------------------------------------------------
  72. .text:004010D9                 align 10h
  73. .text:004010E0
  74. .text:004010E0 loc_4010E0:                             ; CODE XREF: sub_401000+D7j
  75. .text:004010E0                                         ; sub_401000+17Bj
  76. .text:004010E0                 mov     ecx, [ebp+var_118]
  77. .text:004010E6                 mov     edx, [ebp+var_108]
  78. .text:004010EC                 lea     esi, [ebx+ecx]
  79. .text:004010EF                 push    esi
  80. .text:004010F0                 push    offset a08x     ; "%08X,"
  81. .text:004010F5                 push    edx
  82. .text:004010F6                 call    sub_4016EA
  83. .text:004010FB                 xor     edi, edi
  84. .text:004010FD                 add     esp, 0Ch
  85. .text:00401100                 cmp     [ebp+var_110], edi
  86. .text:00401106                 jle     short loc_40114E
  87. .text:00401108                 jmp     short loc_401110
  88. .text:00401108 ; ---------------------------------------------------------------------------
  89. .text:0040110A                 align 10h
  90. .text:00401110
  91. .text:00401110 loc_401110:                             ; CODE XREF: sub_401000+108j
  92. .text:00401110                                         ; sub_401000+14Cj
  93. .text:00401110                 imul    esi, 41C64E6Dh
  94. .text:00401116                 mov     ecx, [ebp+var_108]
  95. .text:0040111C                 add     esi, 6073h
  96. .text:00401122                 mov     eax, esi
  97. .text:00401124                 shr     eax, 10h
  98. .text:00401127                 and     eax, 1FFFh
  99. .text:0040112C                 imul    eax, [ebp+var_114]
  100. .text:00401133                 shr     eax, 0Dh
  101. .text:00401136                 push    eax
  102. .text:00401137                 push    offset aD       ; "%d"
  103. .text:0040113C                 push    ecx
  104. .text:0040113D                 call    sub_4016EA
  105. .text:00401142                 inc     edi
  106. .text:00401143                 add     esp, 0Ch
  107. .text:00401146                 cmp     edi, [ebp+var_110]
  108. .text:0040114C                 jl      short loc_401110
  109. .text:0040114E
  110. .text:0040114E loc_40114E:                             ; CODE XREF: sub_401000+106j
  111. .text:0040114E                 test    ebx, ebx
  112. .text:00401150                 jnz     short loc_401160
  113. .text:00401152                 mov     edx, [ebp+var_108]
  114. .text:00401158                 push    offset aB       ; "üÜ\n"
  115. .text:0040115D                 push    edx
  116. .text:0040115E                 jmp     short loc_40116C
  117. .text:00401160 ; ---------------------------------------------------------------------------
  118. .text:00401160
  119. .text:00401160 loc_401160:                             ; CODE XREF: sub_401000+150j
  120. .text:00401160                 mov     eax, [ebp+var_108]
  121. .text:00401166                 push    offset asc_40EA48 ; "\n"
  122. .text:0040116B                 push    eax
  123. .text:0040116C
  124. .text:0040116C loc_40116C:                             ; CODE XREF: sub_401000+15Ej
  125. .text:0040116C                 call    sub_4016EA
  126. .text:00401171                 inc     ebx
  127. .text:00401172                 add     esp, 8
  128. .text:00401175                 cmp     ebx, [ebp+var_10C]
  129. .text:0040117B                 jle     loc_4010E0
  130. .text:00401181                 pop     edi
  131. .text:00401182                 pop     esi
  132. .text:00401183
  133. .text:00401183 loc_401183:                             ; CODE XREF: sub_401000+CFj
  134. .text:00401183                 mov     ecx, [ebp+var_108]
  135. .text:00401189                 push    ecx
  136. .text:0040118A                 call    sub_401772
  137. .text:0040118F                 mov     ecx, [ebp+var_4]
  138. .text:00401192                 add     esp, 4
  139. .text:00401195                 xor     ecx, ebp
  140. .text:00401197                 xor     eax, eax
  141. .text:00401199                 pop     ebx
  142. .text:0040119A                 call    sub_4011A3
  143. .text:0040119F                 mov     esp, ebp
  144. .text:004011A1                 pop     ebp
  145. .text:004011A2                 retn
  146. .text:004011A2 sub_401000      endp
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment