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

Disassembly:
sub esp, 0x24
mov edx, dword [esp + 0x28]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push edi
mov edi, 1
mov dword [esp + 0x24], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x46e66c
lea eax, [edx - 1]
or eax, edi
bsr ecx, eax
push esi
mov esi, dword [ebx + 4]
push esi
mov dword [esp + 0x18], esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00437690
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x46e647
push ebp
mov eax, dword [ecx + 0x1c]
lea ebx, [ecx + 8]
mov edx, dword [edx]
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], eax
cmp eax, 0xf
jbe 0x46e415
mov eax, dword [ebx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov ebx, 0x811c9dc5
test ebp, ebp
je 0x46e457
mov esi, dword [esp + 0x38]
nop dword [eax]
movzx eax, byte [edi + esi]
inc edi
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edi, ebp
jb 0x46e430
mov eax, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x18]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and edi, ebx
lea eax, [eax + edi*8]
mov dword [esp + 0x14], eax
cmp dword [eax], esi
jne 0x46e478
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x46e63c
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea ebx, [eax + 8]
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], edi
jbe 0x46e495
mov ebx, dword [ebx]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x10], 0xf
lea edi, [ecx + 8]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], ebp
jbe 0x46e4c6
mov esi, dword [esp + 0x24]
mov edi, dword [ecx + 8]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x38], edi
cmp ebp, dword [esp + 0x30]
jne 0x46e56f
sub ebp, 4
jb 0x46e4f2
mov edi, dword [edi]
cmp edi, dword [ebx]
jne 0x46e4f7
mov edi, dword [esp + 0x38]
add ebx, 4
add edi, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], edi
sub ebp, 4
jae 0x46e4d5
cmp ebp, 0xfffffffc
je 0x46e53f
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov bl, byte [ebx]
cmp bl, byte [edi]
jne 0x46e538
cmp ebp, 0xfffffffd
je 0x46e53f
mov ebx, dword [esp + 0x38]
mov bl, byte [ebx + 1]
cmp bl, byte [edi + 1]
jne 0x46e538
cmp ebp, 0xfffffffe
je 0x46e53f
mov ebx, dword [esp + 0x38]
mov bl, byte [ebx + 2]
cmp bl, byte [edi + 2]
jne 0x46e538
cmp ebp, 0xffffffff
je 0x46e53f
mov ebx, dword [esp + 0x38]
mov bl, byte [ebx + 3]
cmp bl, byte [edi + 3]
je 0x46e53f
sbb edi, edi
or edi, 1
jmp 0x46e541
xor edi, edi
test edi, edi
jne 0x46e56f
mov ebp, dword [eax]
cmp ebp, ecx
je 0x46e563
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 + 0x14]
mov dword [eax + 4], ecx
jmp 0x46e63c
mov edi, dword [esp + 0x14]
cmp dword [edi], eax
je 0x46e61d
nop dword [eax + eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0xf
lea edi, [eax + 8]
mov ebx, dword [edi + 0x10]
jbe 0x46e591
mov edi, dword [edi]
cmp dword [esp + 0x10], 0xf
lea ebp, [ecx + 8]
jbe 0x46e59e
mov ebp, dword [ecx + 8]
cmp dword [esp + 0x20], ebx
jne 0x46e611
mov ebx, dword [esp + 0x20]
sub ebx, 4
mov dword [esp + 0x38], ebx
jb 0x46e5cb
mov ebx, dword [ebp]
cmp ebx, dword [edi]
jne 0x46e5d0
mov ebx, dword [esp + 0x38]
add ebp, 4
add edi, 4
sub ebx, 4
mov dword [esp + 0x38], ebx
jae 0x46e5b1
cmp ebx, 0xfffffffc
je 0x46e60b
mov bl, byte [ebp]
cmp bl, byte [edi]
jne 0x46e604
cmp dword [esp + 0x38], 0xfffffffd
je 0x46e60b
mov bl, byte [ebp + 1]
cmp bl, byte [edi + 1]
jne 0x46e604
cmp dword [esp + 0x38], 0xfffffffe
je 0x46e60b
mov bl, byte [ebp + 2]
cmp bl, byte [edi + 2]
jne 0x46e604
cmp dword [esp + 0x38], 0xffffffff
je 0x46e60b
mov bl, byte [ebp + 3]
cmp bl, byte [edi + 3]
je 0x46e60b
sbb edi, edi
or edi, 1
jmp 0x46e60d
xor edi, edi
test edi, edi
je 0x46e650
mov ebx, dword [esp + 0x14]
cmp dword [ebx], eax
jne 0x46e580
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 + 0x14]
mov dword [edx + 4], ebp
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x46e3f3
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x24
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 0x46e63c
push str.invalid_hash_bucket_count
call fcn.004f573e
int3