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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov eax, 0x1fffffff
mov esi, 1
push edi
mov edi, ecx
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x1c], edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x406011
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov ebx, dword [edi + 4]
or eax, 1
mov dword [ebp - 0x18], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.004054e0
mov edx, dword [edi + 4]
lea eax, [esi - 1]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], esi
mov edx, dword [edx]
cmp edx, ebx
je 0x4061e7
mov ecx, edx
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov eax, dword [ecx + 0x1c]
lea ebx, [ecx + 8]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp eax, 7
jbe 0x40606b
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
mov edi, 0x811c9dc5
add eax, eax
mov esi, 0
mov dword [ebp - 0x14], eax
je 0x4060a1
mov ecx, dword [ebp - 8]
mov edx, eax
movzx eax, byte [ecx + esi]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, edx
jb 0x406084
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and esi, edi
lea eax, [eax + esi*8]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 8], eax
cmp dword [eax], esi
jne 0x4060c3
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4061d9
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 7
lea edi, [eax + 8]
jbe 0x4060d2
mov edi, dword [eax + 8]
cmp dword [ebp - 4], 7
mov esi, ebx
jbe 0x4060dc
mov esi, dword [ebx]
mov ebx, dword [ebx + 0x10]
cmp ebx, dword [eax + 0x18]
jne 0x40612d
test ebx, ebx
je 0x406104
sub esi, edi
mov dword [ebp - 0xc], esi
nop dword [eax]
mov si, word [esi + edi]
cmp si, word [edi]
jne 0x40612d
mov esi, dword [ebp - 0xc]
add edi, 2
sub ebx, 1
jne 0x4060f0
mov ebx, dword [eax]
cmp ebx, ecx
je 0x406122
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ecx
mov dword [ebx + 4], esi
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov esi, dword [ebp - 8]
mov dword [esi + 4], ecx
jmp 0x4061d9
mov esi, dword [ebp - 8]
mov ebx, dword [esi]
mov dword [ebp - 0x20], ebx
cmp ebx, eax
je 0x4061bc
mov ebx, dword [ecx + 0x1c]
lea edi, [ecx + 8]
mov dword [ebp - 0xc], ebx
mov ebx, dword [edi + 0x10]
mov dword [ebp - 4], ebx
nop dword [eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 7
lea esi, [eax + 8]
jbe 0x40615f
mov esi, dword [eax + 8]
cmp dword [ebp - 0xc], 7
jbe 0x406168
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
mov ecx, dword [ebp - 0x10]
jne 0x406196
mov ebx, dword [ebp - 4]
test ebx, ebx
jbe 0x4061a0
sub edi, esi
mov dword [ebp - 0x14], edi
nop
mov di, word [edi + esi]
cmp di, word [esi]
jne 0x406196
add esi, 2
sub ebx, 1
je 0x4061a0
mov edi, dword [ebp - 0x14]
jmp 0x406180
cmp dword [ebp - 0x20], eax
je 0x4061bc
lea edi, [ecx + 8]
jmp 0x406150
mov edi, dword [ecx + 4]
mov ebx, dword [eax]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ecx
mov dword [ebx + 4], esi
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
jmp 0x4061d9
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov esi, dword [eax + 4]
mov dword [esi], ecx
mov dword [eax + 4], edi
mov eax, dword [ebp - 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], esi
mov dword [eax], ecx
mov ecx, edx
mov dword [ebp - 0x10], edx
cmp edx, dword [ebp - 0x18]
jne 0x406050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4