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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x18], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x4f5769
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.004299f0
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x4f5744
mov ecx, dword [esi + 0x18]
lea ebx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
cmp ecx, 0xf
jbe 0x4f5616
mov ecx, dword [ebx]
mov dword [ebp - 0xc], ecx
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp - 4], edx
jbe 0x4f5659
mov ebx, dword [ebp - 0xc]
mov eax, ecx
mov edi, dword [ebp - 4]
nop word [eax + eax]
movzx ecx, byte [ebx + edx]
inc edx
xor ecx, eax
imul eax, ecx, 0x1000193
cmp edx, edi
jb 0x4f5630
mov edi, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
and ecx, dword [edx + 0x18]
mov dword [ebp + 8], ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], edx
cmp edx, eax
jne 0x4f5681
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x4f573a
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 0x4f5695
mov edx, dword [edx]
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
jbe 0x4f56a1
mov ecx, dword [esi + 8]
push dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 4]
call fcn.004108e0
add esp, 8
test al, al
je 0x4f56da
mov ebx, dword [ebx]
cmp ebx, esi
je 0x4f56d2
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 - 0xc]
mov dword [eax + 4], esi
jmp 0x4f5737
cmp dword [ebp + 8], ebx
je 0x4f571a
nop
mov ebx, dword [ebx + 4]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov edx, dword [eax + 0x10]
jbe 0x4f56f1
mov eax, dword [eax]
cmp dword [ebp - 0x10], 0xf
lea ecx, [esi + 8]
mov dword [ebp - 0x14], ecx
jbe 0x4f5701
mov ecx, dword [ecx]
jmp 0x4f5704
mov ecx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 4]
push eax
call fcn.004108e0
add esp, 8
test al, al
jne 0x4f574d
cmp dword [ebp + 8], ebx
jne 0x4f56e0
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 - 0xc]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov esi, edi
cmp edi, eax
jne 0x4f55f5
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 0x4f5737
push str.invalid_hash_bucket_count
call fcn.005acb94
int3