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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0x10]
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x24]
shr edx, 2
cmp eax, edx
push esi
push edi
ja 0x466a45
mov edx, dword [ebx + 0x14]
test edx, edx
lea esi, [ebx + 0x10]
jne 0x466711
xor ecx, ecx
jmp 0x466719
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 3
add ecx, 0xffffffff
cmp ecx, eax
ja 0x46675e
mov ecx, edx
test ecx, ecx
jne 0x46672a
xor eax, eax
jmp 0x466732
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
lea eax, [eax + eax - 3]
mov dword [ebx + 0x20], eax
mov edx, dword [ebx + 8]
lea ecx, [ebx + 4]
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebx + 0x20]
add eax, 2
mov ecx, esi
call fcn.00454150
jmp 0x46676c
mov ecx, dword [ebx + 0x20]
cmp ecx, eax
jae 0x46676c
lea ecx, [ecx + ecx + 1]
mov dword [ebx + 0x20], ecx
mov edx, dword [ebx + 0x20]
mov edi, dword [ebx + 0x24]
mov ecx, dword [esi + 4]
shr edx, 1
sub edi, edx
sub edi, 1
test ecx, ecx
mov dword [esp + 0x10], edi
je 0x466790
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x466795
call fcn.006151fe
add ebx, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*8 + 4]
mov dword [esp + 0x1c], ecx
jne 0x4667aa
call fcn.006151fe
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4667c8
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
lea ecx, [edi + 1]
cmp ecx, eax
jb 0x4667cd
call fcn.006151fe
mov edx, dword [esi + 4]
cmp dword [edx + edi*8 + 0xc], ebx
lea eax, [edi + 1]
je 0x466a39
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x4667ea
call fcn.006151fe
cmp ebx, dword [edi + 4]
jne 0x4667f4
call fcn.006151fe
cmp dword [ebx + 0x20], 0x10
jb 0x4667ff
mov ecx, dword [ebx + 0xc]
jmp 0x466802
lea ecx, [ebx + 0xc]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x466807
sub eax, edi
add eax, ecx
cmp ecx, eax
mov edx, 0x811c9dc5
je 0x466832
lea ecx, [ecx]
movsx edi, byte [ecx]
imul edx, edx, 0x1000193
add ecx, 1
xor edx, edi
cmp ecx, eax
jne 0x466820
push 0x1f31d
push edx
call fcn.00616f87
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
jns 0x466856
add edx, 0x7fffffff
mov ecx, dword [ebp + 8]
and edx, dword [ecx + 0x20]
mov edi, dword [esp + 0x10]
cmp edx, edi
mov eax, dword [esp + 0x20]
jne 0x466879
cmp ebx, dword [eax + 4]
jne 0x466872
call fcn.006151fe
mov ebx, dword [ebx]
jmp 0x4667b2
cmp ebx, dword [eax + 4]
lea edi, [ecx + 4]
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ecx
jne 0x466895
call fcn.006151fe
cmp dword [esp + 0x18], edi
mov edx, dword [ebx]
mov dword [esp + 0x1c], edx
je 0x4668a6
call fcn.006151fe
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x1c], eax
je 0x4669a2
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4668cb
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4668d0
call fcn.006151fe
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*8 + 4], ebx
jne 0x466909
test ecx, ecx
je 0x4668e9
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4668ee
call fcn.006151fe
test edi, edi
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edi*8], edx
mov dword [eax + edi*8 + 4], ecx
je 0x466909
sub edi, 1
jmp 0x4668b8
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
add eax, 4
cmp eax, eax
je 0x466923
mov edx, dword [ebp + 8]
xor ecx, ecx
add edx, 4
call fcn.00467c30
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov dword [edx], ecx
mov eax, dword [ecx + 4]
mov dword [eax], edi
mov edx, dword [edi + 4]
mov dword [edx], ebx
mov edx, dword [ecx + 4]
mov eax, dword [edi + 4]
mov dword [edi + 4], edx
mov edx, dword [ebx + 4]
mov dword [ecx + 4], edx
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
mov edi, dword [eax + 4]
cmp edi, eax
jne 0x46695d
call fcn.006151fe
mov ecx, dword [ebp + 8]
lea eax, [ecx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 4]
mov ebx, edi
mov edi, dword [ecx + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 4]
add edi, 1
test eax, eax
je 0x466989
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jb 0x46698e
call fcn.006151fe
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
add ecx, 4
mov dword [eax + edi*8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + edi*8 + 4], ecx
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x24]
cmp dword [esp + 0x10], edi
jae 0x466a0c
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
add eax, 4
test ecx, ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], eax
je 0x4669ce
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4669d3
call fcn.006151fe
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x3c]
cmp dword [ecx + edi*8 + 4], edx
jne 0x466a0c
test ecx, ecx
je 0x4669f0
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4669f5
call fcn.006151fe
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x20]
mov dword [eax + edi*8], ecx
mov dword [eax + edi*8 + 4], ebx
sub edi, 1
cmp dword [esp + 0x10], edi
jb 0x4669ae
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
add eax, 4
cmp dword [esp + 0x18], eax
je 0x466a20
call fcn.006151fe
mov ebx, dword [esp + 0x1c]
cmp ebx, edi
je 0x466a39
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], edx
jmp 0x4667b2
mov eax, dword [ebp + 8]
add dword [eax + 0x24], 1
mov ecx, dword [ebp + 0x10]
mov ebx, eax
cmp dword [ecx + 0x18], 0x10
jb 0x466a53
mov esi, dword [ecx + 4]
lea eax, [ecx + 4]
jmp 0x466a56
lea esi, [ecx + 4]
mov eax, esi
lea edx, [eax + 1]
jmp 0x466a60
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466a60
sub eax, edx
add eax, esi
cmp esi, eax
mov ecx, esi
mov edx, 0x811c9dc5
je 0x466a92
jmp 0x466a80
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
add ecx, 1
xor edx, esi
cmp ecx, eax
jne 0x466a80
push 0x1f31d
push edx
call fcn.00616f87
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
mov eax, edx
jns 0x466ab7
add eax, 0x7fffffff
mov ecx, dword [ebx + 0x20]
and eax, ecx
cmp dword [ebx + 0x24], eax
mov dword [esp + 0x10], eax
ja 0x466ad2
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x14]
test ecx, ecx
mov dword [esp + 0x18], eax
lea esi, [eax + 1]
je 0x466aec
mov eax, dword [ebx + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x466af1
call fcn.006151fe
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + esi*8 + 4]
lea edi, [ebx + 4]
test edi, edi
jne 0x466b04
call fcn.006151fe
mov dword [esp + 0x20], edi
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x466b1d
mov eax, dword [ebx + 0x18]
sub eax, ecx
sar eax, 3
cmp dword [esp + 0x10], eax
jb 0x466b22
call fcn.006151fe
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x10]
cmp dword [ecx + edx*8 + 4], esi
je 0x466c2c
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x466b40
call fcn.006151fe
mov esi, dword [esi + 4]
cmp esi, dword [edi + 4]
jne 0x466b57
call fcn.006151fe
cmp esi, dword [edi + 4]
jne 0x466b57
call fcn.006151fe
cmp dword [esi + 0x20], 0x10
jb 0x466b62
mov edx, dword [esi + 0xc]
jmp 0x466b65
lea edx, [esi + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x14]
mov ecx, edi
mov ecx, dword [esi + 0x1c]
cmp edi, ecx
jae 0x466b76
mov ecx, edi
cmp dword [eax + 0x18], 0x10
jb 0x466b83
add eax, 4
mov eax, dword [eax]
jmp 0x466b86
add eax, 4
push ecx
push edx
push eax
call fcn.00403fd0
add esp, 0xc
test eax, eax
jne 0x466ba6
cmp edi, dword [esi + 0x1c]
jb 0x466b08
cmp edi, dword [esi + 0x1c]
setne al
test eax, eax
jl 0x466b08
mov eax, dword [esp + 0x20]
cmp esi, dword [eax + 4]
jne 0x466bba
call fcn.006151fe
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x10], ecx
jb 0x466bd2
mov edx, dword [eax + 4]
add eax, 4
jmp 0x466bd7
add eax, 4
mov edx, eax
mov edi, dword [esi + 0x1c]
mov eax, edi
cmp eax, edi
jae 0x466be0
cmp edi, ecx
jae 0x466be6
mov ecx, edi
cmp dword [esi + 0x20], 0x10
jb 0x466bf1
mov eax, dword [esi + 0xc]
jmp 0x466bf4
lea eax, [esi + 0xc]
push ecx
push edx
push eax
call fcn.00403fd0
add esp, 0xc
test eax, eax
jne 0x466c16
mov eax, dword [esp + 0x10]
cmp edi, eax
jb 0x466c1c
xor ecx, ecx
cmp edi, eax
setne cl
mov eax, ecx
test eax, eax
jge 0x466cd5
mov edx, dword [esp + 0x20]
cmp esi, dword [edx + 4]
jne 0x466c2a
call fcn.006151fe
mov esi, dword [esi]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
push eax
push ecx
push esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
call fcn.00468430
mov ecx, 1
lea edx, [ebx + 4]
mov edi, eax
call fcn.00467c30
cmp dword [esp + 0x20], 0
mov dword [esi + 4], edi
mov edx, dword [edi + 4]
mov dword [edx], edi
jne 0x466c69
call fcn.006151fe
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
jne 0x466c7e
call fcn.006151fe
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x466c95
mov eax, dword [ebx + 0x18]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x466c9a
call fcn.006151fe
mov edx, dword [ebx + 0x14]
cmp dword [edx + edi*8 + 4], esi
jne 0x466cee
mov ecx, edx
test ecx, ecx
je 0x466cb5
mov eax, dword [ebx + 0x18]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x466cba
call fcn.006151fe
test edi, edi
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax + edi*8], ecx
mov dword [eax + edi*8 + 4], edx
je 0x466cee
sub edi, 1
jmp 0x466c82
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov byte [eax + 8], 0
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + 4], edx
mov byte [eax + 8], 1
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc