Function at 0x548fdf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5ab6ed
mov eax, dword fs:[0]
push eax
sub esp, 0xdbc
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0xdb8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e50b4]
xor eax, esp
push eax
lea eax, [esp + 0xdd0]
mov dword fs:[0], eax
mov eax, dword [0x717484]
mov edi, dword [esp + 0xde0]
mov esi, ecx
xor ebx, ebx
push 0x400
lea ecx, [esp + 0x5d0]
push ebx
push ecx
mov dword [esi + 4], eax
mov dword [esp + 0x20], ebx
call fcn.005825d0
add esp, 0xc
lea ecx, [esp + 0x74]
call fcn.005253a0
push 0x10
push 0x5c117c
push edi
lea ecx, [esp + 0x80]
mov dword [esp + 0xde4], ebx
call fcn.005262c0
lea edx, [esp + 0x5cc]
push edx
lea ecx, [esp + 0x78]
call fcn.00525930
cmp eax, 0xffffffff
je 0x54920b
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.GX_METADATA
lea eax, [esp + 0x5d0]
push eax
call ebp
test eax, eax
jne 0x548d28
push 0x5bed40
lea ecx, [esp + 0x5d0]
push ecx
call ebp
test eax, eax
je 0x548d28
lea ebx, [ebx]
lea edx, [esp + 0x5cc]
push edx
lea ecx, [esp + 0x78]
call fcn.00525930
push str.BOX_MAX
lea eax, [esp + 0x5d0]
push eax
call ebp
test eax, eax
jne 0x548cda
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esi + 0x10]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esi + 0x14]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esi + 0x18]
jmp 0x548d11
push str.BOX_MIN
lea ecx, [esp + 0x5d0]
push ecx
call ebp
test eax, eax
jne 0x548d11
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esi + 0x1c]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esi + 0x20]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esi + 0x24]
push 0x5bed40
lea edx, [esp + 0x5d0]
push edx
call ebp
test eax, eax
jne 0x548c90
push str.GX_MAP
lea eax, [esp + 0x5d0]
push eax
call ebp
test eax, eax
jne 0x548e12
push 0x5bed40
lea ecx, [esp + 0x5d0]
push ecx
call ebp
test eax, eax
je 0x548e00
jmp 0x548d60
lea edx, [esp + 0x5cc]
push edx
lea ecx, [esp + 0x78]
call fcn.00525930
push str.STATIC_MODEL
lea eax, [esp + 0x5d0]
push eax
call ebp
test eax, eax
jne 0x548dac
lea ecx, [esp + 0x5cc]
push ecx
lea ecx, [esp + 0x78]
call fcn.00525930
lea edx, [esp + 0x5cc]
push edx
mov ecx, esi
call fcn.00548b00
mov dword [esp + 0x14], 1
push str.HEIGHT_FIELD
lea eax, [esp + 0x5d0]
push eax
call ebp
test eax, eax
jne 0x548de9
lea ecx, [esp + 0x5cc]
push ecx
lea ecx, [esp + 0x78]
call fcn.00525930
push 0
lea edx, [esp + 0x5d0]
push edx
mov ecx, esi
call fcn.00548980
mov dword [esp + 0x14], 1
push 0x5bed40
lea eax, [esp + 0x5d0]
push eax
call ebp
test eax, eax
jne 0x548d60
cmp dword [esp + 0x14], 0
je 0x548e12
lea ecx, [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00548780
push str.GX_OBJECT
lea edx, [esp + 0x5d0]
push edx
call ebp
test eax, eax
jne 0x549035
lea ecx, [esp + 0x74]
call fcn.00526540
mov edi, eax
lea eax, [esp + 0x5cc]
push eax
lea ecx, [esp + 0x78]
call fcn.00525930
test edi, edi
je 0x549024
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x5cc]
push ecx
lea ecx, [esp + 0x78]
call fcn.00525930
lea ecx, [esp + 0x74]
call fcn.00526540
lea ecx, [esp + 0x74]
mov ebx, eax
call fcn.00526510
fstp dword [esp + 0x50]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x54]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x58]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x5c]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x60]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x64]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x68]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x6c]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x70]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x78]
call fcn.00525610
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push edx
push 0
push 0
lea edx, [esp + 0x5d8]
push edx
push eax
mov eax, dword [ecx + 0x18c]
call eax
mov edi, eax
test edi, edi
jne 0x548f44
lea ecx, [esp + 0x5cc]
push ecx
lea edx, [esp + 0x9d0]
push str.Failed_to_load_MapObject___s_
push edx
call fcn.00582c5f
add esp, 0xc
jmp 0x54901a
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0
push edi
push eax
call edx
test eax, eax
je 0x548f89
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1cc]
push edi
push eax
call edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
or edx, 8
push edx
push 0
push 0
lea edx, [esp + 0x5d8]
push edx
push eax
mov eax, dword [ecx + 0x18c]
call eax
mov edi, eax
test edi, edi
je 0x54901a
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x150]
push ebx
push edi
push eax
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push edi
push eax
mov eax, dword [ecx + 0x8c]
call eax
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x60]
push edx
push edi
push eax
mov eax, dword [ecx + 0x64]
call eax
fld dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push ecx
fstp dword [esp]
lea edx, [esp + 0x6c]
push edx
push edi
push eax
mov eax, dword [ecx + 0x78]
call eax
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x180]
push edi
push eax
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x178]
push edi
push eax
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x170]
push edi
push eax
call edx
push edi
lea ecx, [esi + 0x1a0]
call fcn.0057d060
dec dword [esp + 0x18]
jne 0x548e51
lea eax, [esp + 0x5cc]
push eax
lea ecx, [esp + 0x78]
call fcn.00525930
push str.GX_LIGHT
lea ecx, [esp + 0x5d0]
push ecx
call ebp
test eax, eax
jne 0x549073
lea ecx, [esp + 0x74]
call fcn.00526540
lea edx, [esp + 0x5cc]
push edx
lea ecx, [esp + 0x78]
call fcn.00525930
lea eax, [esp + 0x5cc]
push eax
lea ecx, [esp + 0x78]
call fcn.00525930
push 0x5c3ae0
lea ecx, [esp + 0x5d0]
push ecx
call ebp
test eax, eax
jne 0x5491f1
lea ecx, [esp + 0x74]
call fcn.00526540
lea edx, [esp + 0x5cc]
push edx
lea ecx, [esp + 0x78]
mov ebp, eax
call fcn.00525930
test ebp, ebp
je 0x5491e0
xor eax, eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00526540
mov ebx, eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x78]
call fcn.00525610
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x28]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x2c]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x30]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x34]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x38]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x3c]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x40]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x44]
lea ecx, [esp + 0x74]
call fcn.00526510
fstp dword [esp + 0x48]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x78]
call fcn.00525610
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x194]
push ecx
push 0
push 0
push eax
call edx
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x150]
push ebx
push edi
push eax
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push edi
push eax
mov eax, dword [ecx + 0x210]
call eax
mov eax, dword [esi + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov eax, dword [ecx + 0x214]
call eax
mov eax, dword [esi + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push edi
push eax
mov eax, dword [ecx + 0x218]
call eax
dec ebp
jne 0x5490ae
lea ecx, [esp + 0x5cc]
push ecx
lea ecx, [esp + 0x78]
call fcn.00525930
lea edx, [esp + 0x5cc]
push edx
lea ecx, [esp + 0x78]
call fcn.00525930
cmp eax, 0xffffffff
jne 0x548c56
lea ecx, [esp + 0x74]
call fcn.00525490
mov esi, dword [esi + 8]
lea ecx, [esp + 0x74]
mov dword [esp + 0xdd8], 0xffffffff
call fcn.005258c0
mov eax, esi
mov ecx, dword [esp + 0xdd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdb8]
xor ecx, esp
call fcn.005825b3
add esp, 0xdc8
ret 4