Function at 0x1008b310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x1017c400]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x101f04c8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov eax, dword [eax + ecx*4]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov ecx, eax
mov eax, dword [0x101f86f0]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
cmp eax, dword [ecx + 4]
jle 0x1008b39b
push 0x101f86f0
call fcn.100bf2a3
add esp, 4
cmp dword [0x101f86f0], 0xffffffff
jne 0x1008b397
mov eax, dword [0x101f84a4]
push 0x101f86f0
mov dword [0x101f8708], eax
call fcn.100bf252
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [0x101f8708]
movq xmm0, qword [esi + eax]
mov eax, dword [esi + eax + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [0x101f8754]
movq qword [esp + 0x44], xmm0
cmp eax, dword [ecx + 4]
jle 0x1008b3f1
push 0x101f8754
call fcn.100bf2a3
add esp, 4
cmp dword [0x101f8754], 0xffffffff
jne 0x1008b3ed
mov eax, dword [0x101f84a0]
push 0x101f8754
mov dword [0x101f8758], eax
call fcn.100bf252
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
movss xmm2, dword [edi]
movss xmm3, dword [edi + 4]
mov eax, dword [0x101f8758]
subss xmm2, dword [edx]
subss xmm3, dword [edx + 4]
movss xmm4, dword [edi + 8]
movq xmm0, qword [esi + eax]
subss xmm4, dword [edx + 8]
movq qword [esp + 0x38], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm1, xmm3
mov eax, dword [esi + eax + 8]
mulss xmm1, xmm3
mov dword [esp + 0x40], eax
mov eax, dword [0x101f834c]
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm4
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss xmm1, dword [0x101761b8]
addss xmm0, dword [0x1017609c]
divss xmm1, xmm0
movss xmm0, dword [0x10176174]
mulss xmm2, xmm1
mulss xmm3, xmm1
mulss xmm4, xmm1
movss dword [esp + 0x24], xmm2
movss xmm2, dword [esp + 0x3c]
addss xmm2, dword [esp + 0x48]
movss dword [esp + 0x28], xmm3
movss xmm3, dword [esp + 0x38]
addss xmm3, dword [esp + 0x44]
movss dword [esp + 0x10], xmm4
movss xmm4, dword [esp + 0x40]
addss xmm4, dword [esp + 0x4c]
mulss xmm2, xmm0
mulss xmm3, xmm0
mulss xmm4, xmm0
movss dword [esp + 0x1c], xmm3
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x20], xmm4
cmp eax, dword [ecx + 4]
jle 0x1008b519
push 0x101f834c
call fcn.100bf2a3
add esp, 4
cmp dword [0x101f834c], 0xffffffff
jne 0x1008b503
mov eax, dword [0x101f8350]
push 0x101f834c
mov dword [0x101f8354], eax
call fcn.100bf252
add esp, 4
mov edx, dword [esp + 0x14]
movss xmm4, dword [esp + 0x20]
movss xmm3, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x18]
mov eax, dword [0x101f8354]
movss xmm0, dword [esp + 0x28]
movss xmm5, dword [esp + 0x24]
addss xmm3, dword [esi + eax]
addss xmm2, dword [esi + eax + 4]
addss xmm4, dword [esi + eax + 8]
movaps xmm6, xmm3
subss xmm6, dword [edx]
movaps xmm1, xmm2
movaps xmm7, xmm4
subss xmm1, dword [edx + 4]
subss xmm7, dword [edx + 8]
mulss xmm5, xmm6
mulss xmm0, xmm1
addss xmm5, xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, xmm7
addss xmm5, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm5
jbe 0x1008b59b
mulss xmm1, xmm1
xorps xmm0, xmm0
mulss xmm6, xmm6
mulss xmm7, xmm7
addss xmm1, xmm6
addss xmm1, xmm7
sqrtss xmm0, xmm1
xorps xmm0, xmmword [0x101765c0]
jmp 0x1008b64e
movss xmm6, dword [esp + 0x24]
movss xmm7, dword [esp + 0x28]
movaps xmm1, xmm6
movaps xmm0, xmm7
mulss xmm1, xmm6
mulss xmm0, xmm7
addss xmm1, xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, xmm0
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
comiss xmm5, xmm0
jbe 0x1008b605
subss xmm2, dword [edi + 4]
subss xmm3, dword [edi]
subss xmm4, dword [edi + 8]
xorps xmm0, xmm0
mulss xmm2, xmm2
mulss xmm3, xmm3
mulss xmm4, xmm4
addss xmm2, xmm3
addss xmm2, xmm4
sqrtss xmm0, xmm2
xorps xmm0, xmmword [0x101765c0]
jmp 0x1008b64e
movaps xmm0, xmm5
mulss xmm0, xmm6
addss xmm0, dword [edx]
subss xmm3, xmm0
movaps xmm0, xmm5
mulss xmm5, dword [esp + 0x10]
mulss xmm0, xmm7
addss xmm5, dword [edx + 8]
mulss xmm3, xmm3
addss xmm0, dword [edx + 4]
subss xmm4, xmm5
subss xmm2, xmm0
xorps xmm0, xmm0
mulss xmm4, xmm4
mulss xmm2, xmm2
addss xmm2, xmm3
addss xmm2, xmm4
sqrtss xmm0, xmm2
comiss xmm0, dword [0x101762d8]
ja 0x1008b700
mov edi, dword [0x101f0cdc]
lea ecx, [esp + 0x50]
push dword [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0xc4], 0
movaps xmmword [esp + 0xa4], xmm0
movaps xmmword [esp + 0xb4], xmm0
mov eax, dword [edi]
push edx
mov esi, dword [eax + 0xc]
call fcn.10049380
lea ecx, [esp + 0xa0]
push ecx
push dword [esp + 0x34]
mov ecx, edi
push 0x4600400b
push eax
call esi
mov ecx, dword [esp + 0x34]
movss xmm0, dword [ecx + 0x2c]
comiss xmm0, dword [esp + 0xcc]
jbe 0x1008b700
movups xmm0, xmmword [esp + 0xa0]
mov eax, dword [esp + 0xf0]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [esp + 0xb0]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [esp + 0xd0]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [ecx + 0x40], xmm0
mov dword [ecx + 0x50], eax
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.100bf244
mov esp, ebp
pop ebp
ret 0x10