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

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, 0x1fffffff
push ebp
mov ebp, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [esp + 0x18], ebp
mov eax, esi
shl eax, cl
cmp edx, eax
ja 0x46b829
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
push ebx
mov ebx, dword [ebp + 4]
push ebx
mov dword [esp + 0x1c], ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebp + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0041c440
lea eax, [esi - 1]
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 4]
mov eax, dword [eax]
cmp eax, ebx
je 0x46b800
push edi
mov edi, eax
cmp dword [edi + 0x1c], 0x10
lea ebp, [edi + 8]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jb 0x46b6e5
mov ebp, dword [edi + 8]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edi + 0x18], ecx
jbe 0x46b703
movzx edx, byte [ecx + ebp]
inc ecx
xor edx, esi
imul esi, edx, 0x1000193
cmp ecx, dword [edi + 0x18]
jb 0x46b6f1
mov ecx, dword [esp + 0x20]
and esi, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + esi*8]
lea ecx, [ecx + esi*8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x1c]
jne 0x46b72b
mov dword [ecx], edi
mov dword [ecx + 4], edi
jmp 0x46b7f3
mov esi, dword [ecx + 4]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x46b73a
mov edx, dword [esi + 8]
cmp dword [edi + 0x1c], 0x10
lea ecx, [edi + 8]
jb 0x46b746
mov ecx, dword [edi + 8]
push dword [esi + 0x18]
mov ebp, dword [edi + 0x18]
push edx
push ebp
push ecx
call fcn.00445750
add esp, 0x10
test al, al
je 0x46b786
mov ebx, dword [esi]
mov eax, dword [esp + 0x28]
cmp ebx, edi
je 0x46b77d
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], edi
jmp 0x46b7f3
mov ecx, esi
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], esi
je 0x46b7cd
mov esi, dword [esi + 4]
mov dword [esp + 0x10], esi
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x46b7a5
mov edx, dword [esi + 8]
cmp dword [edi + 0x1c], 0x10
lea ecx, [edi + 8]
jb 0x46b7b1
mov ecx, dword [edi + 8]
push dword [esi + 0x18]
push edx
push ebp
push ecx
call fcn.00445750
add esp, 0x10
test al, al
jne 0x46b809
cmp dword [esp + 0x14], esi
jne 0x46b792
mov ecx, dword [esp + 0x10]
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx], edi
mov edi, eax
cmp eax, dword [esp + 0x1c]
jne 0x46b6d3
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x14
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x28]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x46b7f3
push str.invalid_hash_bucket_count
call fcn.004a9ece
int3