Function at 0x1003b170
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 0x100dd16d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x10108c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
push 0x28
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.100acdf8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov dword [ebp - 4], 0
mov edi, dword [eax + 0x2c]
lea ecx, [eax + 0x20]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x30]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1003b413
xor ecx, ecx
mov dword [ebp - 0x24], ecx
nop word [eax + eax]
movzx edx, word [edi + ecx]
mov eax, dword [ebp - 0x20]
shl edx, 6
mov eax, dword [eax]
add edx, eax
mov dword [ebp - 0x28], edx
movzx edx, word [edi + ecx + 2]
movzx ecx, word [edi + ecx + 4]
shl edx, 6
add edx, eax
shl ecx, 6
mov dword [ebp - 0x1c], edx
add ecx, eax
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
movss xmm4, dword [ecx + 4]
movss xmm3, dword [ecx + 8]
movss xmm6, dword [edi + 8]
movss xmm2, dword [edi + 4]
subss xmm6, dword [edx + 8]
subss xmm2, dword [edx + 4]
subss xmm4, dword [edx + 4]
subss xmm3, dword [edx + 8]
movss xmm7, dword [edi]
subss xmm7, dword [edx]
movss xmm5, dword [ecx]
movaps xmm0, xmm6
subss xmm5, dword [edx]
mulss xmm0, xmm4
movaps xmm1, xmm2
mulss xmm1, xmm3
mulss xmm6, xmm5
subss xmm1, xmm0
mulss xmm2, xmm5
movaps xmm0, xmm7
mulss xmm7, xmm4
mulss xmm0, xmm3
movss dword [ebp - 0x14], xmm1
subss xmm7, xmm2
subss xmm6, xmm0
movss xmm0, dword [ebp - 0x14]
mulss xmm0, xmm0
movss dword [ebp - 0x1c], xmm7
movaps xmm1, xmm6
movss dword [ebp - 0x18], xmm6
mulss xmm1, xmm6
addss xmm1, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm7
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1003b2e6
sqrtsd xmm0, xmm0
jmp 0x1003b2eb
call fcn.100b9640
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x100e4b64]
comiss xmm0, xmm1
jae 0x1003b3e5
movss xmm0, dword [ebp - 0x14]
lea eax, [ebp - 0x48]
divss xmm0, xmm1
lea ecx, [ebp - 0x38]
push dword [ebp - 0x28]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp - 0x18]
divss xmm0, xmm1
push eax
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0x1c]
divss xmm0, xmm1
movss dword [ebp - 0x1c], xmm0
call fcn.1003a290
movss xmm0, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push edi
mov eax, dword [eax]
addss xmm0, dword [eax + 0x1c]
movss dword [eax + 0x1c], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [eax + 0x20]
movss dword [eax + 0x20], xmm0
movss xmm0, dword [ebp - 0x1c]
addss xmm0, dword [eax + 0x24]
movss dword [eax + 0x24], xmm0
lea eax, [ebp - 0x58]
push eax
call fcn.1003a290
movss xmm0, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x30]
mov eax, dword [eax]
addss xmm0, dword [eax + 0x1c]
movss dword [eax + 0x1c], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [eax + 0x20]
movss dword [eax + 0x20], xmm0
movss xmm0, dword [ebp - 0x1c]
addss xmm0, dword [eax + 0x24]
movss dword [eax + 0x24], xmm0
lea eax, [ebp - 0x64]
push eax
call fcn.1003a290
movss xmm0, dword [ebp - 0x14]
mov eax, dword [eax]
addss xmm0, dword [eax + 0x1c]
movss dword [eax + 0x1c], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [eax + 0x20]
movss dword [eax + 0x20], xmm0
movss xmm0, dword [ebp - 0x1c]
addss xmm0, dword [eax + 0x24]
movss dword [eax + 0x24], xmm0
mov eax, dword [ebp - 0x2c]
inc esi
add dword [ebp - 0x24], 6
mov ecx, dword [eax + 0x30]
mov edi, dword [eax + 0x2c]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x24]
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1003b210
mov eax, dword [ebp - 0x20]
jmp 0x1003b419
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0x2c], 0
sar eax, 6
test eax, eax
je 0x1003b4e0
xor edx, edx
mov dword [ebp - 0x28], edx
lea edi, [edx + ecx]
push edi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x38]
call fcn.1003a290
mov esi, dword [eax]
movss xmm0, dword [esi + 0x1c]
movaps xmm1, xmm0
movaps xmmword [ebp - 0x50], xmm0
mulss xmm1, xmm0
movss xmm0, dword [esi + 0x20]
mulss xmm0, xmm0
addss xmm1, xmm0
movss xmm0, dword [esi + 0x24]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1003b485
sqrtsd xmm0, xmm0
jmp 0x1003b48a
call fcn.100b9640
movss xmm2, dword [esi + 0x20]
movss xmm1, dword [esi + 0x24]
movaps xmm3, xmmword [ebp - 0x50]
cvtsd2ss xmm0, xmm0
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
inc esi
add edx, 0x40
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edx
divss xmm3, xmm0
divss xmm2, xmm0
divss xmm1, xmm0
unpcklps xmm3, xmm2
movq qword [edi + 0xc], xmm3
movss dword [ebp - 0x54], xmm1
mov eax, dword [ebp - 0x54]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 6
cmp esi, eax
jb 0x1003b437
lea ecx, [ebp - 0x38]
call fcn.1003a530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret