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

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x1c]
mov eax, 0x1fffffff
push ebp
push edi
mov edi, ecx
mov ebp, 1
bsr ecx, eax
mov eax, ebp
mov dword [esp + 0xc], edi
shl eax, cl
cmp edx, eax
ja 0x47050c
lea eax, [edx - 1]
mov edx, dword [edi + 0xc]
or eax, ebp
bsr ecx, eax
push ebx
push esi
mov esi, dword [edi + 4]
mov dword [esp + 0x20], esi
lea ecx, [ecx + 1]
shl ebp, cl
mov ecx, dword [edi + 0x10]
mov eax, ecx
sub eax, edx
sar eax, 2
lea ebx, [ebp*2]
cmp eax, ebx
jae 0x4702bb
cmp ebx, 0x3fffffff
ja 0x47051b
shl ebx, 2
cmp ebx, 0x1000
jb 0x470248
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x47051b
push eax
call fcn.005b2e07
add esp, 4
test eax, eax
je 0x470516
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x47025b
test ebx, ebx
je 0x470259
push ebx
call fcn.005b2e07
add esp, 4
mov edi, eax
jmp 0x47025b
xor edi, edi
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0xc]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x47029d
shl ecx, 2
cmp ecx, 0x1000
jb 0x47028f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470516
mov eax, edx
push ecx
push eax
call fcn.005b26d8
mov edx, dword [esp + 0x1c]
add esp, 8
lea eax, [ebx + edi]
mov dword [edx + 0xc], edi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
cmp edi, eax
je 0x4702cc
nop dword [eax]
mov dword [edi], esi
add edi, 4
cmp edi, eax
jne 0x4702b0
jmp 0x4702cc
lea eax, [esp + 0x20]
push eax
push ecx
push edx
call fcn.0043b9b0
add esp, 0xc
mov edx, edi
lea eax, [ebp - 1]
mov dword [edx + 0x1c], ebp
mov dword [edx + 0x18], eax
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x4704e6
mov ebx, dword [ecx + 0x18]
lea ebp, [ecx + 8]
mov edx, dword [edx]
mov dword [esp + 0x2c], ebx
mov ebx, dword [ecx + 0x1c]
mov dword [esp + 0x24], ebx
cmp ebx, 0xf
jbe 0x4702ff
mov ebp, dword [ecx + 8]
xor edi, edi
mov ebx, 0x811c9dc5
cmp dword [esp + 0x2c], edi
jbe 0x470325
mov esi, dword [esp + 0x2c]
movzx eax, byte [edi + ebp]
inc edi
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edi, esi
jb 0x470310
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and edi, ebx
lea eax, [eax + edi*8]
mov dword [esp + 0x18], eax
cmp dword [eax], esi
jne 0x470346
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4704dc
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea ebp, [eax + 8]
mov edi, dword [ebp + 0x10]
jbe 0x470358
mov ebp, dword [ebp]
cmp dword [esp + 0x24], 0xf
lea ebx, [ecx + 8]
mov dword [esp + 0x1c], ebx
jbe 0x47036d
mov ebx, dword [ecx + 8]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x2c], edi
jne 0x470414
mov edi, dword [esp + 0x2c]
sub edi, 4
mov dword [esp + 0x10], edi
jb 0x4703a2
mov edi, dword [ebx]
cmp edi, dword [ebp]
mov edi, dword [esp + 0x10]
jne 0x4703a7
add ebx, 4
add ebp, 4
sub edi, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
jae 0x470384
cmp edi, 0xfffffffc
je 0x4703e4
mov bl, byte [ebx]
cmp bl, byte [ebp]
jne 0x4703dd
cmp edi, 0xfffffffd
je 0x4703e4
mov edi, dword [esp + 0x1c]
mov bl, byte [edi + 1]
cmp bl, byte [ebp + 1]
jne 0x4703dd
cmp dword [esp + 0x10], 0xfffffffe
je 0x4703e4
mov bl, byte [edi + 2]
cmp bl, byte [ebp + 2]
jne 0x4703dd
cmp dword [esp + 0x10], 0xffffffff
je 0x4703e4
mov bl, byte [edi + 3]
cmp bl, byte [ebp + 3]
je 0x4703e4
sbb edi, edi
or edi, 1
jmp 0x4703e6
xor edi, edi
test edi, edi
jne 0x470414
mov ebp, dword [eax]
cmp ebp, ecx
je 0x470408
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ecx
mov dword [ebp + 4], edi
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 4], ecx
jmp 0x4704dc
mov edi, dword [esp + 0x18]
cmp dword [edi], eax
je 0x4704bd
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea edi, [eax + 8]
mov ebx, dword [edi + 0x10]
jbe 0x470431
mov edi, dword [edi]
cmp dword [esp + 0x24], 0xf
lea ebp, [ecx + 8]
jbe 0x47043e
mov ebp, dword [ecx + 8]
cmp dword [esp + 0x2c], ebx
jne 0x4704b1
mov ebx, dword [esp + 0x2c]
sub ebx, 4
mov dword [esp + 0x10], ebx
jb 0x47046b
mov ebx, dword [ebp]
cmp ebx, dword [edi]
jne 0x470470
mov ebx, dword [esp + 0x10]
add ebp, 4
add edi, 4
sub ebx, 4
mov dword [esp + 0x10], ebx
jae 0x470451
cmp ebx, 0xfffffffc
je 0x4704ab
mov bl, byte [ebp]
cmp bl, byte [edi]
jne 0x4704a4
cmp dword [esp + 0x10], 0xfffffffd
je 0x4704ab
mov bl, byte [ebp + 1]
cmp bl, byte [edi + 1]
jne 0x4704a4
cmp dword [esp + 0x10], 0xfffffffe
je 0x4704ab
mov bl, byte [ebp + 2]
cmp bl, byte [edi + 2]
jne 0x4704a4
cmp dword [esp + 0x10], 0xffffffff
je 0x4704ab
mov bl, byte [ebp + 3]
cmp bl, byte [edi + 3]
je 0x4704ab
sbb edi, edi
or edi, 1
jmp 0x4704ad
xor edi, edi
test edi, edi
je 0x4704f0
mov ebx, dword [esp + 0x18]
cmp dword [ebx], eax
jne 0x470420
mov ebp, dword [ecx + 4]
mov dword [ebp], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x18]
mov dword [edx + 4], ebp
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x4702e4
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x18
ret 4
mov ebx, dword [ecx + 4]
mov ebp, dword [eax]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ecx
mov dword [ebp + 4], edi
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x4704dc
push str.invalid_hash_bucket_count
call fcn.004f573e
call fcn.005c1009
call fcn.0042ad30
int3