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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5abcdd
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x6e50b4]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x5519f5
push str.____mapDesc__NULL____
push 0x6e1f10
call fcn.00524610
add esp, 8
mov eax, dword [esi + 0x14]
add eax, 0x1d8
cmp byte [eax], bl
je 0x551a44
push ebx
push 4
push ebx
lea edi, [esi + 0x290]
push eax
mov ecx, edi
call fcn.0054b7b0
mov eax, dword [esi + 0x14]
fld dword [eax + 0x218]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.0054b090
fld dword [0x5c3928]
sub esp, 8
fstp dword [esp + 4]
mov ecx, 0x719610
fldz
fstp dword [esp]
push edi
call fcn.00559d10
mov edx, dword [esi + 0x14]
mov ecx, dword [0x5ea148]
mov eax, dword [edx + 0x184]
mov ecx, dword [ecx + 8]
push eax
call fcn.00546a40
mov ecx, dword [0x5ea148]
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.00546a50
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xb4]
mov eax, dword [0x717484]
mov dword [0x717488], 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 [0x717484]
push eax
cmp dword [ecx + 0x30], ebx
je 0x551ae9
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 [0x717484]
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 0x551afc
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 [0x717484]
fst dword [esp + 0x4c]
push eax
fst dword [esp + 0x54]
fstp dword [esp + 0x58]
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 [0x5b35a0]
mov edx, dword [edx + 0x88]
push ebx
sub esp, 0xc
fmul qword [0x5b35a8]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 8]
fld dword [ecx + 0x18]
lea ecx, [esp + 0x5c]
fstp dword [esp + 4]
fld dword [0x5bbb84]
fstp dword [esp]
push ecx
push eax
call edx
mov eax, dword [esi + 0x14]
fld dword [eax + 0x18]
push str.AUDIOMGR__PlayBGM
fstp dword [0x719bbc]
push 0x6e1f10
fldz
fstp dword [0x719bb8]
mov ecx, dword [esi + 0x14]
fld dword [ecx + 0x1c]
fdiv qword [0x5b35a0]
fmul qword [0x5b35a8]
fstp dword [0x719bc0]
call fcn.00524610
mov edx, dword [esi + 0x14]
movzx eax, word [edx + 0x138]
add esp, 8
push eax
mov ecx, 0x6e3868
call fcn.0054c5d0
push 0x5c4194
push 0x6e1f10
call fcn.00524610
mov eax, dword [0x717484]
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 + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x64], ebx
fld dword [eax + 8]
fld qword [0x5b3b30]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x3c]
fld dword [eax + 0xc]
fmul st(1)
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
fmul dword [eax + 0x10]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov eax, dword [0x717484]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [ecx + 0xac]
call eax
cmp byte [0x716378], 2
jne 0x551ca8
fldz
lea ecx, [esi + 0x360]
fst dword [esp + 0x3c]
push ecx
fst dword [esp + 0x44]
fstp dword [esp + 0x48]
call dword [sym.imp.SS3DGFunc.dll__VECTOR3Length_4]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
sub esp, 8
fadd qword [0x5ba368]
lea edx, [esp + 0x44]
lea eax, [esp + 0x54]
lea ecx, [esi + 0x328]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [0x5c4190]
fstp dword [esp]
push edx
push eax
push ebx
call fcn.00548120
mov ecx, dword [esi + 0x14]
cmp dword [ecx + 0x140], ebx
je 0x551ce3
push 0xc
mov ecx, 0x6e4700
call fcn.00568580
mov edx, dword [esi + 0x14]
push ebx
push 4
push ebx
add edx, 0x144
push edx
lea ecx, [esi + 0x1f8]
call fcn.0054b7b0
push ebx
mov ecx, 0x6e4700
call fcn.00568580
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x1cc], ebx
je 0x551f0f
add eax, 0x18c
push eax
call fcn.00549db0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x1d4]
mov edx, dword [eax + 0x1d0]
push ecx
push edx
call fcn.00549c00
fld dword [0x5b7eac]
fstp dword [esp + 0x64]
lea eax, [esp + 0x64]
fldz
push eax
fstp dword [esp + 0x6c]
fld dword [0x5bbb80]
fstp dword [esp + 0x70]
call fcn.00549be0
add esp, 0x10
cmp dword [0x71756c], ebx
jne 0x551d55
push ebx
push 0x178
push str.MHMap.cpp
call fcn.0052b690
add esp, 0xc
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0x1cc]
fild dword [ecx + 0x1cc]
test edx, edx
jns 0x551d6e
fadd qword [0x5b1628]
call fcn.00584620
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ebx
fldcw word [esp + 0x14]
fistp qword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x24], ecx
fldcw word [esp + 0x18]
mov dword [esp + 0x14], eax
fild dword [esp + 0x24]
test ecx, ecx
jns 0x551db1
fadd dword [0x5b1610]
fdivr qword [0x5b7dc8]
mov dword [esp + 0x34], ebx
fstp dword [esp + 0x30]
cmp eax, ebx
jbe 0x551f0f
fld dword [esp + 0x30]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
add esi, 0x338
fldcw word [esp + 0x1c]
fistp qword [esp + 0x24]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x24], esi
fldcw word [esp + 0x18]
mov dword [esp + 0x18], ebx
jmp 0x551e04
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
fild dword [esp + 0x34]
xor esi, esi
test edx, edx
jns 0x551e18
fadd dword [0x5b1610]
fmul dword [esp + 0x30]
fstp qword [esp + 0x3c]
jmp 0x551e26
mov ebx, dword [esp + 0x18]
push 0xa8
call fcn.00582660
add esp, 4
mov dword [esp + 0x20], eax
xor edi, edi
mov dword [esp + 0x90], edi
cmp eax, edi
je 0x551e4d
mov ecx, eax
call fcn.00549bb0
mov edi, eax
mov dword [esp + 0x90], 0xffffffff
call fcn.00583e33
xor edx, edx
div ebx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
test edx, edx
jns 0x551e73
fadd dword [0x5b1610]
fadd qword [esp + 0x3c]
fstp dword [esp + 0x20]
call fcn.00583e33
xor edx, edx
div ebx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
test edx, edx
jns 0x551e96
fadd dword [0x5b1610]
mov eax, esi
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
test eax, eax
jns 0x551eaa
fadd dword [0x5b1610]
fmul dword [esp + 0x30]
mov ebx, dword [0x71756c]
sub esp, 8
faddp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.00583e33
xor edx, edx
div ebx
mov ecx, edi
push edx
call fcn.00549f70
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push ebx
push edi
call fcn.0045b5c0
inc ebx
inc esi
mov dword [esp + 0x38], ebx
cmp esi, dword [esp + 0x14]
jb 0x551e22
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x14]
jb 0x551e00
push str.Apply_MapDesc_Ends
push 0x6e1f10
call fcn.00524610
add esp, 8
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005825b3
mov esp, ebp
pop ebp
ret