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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x102289dc]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 8]
mov edx, 1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x14], 3
mov cl, byte [eax + 0x101f4f6c]
shl edx, cl
lea eax, [edi + 0x1c]
shl edx, 8
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
push dword [ebp + 0x20]
mov ecx, dword [edi + 0x28]
mov eax, dword [eax]
push edx
push ecx
imul ecx, dword [ebp + 0x10]
add ecx, esi
lea eax, [eax + ecx*4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10023ec0
mov eax, dword [esp + 0x30]
add esp, 0x14
mov edx, dword [esp + 0x18]
add eax, 4
add edx, dword [esp + 0x34]
sub dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jne 0x1001b8a1
mov eax, dword [ebp + 8]
xorps xmm2, xmm2
mov eax, dword [eax]
mov cl, byte [eax + 0x101f4f50]
movzx eax, byte [eax + 0x101f4f34]
movzx edx, cl
mov byte [esp + 0x23], cl
mov ecx, eax
imul ecx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
cmp ecx, 1
jne 0x1001b948
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
shr edx, 3
imul ecx, edx
shr esi, 3
add ecx, esi
movss xmm1, dword [eax + ecx*4]
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
imul ecx, edx
add ecx, esi
mov esi, dword [esp + 0x28]
movss xmm0, dword [eax + ecx*4]
addss xmm0, xmm0
jmp 0x1001bb32
cmp ecx, 2
jne 0x1001b9e2
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
shr eax, 3
imul ecx, eax
shr esi, 3
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], esi
add ecx, esi
cmp byte [esp + 0x23], 2
jne 0x1001b9b4
lea esi, [eax + 1]
mov eax, esi
imul eax, dword [edi + 0x10]
add eax, dword [ebp + 0xc]
movss xmm1, dword [edx + eax*4]
maxss xmm1, dword [edx + ecx*4]
mov edx, dword [edi + 0x18]
mov eax, edx
imul edx, dword [ebp + 0x10]
mov ecx, dword [edi + 0x14]
imul eax, esi
mov esi, dword [esp + 0x28]
add eax, dword [ebp + 0xc]
add edx, dword [ebp + 0xc]
movss xmm0, dword [ecx + eax*4]
maxss xmm0, dword [ecx + edx*4]
addss xmm0, xmm0
jmp 0x1001bb32
movss xmm1, dword [edx + ecx*4 + 4]
maxss xmm1, dword [edx + ecx*4]
mov ecx, dword [edi + 0x18]
imul ecx, eax
mov eax, dword [edi + 0x14]
add ecx, esi
mov esi, dword [esp + 0x28]
movss xmm0, dword [eax + ecx*4 + 4]
maxss xmm0, dword [eax + ecx*4]
addss xmm0, xmm0
jmp 0x1001bb32
xor ecx, ecx
xorps xmm3, xmm3
movss dword [esp + 0x14], xmm3
xorps xmm4, xmm4
movss dword [esp + 0x2c], xmm4
mov dword [esp + 0x18], ecx
test edx, edx
je 0x1001baa0
test eax, eax
je 0x1001ba93
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0x14]
shr edx, 3
add edx, ecx
shr esi, 3
mov ecx, dword [edi + 0x18]
imul ecx, edx
add ecx, esi
lea edi, [eax + ecx*4]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
imul ecx, edx
add ecx, esi
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
nop dword [eax + eax]
movss xmm0, dword [eax]
add eax, 4
movss xmm1, dword [edi]
add edi, 4
mulss xmm0, xmm0
mulss xmm0, xmm0
mulss xmm0, xmm0
addss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm1, xmm1
maxss xmm0, xmm4
addss xmm3, xmm1
movaps xmm4, xmm0
sub ecx, 1
jne 0x1001ba40
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
movss dword [esp + 0x2c], xmm4
movss dword [esp + 0x14], xmm3
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, edx
jb 0x1001ba02
mov esi, dword [esp + 0x28]
mov eax, esi
shr eax, 0x1f
movaps xmm1, xmmword [0x101f6b00]
movaps xmmword [esp + 0x40], xmm1
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101f6b50]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
cvtpd2ps xmm0, xmm0
lea eax, [esp + 0x78]
push dword [esp + 0x38]
divss xmm2, xmm0
push eax
movss dword [esp + 0x34], xmm0
shufps xmm2, xmm2, 0
movaps xmmword [esp + 0x60], xmm2
call fcn.10017560
xorps xmm1, xmm1
add esp, 0x10
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x14]
divss xmm0, dword [esp + 0x24]
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1001bb1e
sqrtsd xmm0, xmm0
jmp 0x1001bb23
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movaps xmm1, xmmword [esp + 0x60]
cvtsd2ss xmm0, xmm0
addss xmm0, dword [esp + 0x2c]
mov ecx, dword [edi]
xor edx, edx
movss dword [esp + 0x14], xmm0
xorps xmm7, xmm7
movss xmm0, dword [edi + 0x38]
xorps xmm5, xmm5
movss dword [esp + 0x1c], xmm0
mov eax, dword [ecx + 0x14]
movss xmm0, dword [edi + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
shufps xmm0, xmm0, 0
movaps xmmword [esp + 0x70], xmm0
movss xmm0, dword [edi + 0x30]
movzx eax, byte [eax]
shl esi, 6
add eax, 4
shufps xmm0, xmm0, 0
movaps xmmword [esp + 0xa0], xmm0
movss xmm0, dword [edi + 0x34]
lea eax, [eax + eax*2]
shufps xmm1, xmm1, 0
shufps xmm0, xmm0, 0
lea eax, [ecx + eax*4]
movaps xmmword [esp + 0x60], xmm1
movaps xmmword [esp + 0x90], xmm5
movaps xmmword [esp + 0x50], xmm7
mov dword [esp + 0x2c], edx
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], eax
nop
mov eax, dword [eax]
xorps xmm2, xmm2
mov ecx, dword [esp + 0x38]
movaps xmmword [esp + 0x80], xmm7
movaps xmmword [esp + 0x40], xmm2
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x18]
movss xmm4, dword [eax + edx*4]
xor eax, eax
shufps xmm4, xmm4, 0
test esi, esi
je 0x1001bcd6
mov ecx, dword [esp + 0x34]
movaps xmm3, xmmword [0x101f6b90]
movaps xmm6, xmmword [0x101f4be0]
add ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x3c]
movups xmm0, xmmword [ecx]
add ecx, 0x10
movups xmm2, xmmword [edx]
add edx, 0x10
mulps xmm0, xmm4
subps xmm2, xmm0
mulps xmm2, xmmword [edi + eax*4]
add eax, 4
mulps xmm2, xmm1
movaps xmm0, xmm2
movaps xmm1, xmm2
andps xmm0, xmmword [0x101f4c00]
andps xmm1, xmm6
orps xmm0, xmm3
cmpltps xmm1, xmm3
movaps xmm3, xmm0
addps xmm3, xmm2
subps xmm3, xmm0
andps xmm3, xmm1
andnps xmm1, xmm2
orps xmm3, xmm1
movaps xmm1, xmmword [0x101f4ac0]
subps xmm2, xmm3
andps xmm3, xmm6
sqrtps xmm0, xmm3
andps xmm2, xmm6
mulps xmm0, xmmword [esp + 0xb0]
addps xmm5, xmm2
mulps xmm2, xmm2
cmpleps xmm1, xmm3
addps xmm2, xmmword [esp + 0x50]
andps xmm1, xmmword [esp + 0xa0]
addps xmm1, xmmword [esp + 0x80]
cmpeqps xmm3, xmm7
movaps xmmword [esp + 0x50], xmm2
addps xmm1, xmm0
andnps xmm3, xmmword [0x101f4a90]
addps xmm3, xmmword [esp + 0x40]
movaps xmmword [esp + 0x80], xmm1
movaps xmm1, xmmword [esp + 0x60]
movaps xmm2, xmm3
movaps xmm3, xmmword [0x101f6b90]
movaps xmmword [esp + 0x40], xmm2
cmp eax, esi
jb 0x1001bc10
mov edi, dword [ebp + 0x14]
movaps xmmword [esp + 0x90], xmm5
movaps xmm0, xmmword [esp + 0x70]
mulps xmm0, xmm2
addps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x4e
addps xmm1, xmm0
movups xmmword [esp + 0x40], xmm1
movaps xmm1, xmm2
shufps xmm1, xmm2, 0x4e
addps xmm1, xmm2
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x39
addps xmm0, xmm1
call fcn.101e8cb0
mov esi, 0x1f
movaps xmm5, xmmword [esp + 0x90]
movups xmm0, xmmword [esp + 0x40]
lea edx, [eax + 1]
xorps xmm7, xmm7
bsr ecx, edx
movaps xmm1, xmm0
sub esi, ecx
shufps xmm1, xmm0, 0x39
xor esi, 0x1f
addps xmm1, xmm0
test eax, edx
mov edx, 0x1f
lea eax, [esi + 1]
cmovne esi, eax
inc esi
addss xmm1, dword [esp + 0x1c]
lea ecx, [esi + 0x11]
bsr eax, ecx
sub edx, eax
lea eax, [ecx - 1]
xor edx, 0x1f
test ecx, eax
mov ecx, dword [esp + 0x18]
lea eax, [edx + 1]
cmovne edx, eax
mov eax, dword [esp + 0x24]
add edx, esi
add ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x101f6b50]
mov edx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x2c], edx
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [edi + 0x3c]
addss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
movaps xmm1, xmmword [esp + 0x60]
cmp edx, 3
jb 0x1001bbc0
movaps xmm1, xmmword [esp + 0x90]
mov eax, dword [esp + 0x28]
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x4e
addps xmm0, xmm1
movaps xmm1, xmmword [esp + 0x50]
movups xmmword [esp + 0x70], xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x4e
addps xmm0, xmm1
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x39
addps xmm1, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101f6b50]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1001be22
sqrtsd xmm0, xmm0
jmp 0x1001be27
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movups xmm2, xmmword [esp + 0x70]
mov ecx, dword [esp + 0xcc]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm1, dword [edi + 8]
shufps xmm0, xmm2, 0x39
addps xmm0, xmm2
mulss xmm0, dword [edi + 4]
pop edi
pop esi
xor ecx, esp
addss xmm1, xmm0
mulss xmm1, dword [esp + 0xc]
addss xmm1, dword [esp + 0x14]
movss dword [esp + 0x28], xmm1
fld dword [esp + 0x28]
call fcn.101e8c02
mov esp, ebp
pop ebp
ret