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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57a6cb
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a7564]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x5307fb
push str.____mapDesc__NULL____
push 0x6a47bc
call fcn.005090b0
add esp, 8
mov eax, dword [esi + 0x14]
add eax, 0x1d8
cmp byte [eax], bl
je 0x53084a
push ebx
push 4
push ebx
lea edi, [esi + 0x290]
push eax
mov ecx, edi
call fcn.0052ad40
mov eax, dword [esi + 0x14]
fld dword [eax + 0x218]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.0052a670
fld dword [0x58f1e8]
sub esp, 8
fstp dword [esp + 4]
mov ecx, 0x6dbb98
fldz
fstp dword [esp]
push edi
call fcn.00538270
mov edx, dword [esi + 0x14]
mov ecx, dword [0x5ad1ac]
mov eax, dword [edx + 0x184]
mov ecx, dword [ecx + 8]
push eax
call fcn.00527490
mov ecx, dword [0x5ad1ac]
mov eax, dword [esi + 0x14]
mov ecx, dword [ecx + 8]
fld dword [eax + 4]
mov edx, dword [eax]
push ecx
fstp dword [esp]
push edx
call fcn.005274a0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xb4]
mov eax, dword [0x6d99a4]
mov dword [0x6d99a8], ecx
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x18]
call eax
mov edx, dword [esi + 0x14]
mov edx, dword [edx + 0x14]
mov ecx, dword [eax]
push edx
push ebx
push eax
mov eax, dword [ecx + 0xd4]
call eax
mov ecx, dword [esi + 0x14]
mov eax, dword [0x6d99a4]
push eax
cmp dword [ecx + 0x30], ebx
je 0x5308ef
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push ebx
push eax
call edx
mov eax, dword [0x6d99a4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov edx, dword [esi + 0x14]
mov ecx, dword [eax]
push ebx
add edx, 0x20
push edx
push eax
mov eax, dword [ecx + 0xa0]
call eax
jmp 0x530902
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push ebx
push eax
call edx
fldz
mov eax, dword [0x6d99a4]
fst dword [esp + 0x48]
push eax
fst dword [esp + 0x50]
fstp dword [esp + 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
mov ecx, dword [esi + 0x14]
fld dword [ecx + 0x1c]
mov edx, dword [eax]
fdiv qword [0x5802d8]
mov edx, dword [edx + 0x88]
push ebx
sub esp, 0xc
fmul qword [0x5802e0]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 8]
fld dword [ecx + 0x18]
lea ecx, [esp + 0x58]
fstp dword [esp + 4]
fld dword [0x587fe4]
fstp dword [esp]
push ecx
push eax
call edx
mov eax, dword [esi + 0x14]
fld dword [eax + 0x18]
push str.AUDIOMGR__PlayBGM
fstp dword [0x6dc144]
push 0x6a47bc
fldz
fstp dword [0x6dc140]
mov ecx, dword [esi + 0x14]
fld dword [ecx + 0x1c]
fdiv qword [0x5802d8]
fmul qword [0x5802e0]
fstp dword [0x6dc148]
call fcn.005090b0
mov edx, dword [esi + 0x14]
movzx eax, word [edx + 0x138]
add esp, 8
push eax
mov ecx, 0x6db6a8
call fcn.0052b910
push 0x58f9f8
push 0x6a47bc
call fcn.005090b0
mov eax, dword [0x6d99a4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
add esp, 8
push eax
call edx
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb4]
push ebx
push eax
call edx
or eax, 0xffffffff
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x14]
add eax, 8
mov dword [esp + 0x60], ebx
fld dword [eax]
fld qword [0x580728]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x34]
fld dword [eax + 4]
fmul st(1)
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fmul dword [eax + 8]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov eax, dword [0x6d99a4]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [ecx + 0xac]
call eax
cmp byte [0x6d8870], 2
jne 0x530ab0
fldz
lea ecx, [esi + 0x360]
fst dword [esp + 0x34]
push ecx
fst dword [esp + 0x3c]
fstp dword [esp + 0x40]
call dword [sym.imp.SS3DGFunc.dll__VECTOR3Length_4]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
sub esp, 8
fadd qword [0x5869b0]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x50]
lea ecx, [esi + 0x328]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [0x58f9f4]
fstp dword [esp]
push edx
push eax
push ebx
call fcn.00527fc0
mov ecx, dword [esi + 0x14]
cmp dword [ecx + 0x140], ebx
je 0x530aeb
push 0xc
mov ecx, 0x6dc3d8
call fcn.00545eb0
mov edx, dword [esi + 0x14]
push ebx
push 4
push ebx
add edx, 0x144
push edx
lea ecx, [esi + 0x1f8]
call fcn.0052ad40
push ebx
mov ecx, 0x6dc3d8
call fcn.00545eb0
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x1cc], ebx
je 0x530d15
add eax, 0x18c
push eax
call fcn.00529770
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x1d4]
mov edx, dword [eax + 0x1d0]
push ecx
push edx
call fcn.00529590
fld dword [0x5845dc]
fstp dword [esp + 0x60]
lea eax, [esp + 0x60]
fldz
push eax
fstp dword [esp + 0x68]
fld dword [0x587fe0]
fstp dword [esp + 0x6c]
call fcn.00529570
add esp, 0x10
cmp dword [0x6d9a8c], ebx
jne 0x530b5d
push ebx
push 0x178
push str.MHMap.cpp
call fcn.0050ea20
add esp, 0xc
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0x1cc]
fild dword [ecx + 0x1cc]
test edx, edx
jge 0x530b76
fadd qword [0x57e5d8]
call fcn.0055c750
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov dword [esp + 0x2c], ecx
fldcw word [esp + 0x14]
mov dword [esp + 0x20], eax
fild dword [esp + 0x2c]
test ecx, ecx
jge 0x530bb5
fadd dword [0x57e5c0]
fdivr qword [0x5844f8]
mov dword [esp + 0x1c], ebx
fstp dword [esp + 0x18]
cmp eax, ebx
jbe 0x530d15
fld dword [esp + 0x18]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x24], eax
add esi, 0x338
fldcw word [esp + 0x24]
fistp qword [esp + 0x2c]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x2c], esi
fldcw word [esp + 0x14]
mov dword [esp + 0x14], ebp
jmp 0x530c05
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
xor esi, esi
test edx, edx
jge 0x530c19
fadd dword [0x57e5c0]
fmul dword [esp + 0x18]
fstp qword [esp + 0x34]
jmp 0x530c34
mov ebp, dword [esp + 0x14]
push 0xa8
call fcn.0055a781
add esp, 4
mov dword [esp + 0x28], eax
xor edi, edi
mov dword [esp + 0x88], edi
cmp eax, edi
je 0x530c5b
mov ecx, eax
call fcn.00529550
mov edi, eax
mov dword [esp + 0x88], 0xffffffff
call fcn.0055be87
xor edx, edx
div ebp
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
test edx, edx
jge 0x530c81
fadd dword [0x57e5c0]
fadd qword [esp + 0x34]
fstp dword [esp + 0x28]
call fcn.0055be87
xor edx, edx
div ebp
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
test edx, edx
jge 0x530ca4
fadd dword [0x57e5c0]
mov eax, esi
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
test eax, eax
jge 0x530cb8
fadd dword [0x57e5c0]
fmul dword [esp + 0x18]
mov ebp, dword [0x6d9a8c]
sub esp, 8
faddp st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fstp dword [esp]
call fcn.0055be87
xor edx, edx
div ebp
mov ecx, edi
push edx
call fcn.00529930
mov ecx, dword [esp + 0x2c]
push ebx
push edi
call fcn.0051a990
inc esi
inc ebx
cmp esi, dword [esp + 0x20]
jb 0x530c30
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jb 0x530c01
push str.Apply_MapDesc_Ends
push 0x6a47bc
call fcn.005090b0
add esp, 8
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret