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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x183c
call fcn.1008f390
mov eax, dword [0x100a9040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x100ccf54]
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1830], eax
mov eax, dword [ecx]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [eax + 0xc]
push esi
call eax
mov ebx, eax
mov dword [ebp - 0x1808], ebx
test ebx, ebx
je 0x100226e0
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x260]
mov ecx, ebx
call edx
test al, al
je 0x100226e0
mov eax, dword [0x100cd184]
add eax, 0xffffffcc
xor eax, 0xc837520d
cmp dword [eax + ebx], 0
jne 0x100226e0
mov eax, dword [0x100cd100]
cmp byte [eax + ebx], 0
jne 0x100226e0
mov edx, dword [0x100cd15c]
mov eax, dword [0x100a90a0]
add edx, 0xffffffd6
xor edx, 0xc8375203
mov ecx, dword [edx + ebx]
cmp ecx, dword [edx + eax]
jne 0x100221ef
mov ecx, dword [0x100cd024]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x100226e0
imul eax, esi, 0x468
lea edi, [eax + 0x100b859c]
mov dword [ebp - 0x1824], edi
test edi, edi
je 0x100226e0
cmp dword [edi + 0x18], 2
jb 0x100226e0
mov ecx, dword [0x100ccf50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1818], eax
test eax, eax
je 0x100226e0
mov ecx, dword [0x100d2270]
test cl, 1
jne 0x100222ae
or ecx, 1
mov dword [0x100d2270], ecx
mov eax, dword [0x100ccf4c]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x10022296
mov edi, dword [ebx + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop dword [eax + eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x10022260
xor edx, edx
test ecx, ecx
je 0x10022289
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10022270
cmp esi, 0x8c8dc452
je 0x100222a0
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x10022251
mov edi, dword [ebp - 0x1824]
xor ebx, ebx
mov dword [0x100d226c], ebx
jmp 0x100222b4
mov edi, dword [ebp - 0x1824]
mov dword [0x100d226c], ebx
jmp 0x100222b4
mov ebx, dword [0x100d226c]
test ebx, ebx
je 0x100222d1
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1820], eax
call dword [ebp - 0x1820]
fstp dword [0x100a9094]
mov esi, dword [edi + 0x18]
add esi, dword [edi + 0x14]
mov ebx, dword [edi + 8]
nop word [eax + eax]
mov edi, dword [edi + 0x14]
cmp esi, edi
je 0x100226e0
dec esi
test ebx, ebx
je 0x100222f4
mov ecx, dword [ebx]
jmp 0x100222f6
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 eax, dword [eax + ecx*8]
mov dword [ebp - 0x1820], eax
test eax, eax
je 0x1002240a
mov ecx, dword [0x100cd1ac]
mov eax, dword [0x100a90a0]
add ecx, 0xffffffc2
xor ecx, 0xc8375217
push 1
movd xmm0, dword [ecx + eax]
mov eax, dword [0x100ccfac]
mov ecx, dword [0x100ccfb8]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
mov eax, dword [ecx]
movss dword [ebp - 0x181c], xmm0
movss xmm0, dword [0x100a9164]
addss xmm0, dword [0x100a9160]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1828], eax
movss dword [ebp - 0x182c], xmm0
call dword [ebp - 0x1828]
mov ecx, dword [0x100ccff4]
fadd dword [ebp - 0x182c]
mov eax, dword [ecx]
fstp dword [ebp - 0x1828]
mov eax, dword [eax + 0x30]
call eax
mov eax, dword [ebp - 0x1820]
xorps xmm1, xmm1
fstp dword [ebp - 0x182c]
movss xmm0, dword [ebp - 0x182c]
minss xmm0, dword [ebp - 0x1828]
maxss xmm0, xmm1
movss xmm1, dword [ebp - 0x181c]
subss xmm1, dword [eax + 0x14]
subss xmm0, xmm1
call fcn.10021f40
movss xmm1, dword [0x1009f248]
comiss xmm1, xmm0
jbe 0x1002240a
cmp esi, edi
je 0x1002240a
lea edi, [esi - 1]
test ebx, ebx
je 0x100223e9
mov eax, dword [ebx]
jmp 0x100223eb
xor eax, eax
mov ecx, dword [eax + 8]
mov edx, edi
mov eax, dword [eax + 4]
dec ecx
shr edx, 1
and edi, 1
and ecx, edx
mov dword [ebp - 0x181c], edx
mov eax, dword [eax + ecx*4]
cmp dword [eax + edi*8], 0
jne 0x10022415
mov edi, dword [ebp - 0x1824]
jmp 0x100222e0
mov ecx, dword [ebp - 0x1808]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [ebp - 0x1820]
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.10017450
movss xmm1, dword [0x1009f2b8]
comiss xmm1, xmm0
ja 0x100226e0
test ebx, ebx
je 0x10022465
mov eax, dword [ebx]
jmp 0x10022467
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x181c]
mov ebx, dword [ebp - 0x1818]
push 0
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + edi*8]
mov eax, dword [ecx + 0x28]
movq xmm0, qword [ecx + 0x20]
mov dword [ebp - 0x1834], eax
mov eax, dword [ebx]
movq qword [ebp - 0x183c], xmm0
movss xmm0, dword [ecx + 0x14]
mov ecx, ebx
movss dword [ebp - 0x181c], xmm0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1818], eax
call dword [ebp - 0x1818]
mov eax, dword [ebx]
mov ecx, ebx
fstp dword [ebp - 0x1808]
push 1
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1818], eax
call dword [ebp - 0x1818]
fadd dword [ebp - 0x1808]
lea eax, [ebp - 0x1808]
mov ebx, dword [ebp - 0x1820]
lea ecx, [ebp - 0x1818]
movss xmm0, dword [0x100a9094]
xorps xmm3, xmm3
fstp dword [ebp - 0x1818]
movss xmm1, dword [ebp - 0x1818]
comiss xmm1, xmm3
mov dword [ebp - 0x1818], 0
movss xmm2, dword [ebp - 0x181c]
movss dword [ebp - 0x1808], xmm1
cmovae ecx, eax
mov dword [ebp - 0x181c], 0x3f800000
comiss xmm0, xmm1
mov eax, 0x100a9094
movss xmm1, dword [ebx + 0x14]
subss xmm2, xmm1
cmovae eax, ecx
lea ecx, [ebp - 0x1818]
movss xmm0, dword [eax]
addss xmm0, dword [0x100a9160]
mov eax, dword [0x100ccfac]
mov dword [ebp - 0x1818], 0
addss xmm1, xmm0
movq xmm0, qword [ebx + 0x20]
movq qword [ebp - 0x1814], xmm0
movss xmm0, dword [ebp - 0x183c]
addss xmm1, xmm2
subss xmm1, dword [eax + 0x10]
lea eax, [ebp - 0x1808]
divss xmm1, xmm2
movss xmm2, dword [ebp - 0x1814]
comiss xmm1, xmm3
movss xmm3, dword [0x1009f2b8]
movss dword [ebp - 0x1808], xmm1
cmovae ecx, eax
lea eax, [ebp - 0x181c]
comiss xmm3, xmm1
cmovae eax, ecx
movss xmm1, dword [eax]
mov eax, dword [ebx + 0x28]
subss xmm3, xmm1
mulss xmm2, xmm1
mov dword [ebp - 0x180c], eax
mulss xmm0, xmm3
addss xmm2, xmm0
movss xmm0, dword [ebp - 0x1838]
mulss xmm0, xmm3
movss dword [ebp - 0x1818], xmm2
movss xmm2, dword [ebp - 0x1810]
mulss xmm2, xmm1
addss xmm2, xmm0
movss dword [ebp - 0x1808], xmm2
movss xmm2, dword [ebp - 0x180c]
movss xmm0, dword [ebp - 0x1834]
lea eax, [ebp - 0x1804]
mov esi, dword [ebx + 0x3c4]
mulss xmm2, xmm1
push 0x1800
mulss xmm0, xmm3
push esi
push eax
addss xmm2, xmm0
movss dword [ebp - 0x181c], xmm2
call sub.VCRUNTIME140.dll_memcpy
movss xmm6, dword [ebx + 0x20]
lea eax, [ebp - 0x17e8]
movss xmm7, dword [ebx + 0x24]
add esp, 0xc
movss xmm3, dword [ebp - 0x1818]
add esi, 0x1c
movss xmm4, dword [ebp - 0x1808]
mov ecx, 0x80
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 [ebx + 0x28]
add esi, 0x30
addss xmm2, xmm3
addss xmm1, xmm4
addss xmm0, xmm5
movss dword [eax - 0x10], xmm2
movss dword [eax], xmm1
movss dword [eax + 0x10], xmm0
add eax, 0x30
sub ecx, 1
jne 0x10022671
push 0x1800
lea eax, [ebp - 0x1804]
push eax
push dword [ebp - 0x1830]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008df5c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008df5c
mov esp, ebp
pop ebp
ret 8