Function at 0x100a7870
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x1015a368]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x1020e298]
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 [0x10216018]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
cmp eax, dword [ecx + 4]
jle 0x100a78fb
push 0x10216018
call fcn.100d7b55
add esp, 4
cmp dword [0x10216018], 0xffffffff
jne 0x100a78f7
mov eax, dword [0x10215d7c]
push 0x10216018
mov dword [0x10215fe4], eax
call fcn.100d7b0b
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [0x10215fe4]
movq xmm0, qword [esi + eax]
mov eax, dword [esi + eax + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [0x10215fdc]
movq qword [esp + 0x44], xmm0
cmp eax, dword [ecx + 4]
jle 0x100a7951
push 0x10215fdc
call fcn.100d7b55
add esp, 4
cmp dword [0x10215fdc], 0xffffffff
jne 0x100a794d
mov eax, dword [0x10215d84]
push 0x10215fdc
mov dword [0x10215fd0], eax
call fcn.100d7b0b
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [0x10215fd0]
movss xmm5, dword [edi]
movss xmm6, dword [edi + 4]
subss xmm5, dword [edx]
subss xmm6, dword [edx + 4]
movq xmm0, qword [esi + eax]
movss xmm7, dword [edi + 8]
subss xmm7, dword [edx + 8]
movq qword [esp + 0x38], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm5
movaps xmm1, xmm6
mov eax, dword [esi + eax + 8]
mulss xmm1, xmm6
mov dword [esp + 0x40], eax
movss xmm3, dword [esp + 0x38]
movss xmm2, dword [esp + 0x3c]
addss xmm1, xmm0
movss xmm4, dword [esp + 0x40]
movaps xmm0, xmm7
mov eax, dword [0x10215c4c]
mulss xmm0, xmm7
addss xmm3, dword [esp + 0x44]
addss xmm2, dword [esp + 0x48]
addss xmm1, xmm0
xorps xmm0, xmm0
addss xmm4, dword [esp + 0x4c]
sqrtss xmm0, xmm1
movss xmm1, dword [0x10155c78]
addss xmm0, dword [0x10155b38]
divss xmm1, xmm0
movss xmm0, dword [0x10155c1c]
mulss xmm5, xmm1
mulss xmm6, xmm1
mulss xmm7, xmm1
mulss xmm3, xmm0
mulss xmm2, xmm0
mulss xmm4, xmm0
movss dword [esp + 0x18], xmm5
movss dword [esp + 0x1c], xmm6
movss dword [esp + 0x28], xmm7
movss dword [esp + 0x10], xmm3
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x24], xmm4
cmp eax, dword [ecx + 4]
jle 0x100a7a85
push 0x10215c4c
call fcn.100d7b55
add esp, 4
cmp dword [0x10215c4c], 0xffffffff
jne 0x100a7a63
mov eax, dword [0x10215c44]
push 0x10215c4c
mov dword [0x10215c48], eax
call fcn.100d7b0b
add esp, 4
mov edx, dword [esp + 0x14]
movss xmm6, dword [esp + 0x1c]
movss xmm5, dword [esp + 0x18]
movss xmm4, dword [esp + 0x24]
movss xmm3, dword [esp + 0x10]
movss xmm2, dword [esp + 0x20]
mov eax, dword [0x10215c48]
movaps xmm7, xmm5
addss xmm3, dword [esi + eax]
addss xmm2, dword [esi + eax + 4]
addss xmm4, dword [esi + eax + 8]
movaps xmm0, xmm3
movss dword [esp + 0x10], xmm3
subss xmm0, dword [edx]
movaps xmm1, xmm2
movaps xmm3, xmm4
subss xmm1, dword [edx + 4]
subss xmm3, dword [edx + 8]
mulss xmm7, xmm0
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm6
mulss xmm0, xmm1
movss dword [esp + 0x18], xmm3
addss xmm7, xmm0
movss dword [esp + 0x14], xmm7
movss xmm7, dword [esp + 0x28]
movaps xmm0, xmm7
mulss xmm0, xmm3
movss xmm3, dword [esp + 0x14]
addss xmm3, xmm0
xorps xmm0, xmm0
movss dword [esp + 0x14], xmm3
comiss xmm0, xmm3
movss xmm3, dword [esp + 0x10]
jbe 0x100a7b37
movss xmm0, dword [esp + 0x1c]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, xmm0
addss xmm1, xmm0
sqrtss xmm1, xmm1
xorps xmm1, xmmword [0x10156550]
jmp 0x100a7bd9
movaps xmm1, xmm5
movaps xmm0, xmm6
mulss xmm0, xmm6
mulss xmm1, xmm5
addss xmm1, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm7
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss xmm1, dword [esp + 0x14]
comiss xmm1, xmm0
jbe 0x100a7b98
subss xmm2, dword [edi + 4]
subss xmm3, dword [edi]
subss xmm4, dword [edi + 8]
xorps xmm1, xmm1
mulss xmm2, xmm2
mulss xmm3, xmm3
mulss xmm4, xmm4
addss xmm2, xmm3
addss xmm2, xmm4
sqrtss xmm1, xmm2
xorps xmm1, xmmword [0x10156550]
jmp 0x100a7bd9
mulss xmm5, xmm1
mulss xmm6, xmm1
mulss xmm7, xmm1
xorps xmm1, xmm1
addss xmm5, dword [edx]
addss xmm6, dword [edx + 4]
addss xmm7, dword [edx + 8]
subss xmm3, xmm5
subss xmm2, xmm6
subss xmm4, xmm7
mulss xmm3, xmm3
mulss xmm2, xmm2
mulss xmm4, xmm4
addss xmm2, xmm3
addss xmm2, xmm4
sqrtss xmm1, xmm2
movss xmm0, dword [0x10155e10]
comiss xmm0, xmm1
jb 0x100a7c8f
mov edi, dword [0x1020e2c8]
lea ecx, [esp + 0x50]
push dword [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0xc4], 0
push edx
mov eax, dword [edi]
movaps xmmword [esp + 0xa8], xmm0
movaps xmmword [esp + 0xb8], xmm0
mov esi, dword [eax + 0xc]
call fcn.10055e70
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 0x100a7c8f
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.100d7a38
mov esp, ebp
pop ebp
ret 0x10