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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, ecx
push esi
push edi
mov dword [esp + 0x28], eax
cmp byte [eax], 0
je 0x100b031e
mov ecx, dword [ebp + 0x18]
test byte [ecx + 0x30], 1
je 0x100b031e
mov eax, dword [0x1015b9d4]
mov ecx, dword [eax]
test ecx, ecx
je 0x100b031e
lea eax, [esp + 0x70]
xor edx, edx
push eax
mov eax, dword [ecx]
push dword [0x1015e7fc]
push dword [eax + 0x474]
lea eax, [esp + 0x8c]
push eax
call fcn.100a0f40
movss xmm0, dword [0x10150d14]
xor eax, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x30], eax
xor edx, edx
mov eax, dword [0x1015b9d4]
mov dword [esp + 0x2c], ecx
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x24], xmm0
xorps xmm0, xmm0
mov ecx, dword [eax]
lea eax, [esp + 0x64]
push eax
push dword [0x1015e7fc]
mov dword [esp + 0x3c], 0
mov eax, dword [ecx]
movq qword [esp + 0x20], xmm0
push dword [eax + 0x568]
lea eax, [esp + 0x8c]
push eax
call fcn.100a0f40
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], 1
mov ecx, dword [edx + 4]
push dword [edx]
xor edx, edx
mov eax, dword [ecx]
push dword [eax + 0x50]
lea eax, [esp + 0x88]
push eax
call fcn.100a0f40
cmp eax, 1
jl 0x100b031e
mov edx, dword [ebp + 8]
push dword [esp + 0x10]
mov ecx, dword [edx + 8]
push dword [edx]
xor edx, edx
mov eax, dword [ecx]
push dword [eax + 0xc]
lea eax, [esp + 0xb0]
push eax
call fcn.100a0f40
mov esi, dword [0x1015e7fc]
mov edi, eax
test edi, edi
je 0x100afed1
mov ecx, dword [0x1015b9d4]
cmp edi, dword [ecx]
je 0x100afed1
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
push esi
xor edx, edx
push dword [eax + 0x24]
lea eax, [esp + 0xb8]
push eax
call fcn.100a0f40
test al, al
jne 0x100afed1
mov eax, dword [edi]
xor edx, edx
push esi
mov ecx, edi
push dword [eax + 0x270]
lea eax, [esp + 0xc4]
push eax
call fcn.100a0f40
test al, al
je 0x100afed1
mov eax, dword [0x1015b9d4]
mov ecx, dword [ebp + 0x14]
push dword [eax]
mov edx, dword [ecx + 0x30]
mov ecx, edi
call edx
test al, al
je 0x100afed1
mov eax, dword [edi]
xor edx, edx
push esi
mov ecx, edi
push dword [eax + 0x28]
lea eax, [esp + 0x94]
push eax
call fcn.100a0f40
mov esi, eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 2], 0
je 0x100afd4b
movq xmm0, qword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
movss xmm3, dword [esp + 0x64]
movq qword [esp + 0x4c], xmm0
movss xmm4, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
movss xmm2, dword [esp + 0x54]
jmp 0x100afd6b
xorps xmm0, xmm0
mov dword [esp + 0xa0], 0
movq qword [esp + 0x98], xmm0
xorps xmm3, xmm3
xorps xmm4, xmm4
xorps xmm2, xmm2
movss xmm0, dword [esi]
lea ecx, [esp + 0x58]
subss xmm0, dword [esp + 0x70]
mov eax, dword [ebp + 0x18]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [esp + 0x74]
addss xmm3, dword [eax + 0xc]
addss xmm4, dword [eax + 0x10]
addss xmm2, dword [eax + 0x14]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 8]
subss xmm0, dword [esp + 0x78]
xorps xmm2, xmmword [0x10151740]
movss dword [esp + 0x60], xmm2
xorps xmm0, xmmword [0x10151740]
movss dword [esp + 0x38], xmm0
fld dword [esp + 0x38]
fld dword [esp + 0x20]
fst dword [esp + 0x20]
fld dword [esp + 0xc]
movss xmm1, dword [esp + 0x20]
fst dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
fxch st(1)
fxch st(3)
fxch st(1)
fpatan
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
fpatan
mulss xmm0, dword [0x10150cd0]
fstp dword [esp + 0xc]
subss xmm0, xmm3
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10150cd0]
subss xmm0, xmm4
movss dword [esp + 0x5c], xmm0
call fcn.100a0f70
movq xmm0, qword [eax]
movq qword [esp + 0x3c], xmm0
fld dword [esp + 0x3c]
fstp dword [esp + 0xc]
movss xmm1, dword [esp + 0xc]
fld dword [esp + 0x40]
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm0
mov eax, dword [eax + 8]
mulss xmm1, xmm1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss xmm1, dword [esp + 0x24]
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
comiss xmm1, xmm0
jbe 0x100afed5
mov ecx, dword [esi + 8]
movss dword [esp + 0x24], xmm0
movq xmm0, qword [esi]
mov dword [esp + 0x34], edi
mov edi, eax
mov dword [esp + 0x14], edi
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x2c], ecx
jmp 0x100afed9
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 4]
push dword [edx]
xor edx, edx
mov eax, dword [ecx]
push dword [eax + 0x50]
lea eax, [esp + 0x88]
push eax
call fcn.100a0f40
cmp dword [esp + 0x10], eax
jle 0x100afc66
cmp dword [esp + 0x34], 0
je 0x100b031e
add edi, 4
lea esi, [edi + edi*4]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x7c], esi
cmp dword [edi + esi*4], 3
jbe 0x100b031e
cmp byte [edi + 1], 0
jne 0x100affa5
mov eax, dword [0x1015b9d4]
xor edx, edx
mov ecx, dword [eax]
lea eax, [esp + 0x3c]
push eax
push dword [0x1015e7fc]
mov eax, dword [ecx]
push dword [eax + 0x474]
lea eax, [esp + 0x98]
push eax
call fcn.100a0f40
movq xmm0, qword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push 1
sub esp, 0xc
mov eax, esp
sub esp, 0xc
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, esp
mov eax, dword [esp + 0x60]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x14]
push dword [eax + 0x28]
push dword [eax + 0x2c]
lea eax, [esp + 0xb0]
push eax
call fcn.100a0f10
add esp, 0x28
test al, al
jne 0x100b031e
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [edi + esi*4], ecx
jbe 0x100b031e
mov eax, dword [esp + 0x14]
lea esi, [eax + eax*4]
mov dword [esp + 0x24], esi
nop
mov eax, dword [edi + esi*4 + 0x48]
add ecx, dword [edi + esi*4 + 0x4c]
dec eax
mov edx, dword [ebp + 0xc]
and ecx, eax
mov eax, dword [edi + esi*4 + 0x44]
push dword [edx]
mov eax, dword [eax + ecx*4]
mov ecx, dword [edx + 4]
xor edx, edx
mov dword [esp + 0x1c], eax
movss xmm0, dword [eax + 0xc]
mov eax, dword [ecx]
movss dword [esp + 0x18], xmm0
push dword [eax + 0x138]
lea eax, [esp + 0x94]
push eax
call fcn.100a0f40
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100b0017
mov edx, dword [ebp + 0x14]
add edx, 0x1c
mov dword [esp + 0x14], edx
jmp 0x100b02b8
mov ecx, dword [edi + 0x3c]
xor edx, edx
push dword [edi + 0x38]
mov eax, dword [ecx]
push dword [eax + 0x30]
lea eax, [esp + 0xc4]
push eax
call fcn.100a0f40
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov esi, dword [0x1015e7fc]
push 1
push esi
mov eax, dword [ecx]
fstp dword [esp + 0x30]
mov dword [esp + 0x40], 0
push dword [eax + 0x24]
lea eax, [esp + 0xbc]
push eax
call fcn.100a0f40
mov ecx, dword [esp + 0x2c]
xor edx, edx
push 0
push esi
fstp dword [esp + 0x28]
mov eax, dword [ecx]
push dword [eax + 0x24]
lea eax, [esp + 0xb0]
push eax
call fcn.100a0f40
mov ecx, edi
fstp dword [esp + 0xc]
call fcn.100afaa0
movss xmm1, dword [esp + 0xc]
lea ecx, [esp + 0xc]
addss xmm1, dword [esp + 0x20]
mov esi, dword [ebp + 0x14]
lea eax, [esp + 0x38]
movaps xmm2, xmm0
xorps xmm3, xmm3
movss xmm0, dword [esp + 0x28]
addss xmm2, xmm1
comiss xmm2, xmm3
movss dword [esp + 0xc], xmm2
cmovae eax, ecx
add esi, 0x1c
comiss xmm0, xmm2
lea ecx, [esp + 0x28]
movd xmm0, dword [0x1015e818]
cvtdq2ps xmm0, xmm0
cmovae ecx, eax
mov eax, dword [esi]
movss xmm1, dword [ecx]
mulss xmm0, dword [eax + 0x20]
subss xmm0, dword [esp + 0x14]
mov dword [esp + 0x14], esi
subss xmm1, xmm0
movss xmm0, dword [0x10150b60]
andps xmm1, xmmword [0x10151710]
comiss xmm0, xmm1
setae al
test al, al
je 0x100b02b4
cmp byte [edi + 2], 0
je 0x100b0137
movq xmm0, qword [esp + 0x64]
mov eax, dword [esp + 0x6c]
movss xmm2, dword [esp + 0x64]
movq qword [esp + 0x3c], xmm0
movss xmm4, dword [esp + 0x40]
mov dword [esp + 0x44], eax
movss xmm3, dword [esp + 0x44]
jmp 0x100b0154
xorps xmm0, xmm0
mov dword [esp + 0x88], 0
movq qword [esp + 0x80], xmm0
xorps xmm2, xmm2
xorps xmm4, xmm4
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x58]
movss xmm0, dword [eax]
subss xmm0, dword [esp + 0x70]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esp + 0x74]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [esp + 0x78]
mov eax, dword [ebp + 0x18]
xorps xmm0, xmmword [0x10151740]
movss dword [esp + 0x18], xmm0
fld dword [esp + 0x18]
fld dword [esp + 0xc]
fst dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
fld dword [esp + 0x20]
fst dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm2, dword [eax + 0xc]
addss xmm4, dword [eax + 0x10]
addss xmm1, xmm0
xorps xmm0, xmm0
addss xmm3, dword [eax + 0x14]
sqrtss xmm0, xmm1
xorps xmm3, xmmword [0x10151740]
movss dword [esp + 0x18], xmm0
fld dword [esp + 0x18]
fxch st(1)
fxch st(3)
movss dword [esp + 0x60], xmm3
fxch st(1)
fpatan
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
fpatan
mulss xmm0, dword [0x10150cd0]
fstp dword [esp + 0x18]
subss xmm0, xmm2
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x10150cd0]
subss xmm0, xmm4
movss dword [esp + 0x5c], xmm0
call fcn.100a0f70
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], esi
movq xmm0, qword [eax]
movq qword [esp + 0x4c], xmm0
fld dword [esp + 0x4c]
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
fld dword [esp + 0x50]
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss xmm1, dword [esp + 0x48]
movss dword [esp + 0x18], xmm0
fld dword [esp + 0x18]
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
comiss xmm1, xmm0
jbe 0x100b02ae
mov edx, ecx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
movss dword [esp + 0x48], xmm0
mov dword [esp + 0x30], edx
jmp 0x100b02c0
mov esi, dword [esp + 0x24]
jmp 0x100b02bc
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x7c]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [edi + eax*4]
jb 0x100affc0
test edx, edx
je 0x100b031e
mov eax, dword [edi + esi*4 + 0x48]
add edx, dword [edi + esi*4 + 0x4c]
dec eax
mov ecx, dword [esp + 0x34]
and edx, eax
mov eax, dword [edi + esi*4 + 0x44]
mov esi, dword [eax + edx*4]
mov eax, dword [ebp + 0x14]
push esi
mov eax, dword [eax + 0x40]
call eax
mov ecx, edi
call fcn.100afaa0
mov eax, dword [esp + 0x14]
addss xmm0, dword [esi + 0xc]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
divss xmm0, dword [eax + 0x20]
addss xmm0, dword [0x10150b98]
cvttss2si eax, xmm0
mov dword [ecx + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14