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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [esp + 8], edx
mov ecx, dword [0x100c6c64]
push esi
push edi
mov eax, dword [ecx + 0x1a20]
mov byte [eax + 0x78], 1
mov esi, dword [ecx + 0x1a20]
cmp byte [esi + 0x7b], 0
jne 0x10021f61
test edx, edx
jne 0x10021bdf
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021bc9
sub ecx, edx
lea edx, [ecx + ebx]
mov ecx, dword [0x100c6c64]
mov dword [esp + 0x10], edx
movss xmm1, dword [esi + 0x16c]
xorps xmm0, xmm0
movss xmm2, dword [esi + 0xec]
mov eax, edx
addss xmm2, dword [esi + 0xcc]
movss xmm3, dword [esi + 0xc8]
comiss xmm1, xmm0
movss dword [esp + 0x20], xmm3
movss dword [esp + 0x24], xmm2
setae byte [esp + 0xf]
sub eax, ebx
cmp eax, 0x7d0
jle 0x10021e7c
cmp byte [esp + 0xf], 0
jne 0x10021e83
movss xmm4, dword [ecx + 0x1938]
lea edi, [esp + 0x38]
add esi, 0x1d4
movss dword [esp + 0x18], xmm4
xorps xmm5, xmm5
xorps xmm1, xmm1
movss dword [esp + 0x1c], xmm5
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movss xmm0, dword [esp + 0x44]
comiss xmm0, xmm2
jb 0x10021e2a
cmp byte [ecx + 0x2cb4], 0
movaps xmm1, xmm2
movss dword [esp + 0x30], xmm3
movss dword [esp + 0x34], xmm1
jne 0x10021ce2
movss xmm0, dword [esp + 0x3c]
subss xmm0, xmm2
divss xmm0, xmm4
cvttss2si edi, xmm0
test edi, edi
jle 0x10021ce2
xor esi, esi
cmp ebx, edx
jae 0x10021ccd
cmp esi, edi
jge 0x10021cbb
push 0xa
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov edx, dword [esp + 0x18]
test eax, eax
mov ebx, edx
cmovne ebx, eax
inc ebx
inc esi
pop ecx
pop ecx
cmp ebx, edx
jb 0x10021c9b
movss xmm2, dword [esp + 0x24]
movss xmm3, dword [esp + 0x20]
movss xmm4, dword [esp + 0x18]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm4
addss xmm1, xmm2
movss dword [esp + 0x34], xmm1
cmp ebx, edx
jae 0x10021e13
mov esi, dword [esp + 0x10]
movaps xmm0, xmm3
addss xmm0, dword [0x1004c774]
movaps xmm2, xmm1
movss dword [esp + 0x38], xmm3
addss xmm2, xmm4
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x44], xmm2
push 0xa
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 4
lea ecx, [esp + 0x3c]
xor edx, edx
mov edi, eax
call fcn.100181af
add esp, 4
test al, al
jne 0x10021dda
push ecx
mov dword [esp], 0xbf800000
lea ecx, [esp + 0x14]
push edx
push edi
mov edx, ebx
call fcn.1001c0d1
movss xmm0, dword [esp + 0x1c]
add esp, 0xc
maxss xmm0, dword [esp + 0x1c]
mov edx, edi
mov ecx, ebx
push 0
push dword [esp + 0x38]
movss dword [esp + 0x24], xmm0
push dword [esp + 0x38]
call fcn.1001b7f5
movss xmm0, dword [esp + 0x34]
add esp, 0xc
movss xmm1, dword [esp + 0x18]
test edi, edi
addss xmm0, xmm1
mov ebx, esi
cmovne ebx, edi
inc ebx
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x2c]
addss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x34]
addss xmm0, xmm1
movss dword [esp + 0x34], xmm0
cmp ebx, esi
jb 0x10021d24
xor edi, edi
jmp 0x10021df2
push 0xa
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strchr]
test eax, eax
mov ebx, esi
pop ecx
cmovne ebx, eax
inc ebx
inc edi
pop ecx
cmp ebx, esi
jb 0x10021dde
movss xmm1, dword [esp + 0x34]
movss xmm2, dword [esp + 0x24]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
addss xmm1, xmm0
movss xmm3, dword [esp + 0x20]
subss xmm1, xmm2
movss xmm5, dword [esp + 0x1c]
xorps xmm0, xmm0
addss xmm1, xmm0
addss xmm1, xmm2
movss dword [esp + 0x38], xmm3
addss xmm5, xmm3
movss dword [esp + 0x3c], xmm2
lea ecx, [esp + 0x30]
movss dword [esp + 0x44], xmm1
subss xmm1, xmm2
movss dword [esp + 0x40], xmm5
subss xmm5, xmm3
movss dword [esp + 0x34], xmm1
xorps xmm1, xmm1
movss dword [esp + 0x30], xmm5
call fcn.10017714
push 0
xor edx, edx
lea ecx, [esp + 0x3c]
call fcn.10017fbd
jmp 0x10021f60
cmp byte [esp + 0xf], 0
je 0x10021ed0
comiss xmm0, xmm1
ja 0x10021ed0
mov esi, dword [ecx + 0x1a20]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10021eaf
lea ecx, [esp + 0x30]
call fcn.10021750
movss xmm1, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
addss xmm1, dword [eax]
jmp 0x10021ec2
comiss xmm1, xmm0
jbe 0x10021ec2
movss xmm0, dword [esi + 0xc]
subss xmm0, dword [esi + 0x54]
addss xmm1, xmm0
subss xmm1, xmm3
maxss xmm1, dword [0x1004c610]
jmp 0x10021ed3
xorps xmm1, xmm1
push ecx
movss dword [esp], xmm1
lea ecx, [esp + 0x34]
push 0
push edx
mov edx, ebx
movss dword [esp + 0x28], xmm1
call fcn.1001c0d1
movss xmm1, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
movss xmm3, dword [esp + 0x2c]
add esp, 0xc
movss xmm2, dword [esp + 0x24]
addss xmm1, xmm3
movss xmm0, dword [esp + 0x34]
addss xmm0, xmm2
movss dword [esp + 0x38], xmm3
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x40], xmm1
xorps xmm1, xmm1
movss dword [esp + 0x44], xmm0
call fcn.10017714
push 0
xor edx, edx
lea ecx, [esp + 0x3c]
call fcn.10017fbd
pop ecx
test al, al
je 0x10021f61
push dword [esp + 0x3c]
movss xmm3, dword [esp + 0x20]
mov ecx, ebx
push dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
call fcn.1001b881
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret