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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x588d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x66e240]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x66e240]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x12]
xor edi, edi
add eax, 0x1d6
cmp byte [eax], 0
je 0x4f58c0
push edi
push 4
push edi
lea esi, [ebx + 0x289]
push eax
mov ecx, esi
call fcn.0047b4f8
mov eax, dword [ebx + 0x12]
push ecx
mov ecx, esi
movss xmm0, dword [eax + 0x216]
movss dword [esp], xmm0
call fcn.0047afc4
push ecx
push ecx
mov dword [esp + 4], 0x3f490fd8
mov ecx, 0x6aaa50
and dword [esp], edi
push esi
call fcn.004f2c1a
mov eax, dword [0x6aa794]
mov ecx, dword [eax + 8]
mov eax, dword [ebx + 0x12]
push dword [eax + 0x182]
call fcn.0047c88d
mov eax, dword [0x6aa794]
mov ecx, dword [eax + 8]
mov eax, dword [ebx + 0x12]
push ecx
movss xmm0, dword [eax + 4]
movss dword [esp], xmm0
push dword [eax]
call fcn.0047c89f
mov eax, dword [ebx + 0x12]
mov eax, dword [eax + 0xb4]
mov dword [0x6a6e40], eax
mov eax, dword [0x6a6e44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebx + 0x12]
mov edx, dword [eax]
push dword [ecx + 0x14]
push edi
push eax
call dword [edx + 0xd4]
mov eax, dword [ebx + 0x12]
cmp dword [eax + 0x30], edi
mov eax, dword [0x6a6e44]
push eax
mov ecx, dword [eax]
je 0x4f5957
call dword [ecx + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
mov eax, dword [0x6a6e44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebx + 0x12]
push edi
add ecx, 0x20
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xa0]
jmp 0x4f5964
call dword [ecx + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [0x6a6e44]
and dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebx + 0x12]
push edi
sub esp, 0xc
mov edx, dword [eax]
movss xmm0, dword [ecx + 0x1c]
divss xmm0, dword [0x58e164]
mulss xmm0, dword [0x58e160]
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x18]
lea ecx, [esp + 0x54]
movss dword [esp + 4], xmm0
mov dword [esp], 0x42c80000
push ecx
push eax
call dword [edx + 0x88]
mov eax, dword [ebx + 0x12]
mov ecx, 0x698f20
movss xmm0, dword [eax + 0x18]
and dword [0x6aaff8], edi
movss dword [0x6aaffc], xmm0
mov eax, dword [ebx + 0x12]
movss xmm0, dword [eax + 0x1c]
divss xmm0, dword [0x58e164]
mulss xmm0, dword [0x58e160]
movss dword [0x6ab000], xmm0
mov eax, dword [ebx + 0x12]
movzx eax, word [eax + 0x138]
push eax
call fcn.00450637
mov eax, dword [0x6a6e44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
movss xmm1, dword [0x58c7e0]
lea esi, [esp + 0x38]
mov dword [esp + 0x5c], edi
xor eax, eax
push 6
pop ecx
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x12]
lea edi, [esp + 0x68]
or dword [esp + 0x60], 0xffffffff
or dword [esp + 0x64], 0xffffffff
movss xmm0, dword [eax + 8]
mulss xmm0, xmm1
movss dword [esp + 0x38], xmm0
movss xmm0, dword [eax + 0xc]
mulss xmm0, xmm1
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 0x10]
mov eax, dword [0x6a6e44]
mulss xmm0, xmm1
push eax
movss dword [esp + 0x44], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x78], 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
xor edi, edi
lea edx, [esp + 0x5c]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xac]
cmp byte [0x68bbfd], 2
jne 0x4f5af6
and dword [esp + 0x38], edi
lea eax, [ebx + 0x354]
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.SS3DGFunc.dll__VECTOR3Length_4]
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
lea eax, [esp + 0x38]
addss xmm0, dword [0x58d0d0]
push ecx
push ecx
lea ecx, [ebx + 0x31c]
movss dword [esp + 4], xmm0
mov dword [esp], 0x3e490fd8
push eax
lea eax, [esp + 0x50]
push eax
push edi
call fcn.00479fc7
mov eax, dword [ebx + 0x12]
cmp dword [eax + 0x13e], edi
je 0x4f5b2f
mov esi, 0x69e920
push 0xc
mov ecx, esi
call fcn.0046fb46
mov eax, dword [ebx + 0x12]
lea ecx, [ebx + 0x1f6]
push edi
push 4
push edi
add eax, 0x142
push eax
call fcn.0047b4f8
push edi
mov ecx, esi
call fcn.0046fb46
mov eax, dword [ebx + 0x12]
cmp dword [eax + 0x1ca], edi
je 0x4f5d54
add eax, 0x18a
push eax
call fcn.004796d3
mov eax, dword [ebx + 0x12]
push dword [eax + 0x1d2]
push dword [eax + 0x1ce]
call fcn.00479961
and dword [esp + 0x60], edi
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], 0x41a00000
mov dword [esp + 0x68], 0x41200000
call fcn.00479976
add esp, 0x10
cmp dword [0x6a51b0], edi
jne 0x4f5b99
push edi
push 0x13b
push str.MHMap.cpp
call fcn.0040f180
add esp, 0xc
mov eax, dword [ebx + 0x12]
mov eax, dword [eax + 0x1ca]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x58c7f0]
call fcn.00562fd0
call fcn.00562d11
movss xmm1, dword [0x58ccc0]
mov esi, eax
mov ecx, esi
mov dword [esp + 0x30], esi
shr ecx, 0x1f
mov dword [esp + 0x24], edi
movd xmm0, esi
mov dword [esp + 0x14], edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [ecx*8 + 0x58c7f0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esp + 0x20], xmm1
test esi, esi
je 0x4f5d54
movaps xmm0, xmm1
call fcn.00562b30
mov dword [esp + 0x34], eax
lea eax, [ebx + 0x32c]
mov dword [esp + 0x28], eax
movd xmm0, edi
mov ecx, edi
mov edi, dword [esp + 0x34]
xor esi, esi
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mov dword [esp + 0x18], esi
addsd xmm0, qword [ecx*8 + 0x58c7f0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x20]
movss dword [esp + 0x2c], xmm0
jmp 0x4f5c4e
mov esi, dword [esp + 0x18]
push 0xa3
call fcn.005605ae
pop ecx
mov dword [esp + 0x1c], eax
and dword [esp + 0x88], 0
test eax, eax
je 0x4f5c74
mov ecx, eax
call fcn.00479547
mov ebx, eax
jmp 0x4f5c76
xor ebx, ebx
or dword [esp + 0x88], 0xffffffff
call fcn.0056238b
xor edx, edx
div edi
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x58c7f0]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x1c], xmm0
call fcn.0056238b
xor edx, edx
div edi
mov eax, esi
shr eax, 0x1f
push ecx
push ecx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x58c7f0]
cvtpd2ps xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov esi, dword [0x6a51b0]
addsd xmm0, qword [eax*8 + 0x58c7f0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x28]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
call fcn.0056238b
xor edx, edx
mov ecx, ebx
div esi
push edx
call fcn.00479582
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push esi
push ebx
call fcn.00446340
mov ebx, dword [esp + 0x18]
inc esi
inc ebx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
cmp ebx, esi
jb 0x4f5c4a
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp edi, esi
jb 0x4f5c18
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00560d94
mov esp, ebp
pop ebp
ret