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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1032679d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1040e140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov eax, dword [esi]
push 0xfff0b9d5
push dword [eax]
call fcn.102c0170
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
cmp byte [edi + 0x34], 0
je 0x1016e78b
mov edx, dword [esi]
lea ecx, [ebp - 0x20]
push 2
mov edx, dword [edx]
call fcn.1016e330
add esp, 4
cmp byte [ebp - 0x18], 0
je 0x1016e78b
mov eax, dword [edi + 0x2c]
lea esi, [edi + 0x28]
push dword [ebp - 0x1c]
sub eax, dword [esi]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x20]
sar eax, 3
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.10029750
mov dword [ebp - 4], 2
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 0xf
mov edx, 0x811c9dc5
cmova eax, dword [ebp - 0x38]
xor ecx, ecx
cmp dword [ebp - 0x28], ecx
jbe 0x1016e655
mov edi, eax
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x28]
jb 0x1016e640
mov edi, dword [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002ad30
mov edi, dword [eax + 4]
test edi, edi
je 0x1016e6fd
mov ecx, dword [ebp - 0x3c]
add ecx, 4
mov dword [ebp - 0x40], ecx
cmp edi, dword [ecx]
je 0x1016e706
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x50]
push 3
mov eax, dword [eax]
mov esi, dword [eax]
push esi
mov dword [ebp - 0x48], esi
call fcn.102bf750
push 0xfff0b9d8
push esi
call fcn.102c1570
mov esi, dword [ebp - 0x40]
add esp, 0x10
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x28]
lea ecx, [eax + esi*8]
call fcn.1013d730
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1016e6dd
mov eax, dword [ebp - 0x44]
cmp eax, 0xfffffffe
je 0x1016e6dd
push eax
push 0xfff0b9d8
push ecx
call fcn.102c1cc0
add esp, 0xc
mov dword [ebp - 0x4c], 0x1012f610
mov dword [ebp - 0x48], 0x1012f630
movq xmm0, qword [ebp - 0x4c]
movq qword [edi + 0x20], xmm0
mov dword [edi + 0x28], esi
jmp 0x1016e783
mov eax, dword [ebp - 0x3c]
add eax, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x50]
mov edi, dword [esi + 4]
mov dword [ebp - 0x18], 3
mov eax, dword [eax]
cmp edi, dword [esi + 8]
je 0x1016e747
mov esi, dword [eax]
push 3
push esi
mov dword [edi], esi
mov dword [edi + 4], 0xfffffffe
call fcn.102bf750
push 0xfff0b9d8
push esi
call fcn.102c1570
mov dword [edi + 4], eax
add esp, 0x10
mov eax, dword [ebp - 0x3c]
add dword [eax + 0x2c], 8
jmp 0x1016e757
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
mov ecx, esi
call fcn.10193e40
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0x1012f610
push ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], 0x1012f630
push dword [ecx]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.1017fd90
lea ecx, [ebp - 0x38]
call fcn.10027fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102e0890
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret