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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x10], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
jbe 0x545191
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [edx - 1]
or eax, 1
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 4], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0046e0e0
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov esi, dword [ebx + 4]
mov esi, dword [esi]
mov eax, esi
cmp esi, ecx
je 0x545314
nop dword [eax]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
mov eax, dword [eax]
mov ebx, dword [edx + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edx
jb 0x5451ec
mov edi, dword [edx]
mov dword [ebp - 8], edi
xor edi, edi
mov ebx, 0x811c9dc5
cmp dword [edx + 0x10], edi
jbe 0x545217
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
nop
movzx edx, byte [edi + ecx]
inc edi
xor edx, ebx
imul ebx, edx, 0x1000193
cmp edi, eax
jb 0x545200
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov edi, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
and edi, ebx
lea edx, [edx + edi*8]
mov dword [ebp - 8], edx
cmp dword [edx], ecx
jne 0x545236
mov dword [edx], esi
mov dword [edx + 4], esi
jmp 0x54530a
mov edi, dword [edx + 4]
lea ecx, [edi + 0x20]
lea eax, [ecx - 0x18]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [esi + 8]
lea ebx, [eax + 0x18]
neg ebx
mov edx, dword [ecx + 0x10]
sbb ebx, ebx
and ebx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x54525c
mov ecx, dword [ecx]
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x545266
mov eax, dword [ebx]
push edx
push ecx
push dword [ebx + 0x10]
push eax
call fcn.00437f90
add esp, 0x10
test al, al
je 0x5452a1
mov ebx, dword [edi]
mov eax, dword [ebp + 8]
cmp ebx, esi
je 0x545299
mov edi, dword [esi + 4]
mov dword [edi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], esi
mov dword [ebx + 4], edx
mov dword [eax + 4], edi
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], esi
jmp 0x545307
mov eax, dword [ebp - 8]
cmp dword [eax], edi
je 0x5452e7
mov eax, dword [edi + 4]
mov edi, eax
add eax, 0x20
lea ecx, [eax - 0x18]
neg eax
sbb eax, eax
and eax, ecx
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x5452c4
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x5452ce
mov ecx, dword [ebx]
push edx
push eax
push dword [ebx + 0x10]
push ecx
call fcn.00437f90
add esp, 0x10
test al, al
jne 0x54531d
mov eax, dword [ebp - 8]
cmp dword [eax], edi
jne 0x5452a8
mov ebx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov edx, dword [eax + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], esi
mov dword [edi + 4], edx
mov dword [eax + 4], ebx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
mov esi, eax
cmp eax, ecx
jne 0x5451d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [edi]
mov edi, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], esi
mov dword [ebx + 4], edx
mov dword [eax + 4], edi
mov dword [esi + 4], ecx
jmp 0x545307