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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x18
bsr ecx, eax
push ebx
push esi
mov esi, 1
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
jbe 0x1004090c
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
or eax, 1
bsr ecx, eax
mov eax, dword [0x100906e4]
push eax
mov dword [ebp - 0xc], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x100906ec
lea eax, [esi + esi]
push eax
call fcn.1002a7e0
lea eax, [esi - 1]
mov dword [0x100906fc], esi
mov esi, dword [0x100906e4]
mov dword [0x100906f8], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x10040aa6
mov ecx, dword [esi + 0x18]
lea ebx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 8], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ecx
cmp ecx, 0xf
jbe 0x10040975
mov ecx, dword [ebx]
mov dword [ebp - 0x10], ecx
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp - 8], edx
jbe 0x100409b9
mov ebx, dword [ebp - 0x10]
mov eax, ecx
mov edi, dword [ebp - 8]
nop dword [eax]
movzx ecx, byte [ebx + edx]
inc edx
xor ecx, eax
imul eax, ecx, 0x1000193
cmp edx, edi
jb 0x10040990
mov ecx, dword [esi + 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
and ecx, dword [0x100906f8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov ecx, dword [0x100906ec]
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
cmp edx, eax
jne 0x100409e4
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x10040a9c
mov ebx, dword [ecx + 4]
cmp dword [ebx + 0x1c], 0xf
lea edx, [ebx + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
jbe 0x100409f8
mov edx, dword [edx]
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
jbe 0x10040a04
mov ecx, dword [esi + 8]
push dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 8]
call fcn.10033de0
add esp, 8
test al, al
je 0x10040a3d
mov ebx, dword [ebx]
cmp ebx, esi
je 0x10040a35
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x10040a99
cmp dword [ebp - 0x10], ebx
je 0x10040a7c
mov ebx, dword [ebx + 4]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov edx, dword [eax + 0x10]
jbe 0x10040a53
mov eax, dword [eax]
cmp dword [ebp - 0x18], 0xf
lea ecx, [esi + 8]
mov dword [ebp - 0x14], ecx
jbe 0x10040a63
mov ecx, dword [ecx]
jmp 0x10040a66
mov ecx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 8]
push eax
call fcn.10033de0
add esp, 8
test al, al
jne 0x10040aaf
cmp dword [ebp - 0x10], ebx
jne 0x10040a42
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
mov esi, edi
cmp edi, eax
jne 0x10040954
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x10040a99