Function at 0x405c90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x1c]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push ebp
push esi
push edi
mov edi, 1
mov dword [esp + 0x20], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
jbe 0x405cc1
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, 1
mov dword [esp + 0x1c], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00405880
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 0x405e83
nop dword [eax + eax]
mov edi, dword [ecx + 0x1c]
lea ebp, [ecx + 8]
mov eax, dword [ecx + 0x18]
mov edx, dword [edx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
cmp edi, 8
jb 0x405d1b
mov ebp, dword [ecx + 8]
xor edi, edi
mov ebx, 0x811c9dc5
add eax, eax
mov dword [esp + 0x14], eax
je 0x405d45
mov esi, eax
nop dword [eax]
movzx eax, byte [edi + ebp]
inc edi
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edi, esi
jb 0x405d30
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
and ebx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + ebx*8]
mov dword [esp + 0x10], eax
cmp dword [eax], esi
jne 0x405d64
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x405e79
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea ebp, [eax + 8]
mov edi, dword [ebp + 0x10]
jb 0x405d76
mov ebp, dword [ebp]
cmp dword [esp + 0x18], 8
lea ebx, [ecx + 8]
jb 0x405d83
mov ebx, dword [ecx + 8]
cmp dword [esp + 0x2c], edi
jne 0x405deb
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x405dc1
sub ebx, ebp
mov dword [esp + 0x24], ebx
nop dword [eax + eax]
movzx ebx, word [ebx + ebp]
movzx edi, word [ebp]
cmp bx, di
jne 0x405deb
mov ebx, dword [esp + 0x14]
add ebp, 2
dec ebx
mov dword [esp + 0x14], ebx
test ebx, ebx
mov ebx, dword [esp + 0x24]
jne 0x405da0
mov ebp, dword [eax]
cmp ebp, ecx
je 0x405ddf
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 + 0x10]
mov dword [eax + 4], ecx
jmp 0x405e79
mov edi, dword [esp + 0x10]
cmp dword [edi], eax
je 0x405e5a
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
mov ebp, dword [edi + 0x10]
jb 0x405e04
mov edi, dword [edi]
cmp dword [esp + 0x18], 8
lea ebx, [ecx + 8]
jb 0x405e11
mov ebx, dword [ecx + 8]
cmp dword [esp + 0x2c], ebp
jne 0x405e52
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x405e8d
sub ebx, edi
mov dword [esp + 0x24], ebx
nop dword [eax]
movzx ebp, word [edi + ebx]
movzx ebx, word [edi]
cmp bp, bx
jne 0x405e52
mov ebx, dword [esp + 0x14]
add edi, 2
dec ebx
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x405e8d
mov ebx, dword [esp + 0x24]
jmp 0x405e30
mov ebx, dword [esp + 0x10]
cmp dword [ebx], eax
jne 0x405df3
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 + 0x10]
mov dword [edx + 4], ebp
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x405d00
pop edi
pop esi
pop ebp
pop ebx
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 0x405e79