Function at 0x10021710
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1844
call fcn.10089f60
mov eax, dword [0x100a4008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x100c7d9c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1838], eax
push esi
mov eax, dword [ecx]
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
mov dword [ebp - 0x1820], esi
test esi, esi
je 0x10021cf1
mov ecx, dword [esi]
mov edx, dword [ecx + 0x260]
mov ecx, esi
call edx
test al, al
je 0x10021cf1
mov eax, dword [0x100c7fc4]
add eax, 0xffffffcc
xor eax, 0x5adf913d
cmp dword [eax + esi], 0
jne 0x10021cf1
mov eax, dword [0x100c7f44]
cmp byte [eax + esi], 0
jne 0x10021cf1
mov edx, dword [0x100c7f9c]
mov eax, dword [0x100a455c]
add edx, 0xffffffd6
xor edx, 0x5adf9133
mov ecx, dword [edx + esi]
cmp ecx, dword [edx + eax]
jne 0x100217be
mov ecx, dword [0x100c7e68]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x10021cf1
imul eax, edi, 0x454
lea edi, [eax + 0x100b38f0]
mov dword [ebp - 0x1830], edi
test edi, edi
je 0x10021cf1
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10021cf1
cmp eax, 2
jb 0x10021cf1
mov ecx, dword [0x100c7d98]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1808], eax
test eax, eax
je 0x10021cf1
mov ecx, dword [0x100cd080]
test cl, 1
jne 0x100218a0
or ecx, 1
mov dword [0x100cd080], ecx
mov eax, dword [0x100c7d94]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1818], eax
test eax, eax
je 0x10021882
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop
inc ecx
cmp byte [ecx + edi], 0
jne 0x10021840
xor edx, edx
test ecx, ecx
je 0x1002186f
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10021850
cmp esi, 0x8c8dc452
je 0x1002188c
mov eax, dword [ebp - 0x1818]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1818], eax
test eax, eax
jne 0x10021834
mov edi, dword [ebp - 0x1830]
xor ecx, ecx
mov dword [0x100cd07c], ecx
jmp 0x100218a6
mov ecx, dword [ebp - 0x1818]
mov edi, dword [ebp - 0x1830]
mov dword [0x100cd07c], ecx
jmp 0x100218a6
mov ecx, dword [0x100cd07c]
test ecx, ecx
je 0x100218c1
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x182c], eax
call dword [ebp - 0x182c]
fstp dword [0x100a4014]
mov esi, dword [edi + 0x18]
mov edx, dword [edi + 8]
add esi, dword [edi + 0x14]
mov dword [ebp - 0x1818], edx
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x181c], eax
cmp esi, eax
je 0x10021cf1
dec esi
test edx, edx
je 0x100218ea
mov ecx, dword [edx]
jmp 0x100218ec
xor ecx, ecx
mov eax, dword [ecx + 8]
mov edx, esi
dec eax
shr edx, 1
and edx, eax
mov eax, dword [ecx + 4]
mov ecx, esi
and ecx, 1
mov eax, dword [eax + edx*4]
mov edi, dword [eax + ecx*8]
mov dword [ebp - 0x182c], edi
test edi, edi
je 0x10021a8c
mov ecx, dword [0x100c7fec]
mov eax, dword [0x100a455c]
add ecx, 0xffffffc2
xor ecx, 0x5adf9147
push 1
movd xmm0, dword [ecx + eax]
mov eax, dword [0x100c7df4]
mov ecx, dword [0x100c7e00]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
mov eax, dword [ecx]
movss dword [ebp - 0x1834], xmm0
movss xmm0, dword [0x100a4620]
addss xmm0, dword [0x100a461c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1824], eax
movss dword [ebp - 0x1828], xmm0
call dword [ebp - 0x1824]
mov ecx, dword [0x100c7e38]
fadd dword [ebp - 0x1828]
mov eax, dword [ecx]
fstp dword [ebp - 0x1824]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1828], eax
call dword [ebp - 0x1828]
movss xmm1, dword [ebp - 0x1824]
fstp dword [ebp - 0x1828]
movss xmm0, dword [ebp - 0x1828]
comiss xmm1, xmm0
ja 0x100219b5
movss xmm0, xmm1
jmp 0x100219b9
movss xmm0, xmm0
xorps xmm1, xmm1
maxss xmm0, xmm1
movss xmm1, dword [ebp - 0x1834]
subss xmm1, dword [edi + 0x14]
subss xmm0, xmm1
call fcn.10021510
movss xmm1, dword [0x1009a0f4]
comiss xmm1, xmm0
jb 0x10021a8c
cmp byte [edi + 0x3c4], 0
je 0x10021a8c
mov edx, dword [ebp - 0x1818]
cmp esi, dword [ebp - 0x181c]
je 0x10021a92
lea edi, [esi - 1]
test edx, edx
je 0x10021a11
mov eax, dword [edx]
jmp 0x10021a13
xor eax, eax
mov ecx, edi
and edi, 1
shr ecx, 1
mov dword [ebp - 0x1824], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x1824]
mov eax, dword [eax + ecx*4]
cmp dword [eax + edi*8], 0
je 0x10021a92
mov ecx, dword [ebp - 0x1820]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [ebp - 0x182c]
movss xmm1, dword [ecx + 0x20]
movss xmm0, dword [ecx + 0x24]
subss xmm0, dword [eax + 4]
subss xmm1, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10017310
movss xmm3, dword [0x1009a158]
comiss xmm3, xmm0
ja 0x10021cf1
mov edx, dword [ebp - 0x1818]
test edx, edx
je 0x10021a9d
mov eax, dword [edx]
jmp 0x10021a9f
mov edx, dword [ebp - 0x1818]
mov edi, dword [ebp - 0x1830]
jmp 0x100218d0
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
mov esi, dword [ebp - 0x1824]
and ecx, esi
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edi*8]
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax + 0x28]
movq qword [ebp - 0x1844], xmm0
mov dword [ebp - 0x183c], eax
test edx, edx
je 0x10021ad2
mov eax, dword [edx]
jmp 0x10021ad4
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, esi
mov esi, dword [ebp - 0x1808]
push 0
mov eax, dword [eax + ecx*4]
mov ecx, esi
mov eax, dword [eax + edi*8]
movss xmm0, dword [eax + 0x14]
mov eax, dword [esi]
movss dword [ebp - 0x181c], xmm0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1808], eax
call dword [ebp - 0x1808]
mov eax, dword [esi]
mov ecx, esi
fstp dword [ebp - 0x1820]
push 1
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1808], eax
call dword [ebp - 0x1808]
fadd dword [ebp - 0x1820]
mov edi, dword [ebp - 0x182c]
lea ecx, [ebp - 0x1808]
mov eax, dword [0x100c7df4]
push 0x1800
movss xmm2, dword [ebp - 0x181c]
movss xmm1, dword [edi + 0x14]
fstp dword [ebp - 0x1808]
movss xmm0, dword [ebp - 0x1808]
subss xmm2, xmm1
addss xmm0, dword [0x100a461c]
mov dword [ebp - 0x181c], 0x3f800000
mov dword [ebp - 0x1808], 0
mov esi, dword [edi + 0x3c8]
push esi
addss xmm1, xmm0
xorps xmm0, xmm0
addss xmm1, xmm2
subss xmm1, dword [eax + 0x10]
lea eax, [ebp - 0x1820]
divss xmm1, xmm2
movss xmm2, dword [0x1009a158]
comiss xmm1, xmm0
movq xmm0, qword [edi + 0x20]
movss dword [ebp - 0x1820], xmm1
cmovae ecx, eax
movq qword [ebp - 0x1814], xmm0
movss xmm0, dword [ebp - 0x1814]
lea eax, [ebp - 0x181c]
comiss xmm2, xmm1
cmovae eax, ecx
movss xmm1, dword [eax]
mov eax, dword [edi + 0x28]
subss xmm2, xmm1
mulss xmm0, xmm1
mov dword [ebp - 0x180c], eax
lea eax, [ebp - 0x1804]
push eax
movaps xmm3, xmm2
mulss xmm3, dword [ebp - 0x1844]
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x1810]
mulss xmm0, xmm1
movss dword [ebp - 0x1820], xmm3
movaps xmm3, xmm2
mulss xmm3, dword [ebp - 0x1840]
mulss xmm2, dword [ebp - 0x183c]
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x180c]
mulss xmm0, xmm1
addss xmm2, xmm0
movss dword [ebp - 0x181c], xmm3
movss dword [ebp - 0x1808], xmm2
call sub.VCRUNTIME140.dll_memcpy
movss xmm6, dword [edi + 0x20]
lea eax, [ebp - 0x17e8]
movss xmm7, dword [edi + 0x24]
add esp, 0xc
add esi, 0x1c
movss xmm3, dword [ebp - 0x1808]
mov ecx, 0x80
movss xmm4, dword [ebp - 0x1820]
movss xmm5, dword [ebp - 0x181c]
movss xmm2, dword [esi - 0x10]
movss xmm1, dword [esi]
subss xmm2, xmm6
movss xmm0, dword [esi + 0x10]
subss xmm1, xmm7
subss xmm0, dword [edi + 0x28]
add esi, 0x30
addss xmm2, xmm4
addss xmm1, xmm5
addss xmm0, xmm3
movss dword [eax - 0x10], xmm2
movss dword [eax], xmm1
movss dword [eax + 0x10], xmm0
add eax, 0x30
sub ecx, 1
jne 0x10021c83
push 0x1800
lea eax, [ebp - 0x1804]
push eax
push dword [ebp - 0x1838]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10088c86
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.10088c86
mov esp, ebp
pop ebp
ret 8