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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b8a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6a12a0]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x6a12a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x12]
add eax, 0x1d6
cmp byte [eax], 0
je 0x50974e
push 0
push 4
push 0
lea esi, [edi + 0x28a]
push eax
mov ecx, esi
call fcn.0046d1a0
mov eax, dword [edi + 0x12]
push ecx
mov ecx, esi
movss xmm0, dword [eax + 0x216]
movss dword [esp], xmm0
call fcn.0046cb90
sub esp, 8
mov ecx, 0x6d6608
mov dword [esp + 4], 0x3f490fd8
mov dword [esp], 0
push esi
call fcn.005038f0
mov eax, dword [0x5fbeec]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 0x12]
push dword [eax + 0x182]
call fcn.0046ea70
mov eax, dword [0x5fbeec]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 0x12]
push ecx
movss xmm0, dword [eax + 4]
movss dword [esp], xmm0
push dword [eax]
call fcn.0046ea90
mov eax, dword [edi + 0x12]
mov eax, dword [eax + 0xb4]
mov dword [0x6d3780], eax
mov eax, dword [0x6d3784]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [edi + 0x12]
mov edx, dword [eax]
push dword [ecx + 0x14]
push 0
push eax
call dword [edx + 0xd4]
mov eax, dword [edi + 0x12]
cmp dword [eax + 0x30], 0
mov eax, dword [0x6d3784]
push eax
mov ecx, dword [eax]
je 0x5097e9
call dword [ecx + 0x18]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
mov eax, dword [0x6d3784]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [edi + 0x12]
push 0
add ecx, 0x20
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xa0]
jmp 0x5097f7
call dword [ecx + 0x18]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [0x6d3784]
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movq qword [esp + 0x40], xmm0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [edi + 0x12]
push 0
sub esp, 0xc
mov edx, dword [eax]
movss xmm0, dword [ecx + 0x1c]
divss xmm0, dword [0x5c0ff4]
mulss xmm0, dword [0x5c0ff0]
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x18]
lea ecx, [esp + 0x4c]
movss dword [esp + 4], xmm0
mov dword [esp], 0x42c80000
push ecx
push eax
call dword [edx + 0x88]
mov eax, dword [edi + 0x12]
mov ecx, 0x5fa298
movss xmm0, dword [eax + 0x18]
movss dword [0x6d6bb4], xmm0
mov dword [0x6d6bb0], 0
mov eax, dword [edi + 0x12]
movss xmm0, dword [eax + 0x1c]
divss xmm0, dword [0x5c0ff4]
mulss xmm0, dword [0x5c0ff0]
movss dword [0x6d6bb8], xmm0
mov eax, dword [edi + 0x12]
movzx eax, word [eax + 0x138]
push eax
call fcn.00435280
mov eax, dword [0x6d3784]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
mov eax, dword [edi + 0x12]
xorps xmm0, xmm0
movss xmm1, dword [0x5bf6fc]
movdqu xmmword [esp + 0x58], xmm0
mov dword [esp + 0x54], 0
movq qword [esp + 0x68], xmm0
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
movss xmm0, dword [eax + 0x10]
movss xmm3, dword [eax + 8]
movss xmm2, dword [eax + 0xc]
mulss xmm0, xmm1
mov dword [esp + 0x6c], 1
mulss xmm3, xmm1
mulss xmm2, xmm1
movss dword [esp + 0x38], xmm0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], eax
mov eax, dword [0x6d3784]
unpcklps xmm3, xmm2
movq qword [esp + 0x60], xmm3
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0
lea edx, [esp + 0x58]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xac]
cmp byte [0x6c1304], 2
jne 0x5099a2
lea eax, [edi + 0x356]
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
push eax
movq qword [esp + 0x38], xmm0
call dword [0x5bf280]
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
lea eax, [esp + 0x30]
addss xmm0, dword [0x5bffb8]
sub esp, 8
lea ecx, [edi + 0x31e]
movss dword [esp + 4], xmm0
mov dword [esp], 0x3e490fd8
push eax
lea eax, [esp + 0x48]
push eax
push 0
call fcn.0046b7f0
mov eax, dword [edi + 0x12]
cmp dword [eax + 0x13e], 0
je 0x5099e0
push 0xc
mov ecx, 0x5fa6f0
call fcn.0045e010
mov eax, dword [edi + 0x12]
lea ecx, [edi + 0x1f6]
push 0
push 4
push 0
add eax, 0x142
push eax
call fcn.0046d1a0
push 0
mov ecx, 0x5fa6f0
call fcn.0045e010
mov eax, dword [edi + 0x12]
cmp dword [eax + 0x1ca], 0
je 0x509c23
add eax, 0x18a
push eax
call fcn.0046abc0
mov eax, dword [edi + 0x12]
push dword [eax + 0x1d2]
push dword [eax + 0x1ce]
call fcn.0046aee0
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x41a00000
push eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0x41200000
call fcn.0046af00
add esp, 0x10
cmp dword [0x6d1adc], 0
jne 0x509a51
push 0
push 0x13b
push str.MHMap.cpp
call fcn.0040f8c0
add esp, 0xc
mov eax, dword [edi + 0x12]
mov eax, dword [eax + 0x1ca]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5bf700]
call fcn.00590ad0
call fcn.0059080f
movss xmm1, dword [0x5bfba0]
mov ecx, eax
shr ecx, 0x1f
mov dword [esp + 0x28], eax
movd xmm0, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [ecx*8 + 0x5bf700]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esp + 0x18], xmm1
test eax, eax
je 0x509c23
movaps xmm0, xmm1
call fcn.00590630
mov dword [esp + 0x20], eax
lea eax, [edi + 0x32e]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x509ae0
movd xmm0, eax
xor esi, esi
cvtdq2pd xmm0, xmm0
mov ecx, eax
mov dword [esp + 0x14], esi
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x5bf700]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
movss dword [esp + 0x2c], xmm0
lea esp, [esp]
push 0xa4
call fcn.0058e15c
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x80], 0
test eax, eax
je 0x509b3b
mov ecx, eax
call fcn.0046aa00
mov edi, eax
jmp 0x509b3d
xor edi, edi
mov dword [esp + 0x80], 0xffffffff
call fcn.0058fe7b
xor edx, edx
div dword [esp + 0x20]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x5bf700]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x10], xmm0
call fcn.0058fe7b
xor edx, edx
sub esp, 8
div dword [esp + 0x28]
mov eax, esi
shr eax, 0x1f
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x5bf700]
cvtpd2ps xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov esi, dword [0x6d1adc]
addsd xmm0, qword [eax*8 + 0x5bf700]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x20]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
call fcn.0058fe7b
xor edx, edx
mov ecx, edi
div esi
push edx
call fcn.0046aa50
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push esi
push edi
call fcn.004a8200
mov ecx, dword [esp + 0x28]
inc esi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
cmp esi, ecx
jb 0x509b10
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jb 0x509ae0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0058e944
mov esp, ebp
pop ebp
ret