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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
mov esi, ecx
mov ecx, dword [0x1012266c]
push edi
mov edi, edx
mov eax, dword [ecx + 0x1928]
mov byte [eax + 0x78], 1
mov edx, dword [ecx + 0x1928]
cmp byte [edx + 0x7b], 0
jne 0x1002224a
test edi, edi
jne 0x10021c2a
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021c18
sub ecx, edi
lea edi, [ecx + esi]
mov ecx, dword [0x1012266c]
movss xmm1, dword [edx + 0x16c]
xorps xmm2, xmm2
movss xmm5, dword [edx + 0xec]
mov eax, edi
addss xmm5, dword [edx + 0xcc]
movss xmm6, dword [edx + 0xc8]
comiss xmm1, xmm2
movss dword [esp + 0x14], xmm6
movss dword [esp + 0x28], xmm5
setae byte [esp + 0x13]
sub eax, esi
cmp eax, 0x7d0
jle 0x10021f77
cmp byte [esp + 0x13], 0
jne 0x10021f82
movups xmm0, xmmword [edx + 0x1d4]
movss xmm3, dword [ecx + 0x1854]
xorps xmm4, xmm4
movaps xmmword [esp + 0x60], xmm0
xorps xmm1, xmm1
shufps xmm0, xmm0, 0xff
comiss xmm0, xmm5
movss dword [esp + 0x20], xmm3
movss dword [esp + 0x24], xmm4
jb 0x10021f21
cmp byte [ecx + 0x2b8c], 0
movaps xmm1, xmm5
mov edx, dword [sym.imp.VCRUNTIME140.dll_strchr]
movss dword [esp + 0x40], xmm6
movss dword [esp + 0x44], xmm1
jne 0x10021d45
movss xmm0, dword [esp + 0x64]
subss xmm0, xmm5
divss xmm0, xmm3
cvttss2si ecx, xmm0
mov dword [esp + 0x2c], ecx
test ecx, ecx
jle 0x10021d45
xor eax, eax
mov dword [esp + 0x1c], eax
cmp esi, edi
jae 0x10021d30
cmp eax, ecx
jge 0x10021d1b
push 0xa
push esi
call edx
mov ecx, dword [esp + 0x34]
add esp, 8
mov edx, dword [sym.imp.VCRUNTIME140.dll_strchr]
test eax, eax
cmove eax, edi
lea esi, [eax + 1]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp esi, edi
jb 0x10021cf0
movss xmm5, dword [esp + 0x28]
xorps xmm2, xmm2
movss xmm6, dword [esp + 0x14]
movss xmm3, dword [esp + 0x20]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm3
addss xmm1, xmm5
movss dword [esp + 0x44], xmm1
cmp esi, edi
jae 0x10021f0d
movaps xmm0, xmm6
movss dword [esp + 0x18], xmm1
addss xmm0, dword [0x1009b504]
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0x1c], xmm0
push 0xa
push esi
call edx
mov edx, dword [0x1012266c]
add esp, 8
movss xmm0, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov ecx, dword [edx + 0x1928]
comiss xmm0, dword [ecx + 0x1d8]
jbe 0x10021dc5
movss xmm0, dword [ecx + 0x1e0]
comiss xmm0, dword [esp + 0x18]
jbe 0x10021dc5
movss xmm0, dword [esp + 0x30]
comiss xmm0, dword [ecx + 0x1d4]
jbe 0x10021dc5
movss xmm0, dword [ecx + 0x1dc]
comiss xmm0, dword [esp + 0x14]
ja 0x10021dd2
cmp byte [edx + 0x2b8c], 0
je 0x10021ec3
movss xmm0, dword [edx + 0x1854]
mov ecx, dword [edx + 0x1850]
mov dword [esp + 0x38], ecx
movss dword [esp + 0x34], xmm0
cmp esi, eax
jne 0x10021df3
xorps xmm1, xmm1
jmp 0x10021e51
movss xmm3, dword [0x1009b504]
movaps xmm2, xmm0
push ecx
push eax
push esi
push ecx
lea eax, [esp + 0x68]
mov dword [esp], 0xbf800000
push eax
call fcn.100498d0
movss xmm0, dword [esp + 0x58]
comiss xmm0, dword [0x1009b2e8]
jbe 0x10021e34
mov eax, dword [esp + 0x38]
movss xmm1, dword [esp + 0x34]
divss xmm1, dword [eax]
subss xmm0, xmm1
addss xmm0, dword [0x1009b37c]
cvttss2si eax, xmm0
movd xmm1, eax
mov eax, dword [esp + 0x2c]
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x58], xmm1
push dword [esp + 0x44]
maxss xmm1, dword [esp + 0x28]
push dword [esp + 0x44]
mov edx, eax
mov ecx, esi
push 0
movss dword [esp + 0x30], xmm1
call fcn.1001a140
movss xmm0, dword [esp + 0x24]
add esp, 0xc
movss xmm1, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
addss xmm0, xmm1
mov edx, dword [sym.imp.VCRUNTIME140.dll_strchr]
test eax, eax
cmove eax, edi
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x1c]
addss xmm0, xmm1
lea esi, [eax + 1]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x44]
addss xmm0, xmm1
movss dword [esp + 0x44], xmm0
cmp esi, edi
jb 0x10021d71
xor eax, eax
mov dword [esp + 0x2c], eax
cmp esi, edi
jae 0x10021ef1
nop dword [eax]
push 0xa
push esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
cmove eax, edi
lea esi, [eax + 1]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp esi, edi
jb 0x10021ed0
movss xmm5, dword [esp + 0x28]
xorps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm1, xmm0
mulss xmm1, dword [esp + 0x20]
addss xmm1, dword [esp + 0x44]
movss xmm6, dword [esp + 0x14]
subss xmm1, xmm5
movss xmm4, dword [esp + 0x24]
addss xmm1, xmm2
addss xmm1, xmm5
movss dword [esp + 0x60], xmm6
addss xmm4, xmm6
movss dword [esp + 0x64], xmm5
lea ecx, [esp + 0x58]
movss dword [esp + 0x6c], xmm1
subss xmm1, xmm5
movss dword [esp + 0x68], xmm4
subss xmm4, xmm6
movss dword [esp + 0x5c], xmm1
xorps xmm1, xmm1
movss dword [esp + 0x58], xmm4
call fcn.10014090
push 0
xor edx, edx
lea ecx, [esp + 0x64]
call fcn.10014980
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
je 0x10022035
comiss xmm2, xmm1
ja 0x10022035
mov edx, dword [ecx + 0x1928]
ucomiss xmm1, xmm2
mov dword [esp + 0x38], edx
lahf
test ah, 0x44
jp 0x10022014
mov eax, dword [edx + 0x1c4]
movss xmm1, dword [edx + 0xc]
movss xmm3, dword [edx + 0x21c]
mov dword [esp + 0x2c], eax
subss xmm3, xmm1
test eax, eax
je 0x10022002
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
lea eax, [edx + 1]
movss xmm0, dword [ecx + 0x14]
test eax, eax
cmovns edx, eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [esp + 0x2c]
movss xmm3, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm3, xmm0
mulss xmm3, dword [eax + ecx*4]
mov eax, dword [esp + 0x38]
mov ecx, dword [0x1012266c]
addss xmm3, xmm0
subss xmm3, dword [eax + 0x3c]
addss xmm1, xmm3
subss xmm1, xmm6
maxss xmm1, dword [0x1009b380]
jmp 0x10022038
comiss xmm1, xmm2
jbe 0x10022027
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [edx + 0x54]
addss xmm1, xmm0
subss xmm1, xmm6
maxss xmm1, dword [0x1009b380]
jmp 0x10022038
xorps xmm1, xmm1
movss xmm4, dword [ecx + 0x1854]
mov eax, dword [ecx + 0x1850]
movss dword [esp + 0x24], xmm1
mov dword [esp + 0x34], eax
movss dword [esp + 0x38], xmm4
cmp esi, edi
jne 0x1002205f
xorps xmm1, xmm1
jmp 0x100220c4
movss xmm3, dword [0x1009b504]
movaps xmm2, xmm4
push ecx
push edi
push esi
push ecx
lea ecx, [esp + 0x68]
movss dword [esp], xmm1
push ecx
mov ecx, eax
call fcn.100498d0
movss xmm0, dword [esp + 0x58]
xorps xmm2, xmm2
comiss xmm0, xmm2
jbe 0x1002209f
mov eax, dword [esp + 0x34]
movss xmm1, dword [esp + 0x38]
divss xmm1, dword [eax]
subss xmm0, xmm1
addss xmm0, dword [0x1009b37c]
movss xmm4, dword [esp + 0x5c]
movss xmm5, dword [esp + 0x28]
movss xmm6, dword [esp + 0x14]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x40], xmm1
lea ecx, [esp + 0x40]
addss xmm1, xmm6
movss dword [esp + 0x44], xmm4
movaps xmm0, xmm5
movss dword [esp + 0x60], xmm6
addss xmm0, xmm4
movss dword [esp + 0x64], xmm5
movss dword [esp + 0x68], xmm1
xorps xmm1, xmm1
movss dword [esp + 0x6c], xmm0
call fcn.10014090
push 0
xor edx, edx
lea ecx, [esp + 0x64]
call fcn.10014980
add esp, 4
test al, al
je 0x1002224a
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [0x1012266c]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x1928]
mov dword [esp + 0x38], eax
test edi, edi
jne 0x10022153
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022143
mov eax, dword [esp + 0x38]
sub ecx, edx
lea edi, [ecx + esi]
cmp esi, edi
je 0x1002224a
movss xmm1, dword [0x1009b380]
xor ecx, ecx
mov edx, dword [eax + 0x27c]
call fcn.10012ab0
mov dword [esp + 0x1c], eax
test dword [esp + 0x1c], 0xff000000
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], edi
mov ecx, dword [eax + 0x1850]
movss xmm2, dword [eax + 0x1854]
mov dword [esp + 0x28], ecx
je 0x10022232
test edi, edi
jne 0x100221ca
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100221b0
sub ecx, dword [esp + 0x38]
lea eax, [ecx + esi]
mov dword [esp + 0x2c], eax
cmp esi, eax
je 0x1002222e
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x100221d8
mov eax, dword [edx + 0x28]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
ucomiss xmm2, dword [0x1009b2e8]
lahf
test ah, 0x44
jp 0x100221ed
mov eax, dword [edx + 0x28]
movss xmm2, dword [eax + 0xc]
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x44]
shl ecx, 4
push 0
push ecx
movups xmm0, xmmword [ecx + eax - 0x10]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x48]
movups xmmword [esp + 0x48], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp], xmm0
push dword [esp + 0x34]
push esi
push eax
push dword [esp + 0x30]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push edx
call fcn.10049c20
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x2b8c], 0
je 0x1002224a
push edi
mov edx, esi
lea ecx, [esp + 0x5c]
call fcn.1001a010
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret