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

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push ebp
push esi
mov esi, 1
mov dword [esp + 0x18], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
jbe 0x405b21
push str.invalid_hash_bucket_count
call dword [0x5a6430]
lea eax, [edx - 1]
or eax, 1
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x14], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.004056e0
mov ecx, dword [esp + 0x10]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x405c99
nop
cmp dword [edi + 0x1c], 8
lea ebx, [edi + 8]
mov eax, dword [eax]
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
jb 0x405b7c
mov edx, dword [ebx]
mov dword [esp + 0x14], edx
lea edx, [esi + esi]
mov ebp, 0x811c9dc5
xor esi, esi
mov dword [esp + 0x18], edx
test edx, edx
je 0x405bac
mov ecx, dword [esp + 0x14]
mov ebx, edx
movzx edx, byte [esi + ecx]
inc esi
xor edx, ebp
imul ebp, edx, 0x1000193
cmp esi, ebx
jb 0x405b94
mov ecx, dword [esp + 0x10]
lea ebx, [edi + 8]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
and esi, ebp
lea edx, [edx + esi*8]
mov dword [esp + 0x14], edx
cmp dword [edx], ecx
jne 0x405bcd
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x405c8f
mov esi, dword [edx + 4]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x18], ecx
jb 0x405be2
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x405bec
mov ecx, dword [ebx]
mov ebp, dword [ebx + 0x10]
cmp ebp, dword [esp + 0x18]
jne 0x405c2d
push ebp
call fcn.004067b0
add esp, 4
test eax, eax
mov eax, dword [esp + 0x24]
jne 0x405c2d
mov ebx, dword [esi]
cmp ebx, edi
je 0x405c24
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 + 0x14]
mov dword [ecx + 4], edi
jmp 0x405c8b
mov ecx, dword [esp + 0x14]
cmp dword [ecx], esi
je 0x405c6d
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov eax, dword [edx + 0x10]
jb 0x405c46
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x405c50
mov ecx, dword [ebx]
cmp ebp, eax
jne 0x405c61
push ebp
call fcn.004067b0
add esp, 4
test eax, eax
je 0x405ca3
mov eax, dword [esp + 0x14]
cmp dword [eax], esi
jne 0x405c35
mov eax, dword [esp + 0x24]
mov ebx, dword [edi + 4]
mov dword [ebx], eax
mov edx, dword [eax + 4]
mov dword [edx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov dword [esi + 4], edx
mov dword [eax + 4], ebx
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx], edi
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp eax, ecx
jne 0x405b60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x24]
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 0x405c8b