Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:00482D80 ; =============== S U B R O U T I N E =======================================
  2. .text:00482D80
  3. .text:00482D80
  4. .text:00482D80 sub_482D80      proc near               ; CODE XREF: sub_47D2F0+708p
  5. .text:00482D80                                         ; sub_482E00+F6p ...
  6. .text:00482D80
  7. .text:00482D80 arg_0           = dword ptr  4
  8. .text:00482D80 arg_4           = dword ptr  8
  9. .text:00482D80
  10. .text:00482D80                 mov     eax, [esp+arg_0]
  11. .text:00482D84                 mov     eax, [eax+4]
  12. .text:00482D87                 push    ebx
  13. .text:00482D88                 push    esi
  14. .text:00482D89                 push    edi
  15. .text:00482D8A                 mov     edi, [eax]
  16. .text:00482D8C                 cmp     edi, eax
  17. .text:00482D8E                 jz      short loc_482DEF
  18. .text:00482D90                 mov     ebx, ds:?GetEquipment@Archetype@@YAPAUEquipment@1@I@Z ; Archetype::GetEquipment(uint)
  19. .text:00482D96
  20. .text:00482D96 loc_482D96:                             ; CODE XREF: sub_482D80+6Dj
  21. .text:00482D96                 mov     eax, [edi+0Ch]
  22. .text:00482D99                 push    eax
  23. .text:00482D9A                 call    ebx ; Archetype::GetEquipment(uint) ; Archetype::GetEquipment(uint)
  24. .text:00482D9C                 mov     esi, eax
  25. .text:00482D9E                 add     esp, 4
  26. .text:00482DA1                 test    esi, esi
  27. .text:00482DA3                 jz      short loc_482DE4
  28. .text:00482DA5                 mov     edx, [esi]
  29. .text:00482DA7                 mov     ecx, esi
  30. .text:00482DA9                 call    dword ptr [edx+10h]
  31. .text:00482DAC                 cmp     eax, 11h
  32. .text:00482DAF                 jz      short loc_482DBB
  33. .text:00482DB1                 cmp     eax, 12h
  34. .text:00482DB4                 jz      short loc_482DBB
  35. .text:00482DB6                 cmp     eax, 13h
  36. .text:00482DB9                 jnz     short loc_482DE4
  37. .text:00482DBB
  38. .text:00482DBB loc_482DBB:                             ; CODE XREF: sub_482D80+2Fj
  39. .text:00482DBB                                         ; sub_482D80+34j
  40. .text:00482DBB                 add     esi, 98h
  41. .text:00482DC1                 mov     ecx, esi
  42. .text:00482DC3                 call    ds:?IsEmpty@ID_String@@QBE_NXZ ; ID_String::IsEmpty(void)
  43. .text:00482DC9                 test    al, al
  44. .text:00482DCB                 jnz     short loc_482DE4
  45. .text:00482DCD                 push    esi
  46. .text:00482DCE                 call    ds:?GetEquipmentByName@Archetype@@YAPAUEquipment@1@ABUID_String@@@Z ; Archetype::GetEquipmentByName(ID_String const &)
  47. .text:00482DD4                 add     esp, 4
  48. .text:00482DD7                 test    eax, eax
  49. .text:00482DD9                 jz      short loc_482DE4
  50. .text:00482DDB                 mov     ecx, [esp+0Ch+arg_4]
  51. .text:00482DDF                 cmp     [eax+8], ecx
  52. .text:00482DE2                 jz      short loc_482DF5
  53. .text:00482DE4
  54. .text:00482DE4 loc_482DE4:                             ; CODE XREF: sub_482D80+23j
  55. .text:00482DE4                                         ; sub_482D80+39j ...
  56. .text:00482DE4                 mov     edx, [esp+0Ch+arg_0]
  57. .text:00482DE8                 mov     edi, [edi]
  58. .text:00482DEA                 cmp     edi, [edx+4]
  59. .text:00482DED                 jnz     short loc_482D96
  60. .text:00482DEF
  61. .text:00482DEF loc_482DEF:                             ; CODE XREF: sub_482D80+Ej
  62. .text:00482DEF                 pop     edi
  63. .text:00482DF0                 pop     esi
  64. .text:00482DF1                 xor     al, al
  65. .text:00482DF3                 pop     ebx
  66. .text:00482DF4                 retn
  67. .text:00482DF5 ; ---------------------------------------------------------------------------
  68. .text:00482DF5
  69. .text:00482DF5 loc_482DF5:                             ; CODE XREF: sub_482D80+62j
  70. .text:00482DF5                 pop     edi
  71. .text:00482DF6                 pop     esi
  72. .text:00482DF7                 mov     al, 1
  73. .text:00482DF9                 pop     ebx
  74. .text:00482DFA                 retn
  75. .text:00482DFA sub_482D80      endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement