Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:00482D80 ; =============== S U B R O U T I N E =======================================
- .text:00482D80
- .text:00482D80
- .text:00482D80 sub_482D80 proc near ; CODE XREF: sub_47D2F0+708p
- .text:00482D80 ; sub_482E00+F6p ...
- .text:00482D80
- .text:00482D80 arg_0 = dword ptr 4
- .text:00482D80 arg_4 = dword ptr 8
- .text:00482D80
- .text:00482D80 mov eax, [esp+arg_0]
- .text:00482D84 mov eax, [eax+4]
- .text:00482D87 push ebx
- .text:00482D88 push esi
- .text:00482D89 push edi
- .text:00482D8A mov edi, [eax]
- .text:00482D8C cmp edi, eax
- .text:00482D8E jz short loc_482DEF
- .text:00482D90 mov ebx, ds:?GetEquipment@Archetype@@YAPAUEquipment@1@I@Z ; Archetype::GetEquipment(uint)
- .text:00482D96
- .text:00482D96 loc_482D96: ; CODE XREF: sub_482D80+6Dj
- .text:00482D96 mov eax, [edi+0Ch]
- .text:00482D99 push eax
- .text:00482D9A call ebx ; Archetype::GetEquipment(uint) ; Archetype::GetEquipment(uint)
- .text:00482D9C mov esi, eax
- .text:00482D9E add esp, 4
- .text:00482DA1 test esi, esi
- .text:00482DA3 jz short loc_482DE4
- .text:00482DA5 mov edx, [esi]
- .text:00482DA7 mov ecx, esi
- .text:00482DA9 call dword ptr [edx+10h]
- .text:00482DAC cmp eax, 11h
- .text:00482DAF jz short loc_482DBB
- .text:00482DB1 cmp eax, 12h
- .text:00482DB4 jz short loc_482DBB
- .text:00482DB6 cmp eax, 13h
- .text:00482DB9 jnz short loc_482DE4
- .text:00482DBB
- .text:00482DBB loc_482DBB: ; CODE XREF: sub_482D80+2Fj
- .text:00482DBB ; sub_482D80+34j
- .text:00482DBB add esi, 98h
- .text:00482DC1 mov ecx, esi
- .text:00482DC3 call ds:?IsEmpty@ID_String@@QBE_NXZ ; ID_String::IsEmpty(void)
- .text:00482DC9 test al, al
- .text:00482DCB jnz short loc_482DE4
- .text:00482DCD push esi
- .text:00482DCE call ds:?GetEquipmentByName@Archetype@@YAPAUEquipment@1@ABUID_String@@@Z ; Archetype::GetEquipmentByName(ID_String const &)
- .text:00482DD4 add esp, 4
- .text:00482DD7 test eax, eax
- .text:00482DD9 jz short loc_482DE4
- .text:00482DDB mov ecx, [esp+0Ch+arg_4]
- .text:00482DDF cmp [eax+8], ecx
- .text:00482DE2 jz short loc_482DF5
- .text:00482DE4
- .text:00482DE4 loc_482DE4: ; CODE XREF: sub_482D80+23j
- .text:00482DE4 ; sub_482D80+39j ...
- .text:00482DE4 mov edx, [esp+0Ch+arg_0]
- .text:00482DE8 mov edi, [edi]
- .text:00482DEA cmp edi, [edx+4]
- .text:00482DED jnz short loc_482D96
- .text:00482DEF
- .text:00482DEF loc_482DEF: ; CODE XREF: sub_482D80+Ej
- .text:00482DEF pop edi
- .text:00482DF0 pop esi
- .text:00482DF1 xor al, al
- .text:00482DF3 pop ebx
- .text:00482DF4 retn
- .text:00482DF5 ; ---------------------------------------------------------------------------
- .text:00482DF5
- .text:00482DF5 loc_482DF5: ; CODE XREF: sub_482D80+62j
- .text:00482DF5 pop edi
- .text:00482DF6 pop esi
- .text:00482DF7 mov al, 1
- .text:00482DF9 pop ebx
- .text:00482DFA retn
- .text:00482DFA sub_482D80 endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement