Advertisement
KirillMysnik

Untitled

Apr 20th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:10436F40                         ; =============== S U B R O U T I N E =======================================
  2. .text:10436F40
  3. .text:10436F40                         ; Attributes: bp-based frame
  4. .text:10436F40
  5. .text:10436F40                         sub_10436F40    proc near               ; CODE XREF: sub_105031B0+CAp
  6. .text:10436F40                                                                 ; sub_1051A3C0+5Ep ...
  7. .text:10436F40
  8. .text:10436F40                         arg_0           = dword ptr  8
  9. .text:10436F40                         arg_4           = dword ptr  0Ch
  10. .text:10436F40
  11. .text:10436F40 55                                      push    ebp
  12. .text:10436F41 8B EC                                   mov     ebp, esp
  13. .text:10436F43 56                                      push    esi
  14. .text:10436F44 8B F1                                   mov     esi, ecx
  15. .text:10436F46 8B 0D 10 71 97 10                       mov     ecx, dword_10977110
  16. .text:10436F4C 8B 01                                   mov     eax, [ecx]
  17. .text:10436F4E FF 90 1C 02 00 00                       call    dword ptr [eax+21Ch]
  18. .text:10436F54 83 F8 03                                cmp     eax, 3
  19. .text:10436F57 0F 85 13 01 00 00                       jnz     loc_10437070
  20. .text:10436F5D 8B 45 0C                                mov     eax, [ebp+arg_4]
  21. .text:10436F60 83 F8 02                                cmp     eax, 2
  22. .text:10436F63 75 4C                                   jnz     short loc_10436FB1
  23. .text:10436F65 8B 96 7C 0C 00 00                       mov     edx, [esi+0C7Ch]
  24. .text:10436F6B 83 FA FF                                cmp     edx, 0FFFFFFFFh
  25. .text:10436F6E 74 1F                                   jz      short loc_10436F8F
  26. .text:10436F70 A1 04 77 8E 10                          mov     eax, off_108E7704
  27. .text:10436F75 8B CA                                   mov     ecx, edx
  28. .text:10436F77 81 E1 FF 0F 00 00                       and     ecx, 0FFFh
  29. .text:10436F7D C1 EA 0C                                shr     edx, 0Ch
  30. .text:10436F80 03 C9                                   add     ecx, ecx
  31. .text:10436F82 39 54 C8 08                             cmp     [eax+ecx*8+8], edx
  32. .text:10436F86 75 07                                   jnz     short loc_10436F8F
  33. .text:10436F88 83 7C C8 04 00                          cmp     dword ptr [eax+ecx*8+4], 0
  34. .text:10436F8D 75 12                                   jnz     short loc_10436FA1
  35. .text:10436F8F
  36. .text:10436F8F                         loc_10436F8F:                           ; CODE XREF: sub_10436F40+2Ej
  37. .text:10436F8F                                                                 ; sub_10436F40+46j
  38. .text:10436F8F A1 10 71 97 10                          mov     eax, dword_10977110
  39. .text:10436F94 80 B8 31 04 00 00 00                    cmp     byte ptr [eax+431h], 0
  40. .text:10436F9B 0F 84 CF 00 00 00                       jz      loc_10437070
  41. .text:10436FA1
  42. .text:10436FA1                         loc_10436FA1:                           ; CODE XREF: sub_10436F40+4Dj
  43. .text:10436FA1 8B 45 08                                mov     eax, [ebp+arg_0]
  44. .text:10436FA4 8B 8E 7C 0C 00 00                       mov     ecx, [esi+0C7Ch]
  45. .text:10436FAA 5E                                      pop     esi
  46. .text:10436FAB 89 08                                   mov     [eax], ecx
  47. .text:10436FAD 5D                                      pop     ebp
  48. .text:10436FAE C2 08 00                                retn    8
  49. .text:10436FB1                         ; ---------------------------------------------------------------------------
  50. .text:10436FB1
  51. .text:10436FB1                         loc_10436FB1:                           ; CODE XREF: sub_10436F40+23j
  52. .text:10436FB1 83 F8 03                                cmp     eax, 3
  53. .text:10436FB4 0F 85 B6 00 00 00                       jnz     loc_10437070
  54. .text:10436FBA 6A 00                                   push    0
  55. .text:10436FBC 8D 8E 80 0C 00 00                       lea     ecx, [esi+0C80h]
  56. .text:10436FC2 E8 A9 F8 CA FF                          call    sub_100E6870
  57. .text:10436FC7 84 C0                                   test    al, al
  58. .text:10436FC9 0F 84 91 00 00 00                       jz      loc_10437060
  59. .text:10436FCF A1 10 71 97 10                          mov     eax, dword_10977110
  60. .text:10436FD4 80 B8 31 04 00 00 00                    cmp     byte ptr [eax+431h], 0
  61. .text:10436FDB 0F 85 7F 00 00 00                       jnz     loc_10437060
  62. .text:10436FE1 6A 00                                   push    0
  63. .text:10436FE3 68 78 BC 93 10                          push    offset off_1093BC78
  64. .text:10436FE8 68 40 08 93 10                          push    offset off_10930840
  65. .text:10436FED 6A 00                                   push    0
  66. .text:10436FEF 68 18 B7 78 10                          push    offset aTeam_train_wat ; "team_train_watcher"
  67. .text:10436FF4 6A 00                                   push    0
  68. .text:10436FF6 B9 28 EC 95 10                          mov     ecx, offset dword_1095EC28
  69. .text:10436FFB E8 20 DF DA FF                          call    sub_101E4F20
  70. .text:10437000 50                                      push    eax
  71. .text:10437001 E8 40 39 26 00                          call    sub_1069A946
  72. .text:10437006 83 C4 14                                add     esp, 14h
  73. .text:10437009 85 C0                                   test    eax, eax
  74. .text:1043700B 74 53                                   jz      short loc_10437060
  75. .text:1043700D 8D 49 00                                lea     ecx, [ecx+0]
  76. .text:10437010
  77. .text:10437010                         loc_10437010:                           ; CODE XREF: sub_10436F40+102j
  78. .text:10437010 80 B8 64 03 00 00 00                    cmp     byte ptr [eax+364h], 0
  79. .text:10437017 74 3B                                   jz      short loc_10437054
  80. .text:10437019 6A 00                                   push    0
  81. .text:1043701B 68 78 BC 93 10                          push    offset off_1093BC78
  82. .text:10437020 68 40 08 93 10                          push    offset off_10930840
  83. .text:10437025 6A 00                                   push    0
  84. .text:10437027 68 18 B7 78 10                          push    offset aTeam_train_wat ; "team_train_watcher"
  85. .text:1043702C 50                                      push    eax
  86. .text:1043702D B9 28 EC 95 10                          mov     ecx, offset dword_1095EC28
  87. .text:10437032 E8 E9 DE DA FF                          call    sub_101E4F20
  88. .text:10437037 50                                      push    eax
  89. .text:10437038 E8 09 39 26 00                          call    sub_1069A946
  90. .text:1043703D 83 C4 14                                add     esp, 14h
  91. .text:10437040 85 C0                                   test    eax, eax
  92. .text:10437042 75 CC                                   jnz     short loc_10437010
  93. .text:10437044 8B 45 08                                mov     eax, [ebp+arg_0]
  94. .text:10437047 8B 8E 80 0C 00 00                       mov     ecx, [esi+0C80h]
  95. .text:1043704D 5E                                      pop     esi
  96. .text:1043704E 89 08                                   mov     [eax], ecx
  97. .text:10437050 5D                                      pop     ebp
  98. .text:10437051 C2 08 00                                retn    8
  99. .text:10437054                         ; ---------------------------------------------------------------------------
  100. .text:10437054
  101. .text:10437054                         loc_10437054:                           ; CODE XREF: sub_10436F40+D7j
  102. .text:10437054 50                                      push    eax
  103. .text:10437055 8D 8E 80 0C 00 00                       lea     ecx, [esi+0C80h]
  104. .text:1043705B E8 50 99 EE FF                          call    sub_103209B0
  105. .text:10437060
  106. .text:10437060                         loc_10437060:                           ; CODE XREF: sub_10436F40+89j
  107. .text:10437060                                                                 ; sub_10436F40+9Bj ...
  108. .text:10437060 8B 45 08                                mov     eax, [ebp+arg_0]
  109. .text:10437063 8B 8E 80 0C 00 00                       mov     ecx, [esi+0C80h]
  110. .text:10437069 5E                                      pop     esi
  111. .text:1043706A 89 08                                   mov     [eax], ecx
  112. .text:1043706C 5D                                      pop     ebp
  113. .text:1043706D C2 08 00                                retn    8
  114. .text:10437070                         ; ---------------------------------------------------------------------------
  115. .text:10437070
  116. .text:10437070                         loc_10437070:                           ; CODE XREF: sub_10436F40+17j
  117. .text:10437070                                                                 ; sub_10436F40+5Bj ...
  118. .text:10437070 8B 45 08                                mov     eax, [ebp+arg_0]
  119. .text:10437073 5E                                      pop     esi
  120. .text:10437074 C7 00 FF FF FF FF                       mov     dword ptr [eax], 0FFFFFFFFh
  121. .text:1043707A 5D                                      pop     ebp
  122. .text:1043707B C2 08 00                                retn    8
  123. .text:1043707B                         sub_10436F40    endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement