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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57dda6
mov eax, dword fs:[0]
push eax
sub esp, 0xdb8
mov eax, dword [0x5b107c]
xor eax, esp
mov dword [esp + 0xdb0], eax
push ebx
push esi
push edi
mov eax, dword [0x5b107c]
xor eax, esp
push eax
lea eax, [esp + 0xdc8]
mov dword fs:[0], eax
mov eax, dword [0x65fadc]
mov ebx, ecx
xor edi, edi
push 0x400
lea ecx, [esp + 0x5c0]
push edi
push ecx
mov esi, edx
mov dword [ebx + 4], eax
mov dword [esp + 0x24], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x1a8]
mov dword [esp + 0x74], vtable.CMHFile.0
call fcn.004061b0
xor eax, eax
push 0x104
lea edx, [esp + 0xa8]
push edi
push edx
mov dword [esp + 0x84], edi
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov word [esp + 0xa4], ax
mov dword [esp + 0xa8], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0xac], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
push 0x10
mov dword [esp + 0xdd4], edi
push esi
mov ecx, 0x5946b8
lea edi, [esp + 0x7c]
call fcn.00528720
push esi
push str._s_file_inited
call fcn.00527920
add esp, 8
lea eax, [esp + 0x5bc]
push eax
mov esi, edi
call fcn.00528970
cmp eax, 0xffffffff
je 0x5487fc
lea esp, [esp]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.GX_METADATA
lea ecx, [esp + 0x5c0]
push ecx
call edi
test eax, eax
jne 0x548017
push 0x592a70
lea edx, [esp + 0x5c0]
push edx
call edi
test eax, eax
je 0x548017
lea eax, [esp + 0x5bc]
push eax
lea esi, [esp + 0x78]
call fcn.00528970
push str.BOX_MAX
lea ecx, [esp + 0x5c0]
push ecx
call edi
test eax, eax
jne 0x547f98
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebx + 0x10]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebx + 0x14]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebx + 0x18]
jmp 0x547ffd
push str.BOX_MIN
lea edx, [esp + 0x5c0]
push edx
call edi
test eax, eax
jne 0x548000
push 0x69d3c8
lea esi, [esp + 0x78]
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebx + 0x1c]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebx + 0x20]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebx + 0x24]
add esp, 4
push 0x592a70
lea eax, [esp + 0x5c0]
push eax
call edi
test eax, eax
jne 0x547f24
push str.GX_MAP
lea ecx, [esp + 0x5c0]
push ecx
call edi
test eax, eax
jne 0x548138
push 0x592a70
lea edx, [esp + 0x5c0]
push edx
call edi
test eax, eax
je 0x548114
jmp 0x548050
lea eax, [esp + 0x5bc]
push eax
lea esi, [esp + 0x78]
call fcn.00528970
push str.STATIC_MODEL
lea ecx, [esp + 0x5c0]
push ecx
call edi
test eax, eax
jne 0x5480ad
lea edx, [esp + 0x5bc]
push edx
call fcn.00528970
lea eax, [esp + 0x5bc]
push eax
push str._s_PID_STATIC_MODEL
call fcn.00527920
add esp, 8
lea ecx, [esp + 0x5bc]
push ecx
mov esi, ebx
call fcn.00548b80
mov dword [esp + 0x18], 1
push str.HEIGHT_FIELD
lea edx, [esp + 0x5c0]
push edx
call edi
test eax, eax
jne 0x5480fd
lea eax, [esp + 0x5bc]
push eax
lea esi, [esp + 0x78]
call fcn.00528970
lea ecx, [esp + 0x5bc]
push ecx
push str._s_PID_HEIGHT_FIELD
call fcn.00527920
add esp, 8
lea edx, [esp + 0x5bc]
push edx
mov ecx, ebx
call fcn.00548a10
mov dword [esp + 0x18], 1
push 0x592a70
lea eax, [esp + 0x5c0]
push eax
call edi
test eax, eax
jne 0x548050
cmp dword [esp + 0x18], 0
je 0x548138
push str.bBuildTree
call fcn.00527920
add esp, 4
lea edi, [ebx + 0x10]
mov esi, ebx
call fcn.00548c30
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.GX_OBJECT
lea ecx, [esp + 0x5c0]
push ecx
call edi
test eax, eax
jne 0x5484b7
push 0x69d3c8
lea esi, [esp + 0x78]
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
lea edx, [esp + 0x5bc]
push edx
mov edi, eax
call fcn.00528970
test edi, edi
je 0x5484a0
mov dword [esp + 0x14], edi
jmp 0x548190
lea eax, [esp + 0x5bc]
push eax
lea esi, [esp + 0x78]
call fcn.00528970
lea ecx, [esp + 0x5bc]
push ecx
push str._s_gxobject
call fcn.00527920
add esp, 8
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
push 0x69d3c8
mov edi, eax
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x54]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x58]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x5c]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x60]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x64]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x68]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x6c]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x70]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x74]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x28]
add esp, 4
push str.hex_start
call fcn.00527920
mov eax, dword [esp + 0x80]
add esp, 4
sub eax, 0
je 0x548343
dec eax
je 0x54832d
dec eax
jne 0x54835b
mov eax, dword [esp + 0x80]
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x88]
push 0x5946d8
push ecx
push eax
call edx
add esp, 0x10
jmp 0x54835b
push str.MHFile.cpp
xor ecx, ecx
mov edx, 0x285
call fcn.0052cb10
add esp, 4
jmp 0x54835b
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x1c]
push eax
push 0x5946d8
push ecx
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0xc
push str.hex_end
call fcn.00527920
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x18c]
add esp, 4
push ecx
push 0
push 0
lea ecx, [esp + 0x5c8]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jne 0x5483c0
lea eax, [esp + 0x5bc]
push eax
lea ecx, [esp + 0x9c0]
push str.Failed_to_load_MapObject___s_
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea edx, [esp + 0x9c8]
add esp, 0xc
push edx
call fcn.00527920
add esp, 4
jmp 0x548496
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0
push esi
push eax
call edx
test eax, eax
je 0x548405
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1cc]
push esi
push eax
call edx
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
or edx, 8
push edx
push 0
push 0
lea edx, [esp + 0x5c8]
push edx
push eax
mov eax, dword [ecx + 0x18c]
call eax
mov esi, eax
test esi, esi
je 0x548496
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x150]
push edi
push esi
push eax
call edx
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push esi
push eax
mov eax, dword [ecx + 0x8c]
call eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x60]
push edx
push esi
push eax
mov eax, dword [ecx + 0x64]
call eax
fld dword [esp + 0x24]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push ecx
fstp dword [esp]
lea edx, [esp + 0x6c]
push edx
push esi
push eax
mov eax, dword [ecx + 0x78]
call eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x180]
push esi
push eax
call edx
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x178]
push esi
push eax
call edx
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x170]
push esi
push eax
call edx
push esi
lea ecx, [ebx + 0x1a0]
call fcn.00574630
dec dword [esp + 0x14]
jne 0x548190
lea eax, [esp + 0x5bc]
push eax
lea esi, [esp + 0x78]
call fcn.00528970
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.GX_LIGHT
lea ecx, [esp + 0x5c0]
push ecx
call edi
test eax, eax
jne 0x548500
push 0x69d3c8
lea esi, [esp + 0x78]
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
lea edx, [esp + 0x5bc]
push edx
call fcn.00528970
lea eax, [esp + 0x5bc]
push eax
call fcn.00528970
push str.GX_TRIGGER
lea ecx, [esp + 0x5c0]
push ecx
call edi
test eax, eax
jne 0x5487e2
push 0x69d3c8
lea esi, [esp + 0x78]
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
lea edx, [esp + 0x5bc]
push edx
mov edi, eax
call fcn.00528970
test edi, edi
je 0x5487d1
mov dword [esp + 0x14], edi
xor eax, eax
push 0x69d3c8
lea esi, [esp + 0x78]
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
mov dword [esp + 0x50], eax
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atoi]
mov edi, eax
mov eax, dword [esp + 0x80]
add esp, 4
sub eax, 0
je 0x5485e4
dec eax
je 0x5485ce
dec eax
jne 0x5485fc
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x88]
push 0x5946d8
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
add esp, 0x10
jmp 0x5485fc
push str.MHFile.cpp
xor ecx, ecx
mov edx, 0x285
call fcn.0052cb10
add esp, 4
jmp 0x5485fc
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x4c]
push ecx
push 0x5946d8
push edx
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0xc
push 0x69d3c8
lea esi, [esp + 0x78]
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x2c]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x30]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x34]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x38]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x3c]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x40]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x44]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x48]
add esp, 4
push 0x69d3c8
call fcn.00528970
push 0x69d3c8
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [esp + 0x4c]
mov eax, dword [esp + 0x80]
add esp, 4
sub eax, 0
je 0x54874a
dec eax
je 0x548734
dec eax
jne 0x548762
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x88]
push 0x5946d8
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
add esp, 0x10
jmp 0x548762
push str.MHFile.cpp
xor ecx, ecx
mov edx, 0x285
call fcn.0052cb10
add esp, 4
jmp 0x548762
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x20]
push ecx
push 0x5946d8
push edx
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push edx
push 0
push 0
push eax
mov eax, dword [ecx + 0x194]
call eax
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x150]
push edi
push esi
push eax
call edx
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push esi
push eax
mov eax, dword [ecx + 0x210]
call eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push esi
push eax
mov eax, dword [ecx + 0x214]
call eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push esi
push eax
mov eax, dword [ecx + 0x218]
call eax
dec dword [esp + 0x14]
jne 0x54854e
lea ecx, [esp + 0x5bc]
push ecx
lea esi, [esp + 0x78]
call fcn.00528970
lea edx, [esp + 0x5bc]
push edx
lea esi, [esp + 0x78]
call fcn.00528970
cmp eax, 0xffffffff
jne 0x547ef0
mov eax, dword [esp + 0x78]
mov edi, dword [sym.imp.MSVCR100.dll_fclose]
xor esi, esi
cmp eax, esi
je 0x548818
push eax
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x9c]
cmp edx, esi
je 0x54883a
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esp + 0x7c]
add esp, 4
xor edx, edx
mov dword [esp + 0x9c], edx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x88], esi
mov dword [esp + 0xa0], esi
cmp ecx, esi
je 0x54888d
mov eax, dword [esp + 0x80]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x54]
call eax
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], esi
mov ebx, dword [ebx + 8]
mov dword [esp + 0x74], vtable.CMHFile.0
mov dword [esp + 0xdd0], 1
cmp eax, esi
je 0x5488bf
push eax
call edi
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x88]
add esp, 4
mov dword [esp + 0x78], esi
cmp edx, esi
je 0x5488db
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov ecx, dword [esp + 0x88]
add esp, 4
mov dword [esp + 0x9c], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0xa0], esi
cmp ecx, esi
je 0x54890c
mov eax, dword [esp + 0x80]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x54]
call eax
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
mov ecx, dword [esp + 0xdc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdb0]
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret