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

Disassembly:
jmp 0x5beac0
sub esp, 0xdb8
mov eax, dword [0x7e88c0]
push esi
mov esi, ecx
push 0x400
lea ecx, [esp + 0x5c0]
push 0
push ecx
mov dword [esi + 4], eax
mov dword [esp + 0x10], 0
call fcn.00609d70
add esp, 0xc
lea ecx, [esp + 0x64]
call fcn.00411720
mov edx, dword [esp + 0xdc0]
push 0x10
push 0x659b00
push edx
lea ecx, [esp + 0x70]
call fcn.00409b8d
lea eax, [esp + 0x5bc]
push eax
lea ecx, [esp + 0x68]
call fcn.0040c40f
cmp eax, 0xffffffff
je 0x5bf0e0
push ebx
push ebp
push edi
mov edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.GX_METADATA
lea ecx, [esp + 0x5cc]
push ecx
call ebp
test eax, eax
jne 0x5bebfc
push 0x656dfc
lea edx, [esp + 0x5cc]
push edx
call ebp
test eax, eax
je 0x5bebfc
lea eax, [esp + 0x5c8]
push eax
lea ecx, [esp + 0x74]
call fcn.0040c40f
push str.BOX_MAX
lea ecx, [esp + 0x5cc]
push ecx
call ebp
test eax, eax
jne 0x5bebae
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esi + 0x10]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esi + 0x14]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esi + 0x18]
jmp 0x5bebe5
push str.BOX_MIN
lea edx, [esp + 0x5cc]
push edx
call ebp
test eax, eax
jne 0x5bebe5
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esi + 0x1c]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esi + 0x20]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esi + 0x24]
push 0x656dfc
lea eax, [esp + 0x5cc]
push eax
call ebp
test eax, eax
jne 0x5beb64
push str.GX_MAP
lea ecx, [esp + 0x5cc]
push ecx
call ebp
test eax, eax
jne 0x5bece2
push 0x656dfc
lea edx, [esp + 0x5cc]
push edx
call ebp
test eax, eax
je 0x5becd0
lea ebx, [ebx]
lea eax, [esp + 0x5c8]
push eax
lea ecx, [esp + 0x74]
call fcn.0040c40f
push str.STATIC_MODEL
lea ecx, [esp + 0x5cc]
push ecx
call ebp
test eax, eax
jne 0x5bec7c
lea edx, [esp + 0x5c8]
push edx
lea ecx, [esp + 0x74]
call fcn.0040c40f
lea eax, [esp + 0x5c8]
push eax
mov ecx, esi
call fcn.004096e2
mov dword [esp + 0x10], 1
push str.HEIGHT_FIELD
lea ecx, [esp + 0x5cc]
push ecx
call ebp
test eax, eax
jne 0x5becb9
lea edx, [esp + 0x5c8]
push edx
lea ecx, [esp + 0x74]
call fcn.0040c40f
push 0
lea eax, [esp + 0x5cc]
push eax
mov ecx, esi
call fcn.00405c2c
mov dword [esp + 0x10], 1
push 0x656dfc
lea ecx, [esp + 0x5cc]
push ecx
call ebp
test eax, eax
jne 0x5bec30
cmp dword [esp + 0x10], 0
je 0x5bece2
lea edx, [esi + 0x10]
push edx
mov ecx, esi
call fcn.004013d9
push str.GX_OBJECT
lea eax, [esp + 0x5cc]
push eax
call ebp
test eax, eax
jne 0x5bef05
lea ecx, [esp + 0x70]
call fcn.00406136
lea ecx, [esp + 0x5c8]
push ecx
lea ecx, [esp + 0x74]
mov edi, eax
call fcn.0040c40f
test edi, edi
je 0x5beef4
mov dword [esp + 0x14], edi
lea edx, [esp + 0x5c8]
push edx
lea ecx, [esp + 0x74]
call fcn.0040c40f
lea ecx, [esp + 0x70]
call fcn.00406136
lea ecx, [esp + 0x70]
mov ebx, eax
call fcn.0040498a
fstp dword [esp + 0x4c]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x50]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x54]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x58]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x5c]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x60]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x64]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x68]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x6c]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x44]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x74]
call fcn.0040f7f4
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push edx
push 0
push 0
lea edx, [esp + 0x5d4]
push edx
push eax
mov eax, dword [ecx + 0x18c]
call eax
mov edi, eax
test edi, edi
jne 0x5bee14
lea ecx, [esp + 0x5c8]
push ecx
lea edx, [esp + 0x9cc]
push str.Failed_to_load_MapObject___s_
push edx
call fcn.0060a295
add esp, 0xc
jmp 0x5beeea
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 0x5bee59
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1cc]
push edi
push eax
call edx
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
or edx, 8
push edx
push 0
push 0
lea edx, [esp + 0x5d4]
push edx
push eax
mov eax, dword [ecx + 0x18c]
call eax
mov edi, eax
test edi, edi
je 0x5beeea
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 + 0x4c]
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 + 0x5c]
push edx
push edi
push eax
mov eax, dword [ecx + 0x64]
call eax
fld dword [esp + 0x44]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push ecx
fstp dword [esp]
lea edx, [esp + 0x68]
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.00603ac0
dec dword [esp + 0x14]
jne 0x5bed21
lea eax, [esp + 0x5c8]
push eax
lea ecx, [esp + 0x74]
call fcn.0040c40f
push str.GX_LIGHT
lea ecx, [esp + 0x5cc]
push ecx
call ebp
test eax, eax
jne 0x5bef43
lea ecx, [esp + 0x70]
call fcn.00406136
lea edx, [esp + 0x5c8]
push edx
lea ecx, [esp + 0x74]
call fcn.0040c40f
lea eax, [esp + 0x5c8]
push eax
lea ecx, [esp + 0x74]
call fcn.0040c40f
push 0x65cc0c
lea ecx, [esp + 0x5cc]
push ecx
call ebp
test eax, eax
jne 0x5bf0c3
lea ecx, [esp + 0x70]
call fcn.00406136
lea edx, [esp + 0x5c8]
push edx
lea ecx, [esp + 0x74]
mov ebp, eax
call fcn.0040c40f
test ebp, ebp
je 0x5bf0b2
mov edi, edi
xor eax, eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
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
call fcn.00406136
mov ebx, eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
call fcn.0040f7f4
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x1c]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x20]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x24]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x28]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x2c]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x30]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x34]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x38]
lea ecx, [esp + 0x70]
call fcn.0040498a
fstp dword [esp + 0x3c]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x74]
call fcn.0040f7f4
mov ecx, dword [esp + 0x48]
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 + 0x1c]
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 + 0x28]
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 + 0x34]
push edx
push edi
push eax
mov eax, dword [ecx + 0x218]
call eax
dec ebp
jne 0x5bef80
lea ecx, [esp + 0x5c8]
push ecx
lea ecx, [esp + 0x74]
call fcn.0040c40f
lea edx, [esp + 0x5c8]
push edx
lea ecx, [esp + 0x74]
call fcn.0040c40f
cmp eax, 0xffffffff
jne 0x5beb30
pop edi
pop ebp
pop ebx
lea ecx, [esp + 0x64]
call fcn.0040185c
mov esi, dword [esi + 8]
lea ecx, [esp + 0x64]
call fcn.00403a99
mov eax, esi
pop esi
add esp, 0xdb8
ret 4