Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
- .text:00548170
- .text:00548170 ; Attributes: bp-based frame
- .text:00548170
- .text:00548170 sub_548170 proc near ; DATA XREF: .data:00BB967Co
- .text:00548170
- .text:00548170 arg_0 = dword ptr 8
- .text:00548170
- .text:00548170 push ebp
- .text:00548171 mov ebp, esp
- .text:00548173 mov eax, dword_CD259C
- .text:00548178 test eax, eax
- .text:0054817A jnz short loc_54818C
- .text:0054817C mov eax, dword_D8B760
- .text:00548181 inc eax
- .text:00548182 mov dword_D8B760, eax
- .text:00548187 mov dword_CD259C, eax
- .text:0054818C
- .text:0054818C loc_54818C: ; CODE XREF: sub_548170+Aj
- .text:0054818C push esi
- .text:0054818D mov esi, [ebp+arg_0]
- .text:00548190 push edi
- .text:00548191 push eax
- .text:00548192 call sub_549850
- .text:00548197 push 2
- .text:00548199 push esi
- .text:0054819A mov edi, eax
- .text:0054819C call sub_4361A0
- .text:005481A1 add esp, 0Ch
- .text:005481A4 test eax, eax
- .text:005481A6 jz short loc_5481E4
- .text:005481A8 push ebx
- .text:005481A9 push 0
- .text:005481AB push 2
- .text:005481AD push esi
- .text:005481AE call sub_436320
- .text:005481B3 mov ebx, eax
- .text:005481B5 mov eax, [edi]
- .text:005481B7 mov edx, [eax+0D4h]
- .text:005481BD add esp, 0Ch
- .text:005481C0 push ebx
- .text:005481C1 mov ecx, edi
- .text:005481C3 call edx
- .text:005481C5 cmp dword ptr [edi+1F4h], 0
- .text:005481CC jnz short loc_5481DD
- .text:005481CE push ebx
- .text:005481CF push offset aInvalidModelFi ; "Invalid model file: %s"
- .text:005481D4 push esi
- .text:005481D5 call sub_96B3F0
- .text:005481DA add esp, 0Ch
- .text:005481DD
- .text:005481DD loc_5481DD: ; CODE XREF: sub_548170+5Cj
- .text:005481DD pop ebx
- .text:005481DE pop edi
- .text:005481DF xor eax, eax
- .text:005481E1 pop esi
- .text:005481E2 pop ebp
- .text:005481E3 retn
- .text:005481E4 ; ---------------------------------------------------------------------------
- .text:005481E4
- .text:005481E4 loc_5481E4: ; CODE XREF: sub_548170+36j
- .text:005481E4 mov eax, [edi]
- .text:005481E6 mov edx, [eax+4]
- .text:005481E9 mov ecx, edi
- .text:005481EB call edx
- .text:005481ED test eax, eax
- .text:005481EF jnz short loc_5481F6
- .text:005481F1 mov eax, offset aUnnamed ; "<unnamed>"
- .text:005481F6
- .text:005481F6 loc_5481F6: ; CODE XREF: sub_548170+7Fj
- .text:005481F6 push eax
- .text:005481F7 push offset aUsageSSetmodel ; "Usage: %s:SetModel(\"file\")"
- .text:005481FC push esi
- .text:005481FD call sub_96B3F0
- .text:00548202 add esp, 0Ch
- .text:00548205 pop edi
- .text:00548206 xor eax, eax
- .text:00548208 pop esi
- .text:00548209 pop ebp
- .text:0054820A retn
- .text:0054820A sub_548170 endp
Advertisement
Add Comment
Please, Sign In to add comment