Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:00535330 ; =============== S U B R O U T I N E =======================================
  2. .text:00535330
  3. .text:00535330
  4. .text:00535330 sub_535330      proc near               ; DATA XREF: .rdata:005DE208o
  5. .text:00535330                                         ; .rdata:005DFD38o ...
  6. .text:00535330
  7. .text:00535330 var_8           = dword ptr -8
  8. .text:00535330 var_4           = dword ptr -4
  9. .text:00535330 arg_0           = dword ptr  4
  10. .text:00535330 arg_4           = dword ptr  8
  11. .text:00535330 arg_8           = dword ptr  0Ch
  12. .text:00535330
  13. .text:00535330                 sub     esp, 8
  14. .text:00535333                 push    ebx
  15. .text:00535334                 push    ebp
  16. .text:00535335                 push    esi
  17. .text:00535336                 mov     esi, [esp+14h+arg_8]
  18. .text:0053533A                 cmp     esi, 0FFFFFFFFh
  19. .text:0053533D                 push    edi
  20. .text:0053533E                 mov     edi, ecx
  21. .text:00535340                 jz      short loc_535350
  22. .text:00535342                 call    sub_54BB00
  23. .text:00535347                 cmp     esi, eax
  24. .text:00535349                 mov     byte ptr [esp+18h+arg_8], 0
  25. .text:0053534E                 jnz     short loc_535355
  26. .text:00535350
  27. .text:00535350 loc_535350:                             ; CODE XREF: sub_535330+10j
  28. .text:00535350                 mov     byte ptr [esp+18h+arg_8], 1
  29. .text:00535355
  30. .text:00535355 loc_535355:                             ; CODE XREF: sub_535330+1Ej
  31. .text:00535355                 call    ds:?SinglePlayer@@YA_NXZ ; SinglePlayer(void)
  32. .text:0053535B                 test    al, al
  33. .text:0053535D                 jz      short loc_53536B
  34. .text:0053535F                 mov     al, byte ptr [esp+18h+arg_8]
  35. .text:00535363                 test    al, al
  36. .text:00535365                 jz      loc_535456
  37. .text:0053536B
  38. .text:0053536B loc_53536B:                             ; CODE XREF: sub_535330+2Dj
  39. .text:0053536B                 lea     ebp, [edi-4]
  40. .text:0053536E                 test    ebp, ebp
  41. .text:00535370                 jz      short loc_535391
  42. .text:00535372                 lea     eax, [ebp+0Ch]
  43. .text:00535375                 test    eax, eax
  44. .text:00535377                 jz      short loc_535391
  45. .text:00535379                 mov     eax, [eax+4]
  46. .text:0053537C                 test    eax, eax
  47. .text:0053537E                 jz      short loc_535391
  48. .text:00535380                 mov     ecx, [eax+4Ch]
  49. .text:00535383                 and     ecx, 103h
  50. .text:00535389                 cmp     ecx, 103h
  51. .text:0053538F                 jz      short loc_535393
  52. .text:00535391
  53. .text:00535391 loc_535391:                             ; CODE XREF: sub_535330+40j
  54. .text:00535391                                         ; sub_535330+47j ...
  55. .text:00535391                 xor     eax, eax
  56. .text:00535393
  57. .text:00535393 loc_535393:                             ; CODE XREF: sub_535330+5Fj
  58. .text:00535393                 mov     edx, [esp+18h+arg_0]
  59. .text:00535397                 xor     ecx, ecx
  60. .text:00535399                 mov     cx, [edx]
  61. .text:0053539C                 push    ecx
  62. .text:0053539D                 lea     ecx, [eax+0E4h]
  63. .text:005353A3                 call    ds:?FindByID@CEquipManager@@QAEPAVCEquip@@G@Z ; CEquipManager::FindByID(ushort)
  64. .text:005353A9                 mov     esi, eax
  65. .text:005353AB                 test    esi, esi
  66. .text:005353AD                 jz      loc_535456
  67. .text:005353B3                 mov     edx, [esi]
  68. .text:005353B5                 mov     ecx, esi
  69. .text:005353B7                 call    dword ptr [edx+8]
  70. .text:005353BA                 test    al, al
  71. .text:005353BC                 jnz     loc_535456
  72. .text:005353C2                 mov     ebx, [esp+18h+arg_4]
  73. .text:005353C6                 test    bl, bl
  74. .text:005353C8                 jnz     short loc_535409
  75. .text:005353CA                 cmp     dword ptr [esi+14h], 20000h
  76. .text:005353D1                 jnz     short loc_535409
  77. .text:005353D3                 mov     eax, [edi+0Ch]
  78. .text:005353D6                 test    eax, eax
  79. .text:005353D8                 jz      short loc_5353EF
  80. .text:005353DA                 mov     ecx, [eax+4Ch]
  81. .text:005353DD                 and     ecx, 503h
  82. .text:005353E3                 cmp     ecx, 503h
  83. .text:005353E9                 jnz     short loc_5353EF
  84. .text:005353EB                 mov     edi, eax
  85. .text:005353ED                 jmp     short loc_5353F1
  86. .text:005353EF ; ---------------------------------------------------------------------------
  87. .text:005353EF
  88. .text:005353EF loc_5353EF:                             ; CODE XREF: sub_535330+A8j
  89. .text:005353EF                                         ; sub_535330+B9j
  90. .text:005353EF                 xor     edi, edi
  91. .text:005353F1
  92. .text:005353F1 loc_5353F1:                             ; CODE XREF: sub_535330+BDj
  93. .text:005353F1                 mov     ecx, edi
  94. .text:005353F3                 call    ds:?get_strafe_dir@CShip@@QBE?AW4StrafeDir@@XZ ; CShip::get_strafe_dir(void)
  95. .text:005353F9                 test    eax, eax
  96. .text:005353FB                 jnz     short loc_535456
  97. .text:005353FD                 mov     ecx, edi
  98. .text:005353FF                 call    ds:?any_thrusters_on@CShip@@QBE_NXZ ; CShip::any_thrusters_on(void)
  99. .text:00535405                 test    al, al
  100. .text:00535407                 jnz     short loc_535456
  101. .text:00535409
  102. .text:00535409 loc_535409:                             ; CODE XREF: sub_535330+98j
  103. .text:00535409                                         ; sub_535330+A1j
  104. .text:00535409                 mov     edx, [esi]
  105. .text:0053540B                 mov     ecx, esi
  106. .text:0053540D                 call    dword ptr [edx+4]
  107. .text:00535410                 cmp     al, bl
  108. .text:00535412                 jz      short loc_535456
  109. .text:00535414                 mov     eax, [esi]
  110. .text:00535416                 push    ebx
  111. .text:00535417                 mov     ecx, esi
  112. .text:00535419                 call    dword ptr [eax+30h]
  113. .text:0053541C                 mov     al, byte ptr [esp+18h+arg_8]
  114. .text:00535420                 test    al, al
  115. .text:00535422                 jz      short loc_535456
  116. .text:00535424                 mov     edx, [ebp+0]
  117. .text:00535427                 mov     ecx, ebp
  118. .text:00535429                 call    dword ptr [edx+20h]
  119. .text:0053542C                 mov     [esp+18h+var_8], eax
  120. .text:00535430                 mov     eax, [esp+18h+arg_0]
  121. .text:00535434                 mov     cx, [eax]
  122. .text:00535437                 lea     eax, [esp+18h+var_8]
  123. .text:0053543B                 mov     word ptr [esp+18h+var_4], cx
  124. .text:00535440                 mov     ecx, dword_67ECD0
  125. .text:00535446                 push    eax
  126. .text:00535447                 mov     eax, dword_673344
  127. .text:0053544C                 mov     byte ptr [esp+1Ch+var_4+2], bl
  128. .text:00535450                 mov     edx, [ecx]
  129. .text:00535452                 push    eax
  130. .text:00535453                 call    dword ptr [edx+4]
  131. .text:00535456
  132. .text:00535456 loc_535456:                             ; CODE XREF: sub_535330+35j
  133. .text:00535456                                         ; sub_535330+7Dj ...
  134. .text:00535456                 pop     edi
  135. .text:00535457                 pop     esi
  136. .text:00535458                 pop     ebp
  137. .text:00535459                 xor     eax, eax
  138. .text:0053545B                 pop     ebx
  139. .text:0053545C                 add     esp, 8
  140. .text:0053545F                 retn    0Ch
  141. .text:0053545F sub_535330      endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement