Function at 0x1005a190
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10219930
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x102e2740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xf4], esi
push dword [esi + 0x3c]
push 0x8d40
call dword [0x102f8a50]
push dword [esi + 0x40]
push 0x8d41
call dword [0x102f8a38]
push 0x4100
call dword [0x102f80c8]
push dword [esi + 0x34]
push dword [esi + 0x30]
push 0
push 0
call dword [0x102f814c]
movss xmm0, dword [esi + 0x28]
lea edx, [esi + 0x20]
movss xmm1, dword [edx + 4]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [edx]
mulss xmm0, xmm0
addss xmm1, xmm0
comiss xmm1, dword [0x102d35e0]
jbe 0x1005a2b4
movaps xmm0, xmm1
lea eax, [ebp - 0xd4]
sqrtss xmm0, xmm0
lea ecx, [ebp - 0xfc]
push eax
sub esp, 8
movss dword [ebp - 0xd4], xmm0
call fcn.10072ef0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], edx
call fcn.100733f0
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1008eca0
mov eax, dword [ebp - 0x4c]
movss xmm0, dword [ebp - 0x48]
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
divss xmm1, xmm0
divss xmm2, xmm0
movss xmm3, dword [eax + 8]
movss dword [ebp - 0xe0], xmm1
movss dword [ebp - 0xdc], xmm2
divss xmm3, xmm0
jmp 0x1005a2e1
movq xmm0, qword [edx]
mov eax, dword [edx + 8]
movq qword [ebp - 0xe0], xmm0
movss xmm2, dword [ebp - 0xdc]
movss xmm1, dword [ebp - 0xe0]
mov dword [ebp - 0xd8], eax
movss xmm3, dword [ebp - 0xd8]
movss xmm0, dword [0x102d3708]
lea edx, [ebp - 0x2c]
mulss xmm1, xmm0
lea ecx, [ebp - 0xe0]
mulss xmm2, xmm0
mulss xmm3, xmm0
movss dword [ebp - 0x38], xmm1
movss dword [ebp - 0x34], xmm2
movss dword [ebp - 0x30], xmm3
movss dword [ebp - 0xe0], xmm1
movss dword [ebp - 0xdc], xmm2
movss dword [ebp - 0xd8], xmm3
call fcn.1006d240
movss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x80], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [ebp - 0x7c], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [ebp - 0x78], xmm0
movq xmm0, qword [esi + 0x9c]
mov eax, dword [esi + 0xa4]
movq qword [ebp - 0x5c], xmm0
movss xmm0, dword [esi + 0xa8]
movss xmm1, dword [esi + 0xac]
addss xmm0, xmm0
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x74]
movss dword [ebp - 0xf0], xmm0
movss xmm0, dword [esi + 0xb0]
movss dword [ebp - 0xd4], xmm0
movups xmm0, xmmword [esi + 0x50]
push ecx
movss dword [ebp - 0xf8], xmm1
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0x60], eax
movss xmm0, dword [esi + 0x64]
movss dword [ebp - 0xe8], xmm0
movss xmm0, dword [esi + 0x60]
movss dword [ebp - 0xec], xmm0
movq xmm0, qword [esi + 0x78]
movq qword [ebp - 0x74], xmm0
movq xmm0, qword [esi + 0x6c]
movq qword [ebp - 0x68], xmm0
movss dword [esp], xmm1
call fcn.101fe0b3
movss xmm0, dword [ebp - 0xd4]
fstp dword [ebp - 0xe4]
movss dword [esp], xmm0
call fcn.101fe0b3
fstp dword [ebp - 0xd4]
movss xmm0, dword [ebp - 0xd4]
addss xmm0, dword [ebp - 0xe4]
push ecx
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x102d3680]
movsd qword [esp], xmm0
call fcn.101fd405
lea edi, [esi + 0x1a0]
lea eax, [ebp - 0x80]
push edi
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x38]
fstp dword [ebp - 0xe4]
call fcn.1006c580
movss xmm2, dword [ebp - 0x68]
add esp, 0x10
movss xmm0, dword [ebp - 0x60]
movss xmm1, dword [ebp - 0x64]
addss xmm0, dword [ebp - 0x6c]
addss xmm2, dword [ebp - 0x74]
addss xmm1, dword [ebp - 0x70]
movss dword [ebp - 0xd8], xmm0
mov eax, dword [ebp - 0xd8]
movss xmm0, dword [ebp - 0xec]
unpcklps xmm2, xmm1
movq qword [ebp - 0xe0], xmm2
movq qword [ebp - 0x4c], xmm2
mov dword [ebp - 0x44], eax
mulss xmm0, dword [ebp - 0xe8]
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xd0]
movss dword [ebp - 0xe8], xmm0
call fcn.10066040
lea ecx, [ebp - 0x4c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x160]
call fcn.1006cb10
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.100739d0
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.100739d0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 2
call fcn.100739d0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
movss xmm4, dword [ecx]
movss xmm0, dword [ecx + 4]
movups xmm2, xmmword [eax + 0x10]
movups xmm3, xmmword [eax]
movups xmm1, xmmword [eax + 0x20]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
movss xmm0, dword [ecx + 8]
shufps xmm0, xmm0, 0
mulps xmm1, xmm0
movups xmm0, xmmword [eax + 0x30]
shufps xmm4, xmm4, 0
mulps xmm3, xmm4
addps xmm3, xmm2
addps xmm3, xmm1
movss xmm1, dword [ecx + 0xc]
shufps xmm1, xmm1, 0
mulps xmm0, xmm1
addps xmm0, xmm3
movaps xmmword [ebp - 0xc0], xmm0
movss xmm4, dword [ecx + 0x10]
movss xmm0, dword [ecx + 0x14]
movups xmm2, xmmword [eax + 0x10]
movups xmm3, xmmword [eax]
movups xmm1, xmmword [eax + 0x20]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
movss xmm0, dword [ecx + 0x18]
shufps xmm4, xmm4, 0
mulps xmm3, xmm4
shufps xmm0, xmm0, 0
mulps xmm1, xmm0
movups xmm0, xmmword [eax + 0x30]
addps xmm3, xmm2
addps xmm3, xmm1
movss xmm1, dword [ecx + 0x1c]
shufps xmm1, xmm1, 0
mulps xmm0, xmm1
addps xmm0, xmm3
movaps xmmword [ebp - 0xb0], xmm0
movss xmm0, dword [ecx + 0x24]
movups xmm2, xmmword [eax + 0x10]
movss xmm4, dword [ecx + 0x20]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
movss xmm0, dword [ecx + 0x28]
shufps xmm4, xmm4, 0
movups xmm3, xmmword [eax]
movups xmm1, xmmword [eax + 0x20]
mulps xmm3, xmm4
shufps xmm0, xmm0, 0
mulps xmm1, xmm0
movups xmm0, xmmword [eax + 0x30]
addps xmm3, xmm2
addps xmm3, xmm1
movss xmm1, dword [ecx + 0x2c]
shufps xmm1, xmm1, 0
mulps xmm0, xmm1
addps xmm3, xmm0
movaps xmmword [ebp - 0xa0], xmm3
movss xmm4, dword [ecx + 0x30]
movss xmm0, dword [ecx + 0x34]
movups xmm2, xmmword [eax + 0x10]
movups xmm3, xmmword [eax]
movups xmm1, xmmword [eax + 0x20]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
movss xmm0, dword [ecx + 0x38]
shufps xmm4, xmm4, 0
mulps xmm3, xmm4
shufps xmm0, xmm0, 0
mulps xmm1, xmm0
movups xmm0, xmmword [eax + 0x30]
addps xmm3, xmm2
addps xmm3, xmm1
movss xmm1, dword [ecx + 0x3c]
shufps xmm1, xmm1, 0
lea ecx, [ebp - 0x28]
mulps xmm0, xmm1
addps xmm0, xmm3
movaps xmmword [ebp - 0x90], xmm0
call fcn.10060d20
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 3
call fcn.100739d0
mov ecx, edi
mov dword [ebp - 4], 4
call fcn.100739d0
movaps xmm0, xmmword [ebp - 0xc0]
movups xmmword [edi], xmm0
movaps xmm0, xmmword [ebp - 0xb0]
movups xmmword [edi + 0x10], xmm0
movaps xmm0, xmmword [ebp - 0xa0]
movups xmmword [edi + 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x90]
movups xmmword [edi + 0x30], xmm0
movss xmm2, dword [ebp - 0x30]
subss xmm2, dword [ebp - 0x54]
movss xmm0, dword [ebp - 0x34]
subss xmm0, dword [ebp - 0x58]
movss xmm1, dword [ebp - 0x38]
subss xmm1, dword [ebp - 0x5c]
mulss xmm2, xmm2
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm2, xmm0
addss xmm2, xmm1
movaps xmm0, xmm2
sqrtss xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0xf0]
cvtps2pd xmm0, xmm0
divsd xmm0, qword [0x102d3700]
mulsd xmm0, qword [0x102d36c0]
call fcn.10217d90
movss xmm1, dword [ebp - 0x50]
xorps xmm3, xmm3
mov ecx, dword [ebp - 0xf4]
cvtps2pd xmm1, xmm1
mov eax, dword [ecx + 0x30]
mulsd xmm0, xmm1
cvtsd2ss xmm3, xmm0
movd xmm0, eax
movaps xmm2, xmm3
xorps xmm2, xmmword [0x102d3880]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub esp, 8
addsd xmm0, qword [eax*8 + 0x102d3840]
mov eax, dword [ecx + 0x34]
add ecx, 0x1e0
cvtpd2ps xmm5, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm5
mulss xmm5, xmm2
addsd xmm0, qword [eax*8 + 0x102d3840]
mulss xmm1, xmm3
cvtpd2ps xmm4, xmm0
movss xmm0, dword [ebp - 0xe4]
divss xmm5, xmm4
divss xmm1, xmm4
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0xf8]
movss dword [esp], xmm0
movaps xmm0, xmm5
call fcn.1006cf80
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101e9427
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret