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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
cmp eax, 0x10000001
jae 0x4201ad
mov ebx, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor esi, esi
inc esi
shl esi, cl
lea ecx, [ebx + 0xc]
mov edi, dword [ebx + 4]
lea eax, [esi + esi]
push edi
push eax
call fcn.00417ca0
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x28], edi
cmp eax, edi
je 0x4201a3
mov edi, eax
mov dword [ebp - 0x18], ebx
mov eax, edi
cmp dword [edi + 0x1c], 0x10
jb 0x420055
mov edi, dword [eax + 8]
jmp 0x420058
lea edi, [eax + 8]
mov dword [ebp - 0x10], eax
mov esi, dword [eax + 0x18]
mov eax, 0x811c9dc5
test esi, esi
je 0x42007a
xor ecx, ecx
movzx edx, byte [edi + ecx]
xor edx, eax
imul eax, edx, 0x1000193
inc ecx
cmp esi, ecx
jne 0x420069
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
and eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
lea ebx, [eax + eax]
mov dword [ebp - 0x24], ebx
lea ebx, [eax + eax]
inc ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [edx + eax*8]
cmp eax, dword [ebp - 0x28]
je 0x4200b9
mov ecx, dword [ebp - 0x20]
mov ebx, dword [edx + ecx*4]
cmp esi, dword [ebx + 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], eax
jne 0x4200e5
cmp dword [ebx + 0x1c], 0x10
jb 0x4200cd
mov eax, dword [ebx + 8]
jmp 0x4200d0
mov eax, dword [ebp - 0x24]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x20]
mov dword [edx + eax*4], ecx
mov edi, dword [ebp - 0x14]
jmp 0x420197
lea eax, [ebx + 8]
push esi
push eax
push edi
call fcn.0045dbeb
add esp, 0xc
test eax, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
je 0x42015e
cmp eax, ebx
je 0x420135
mov ebx, dword [ebx + 4]
cmp esi, dword [ebx + 0x18]
jne 0x4200e5
cmp dword [ebx + 0x1c], 0x10
jb 0x4200fc
mov eax, dword [ebx + 8]
jmp 0x4200ff
lea eax, [ebx + 8]
push esi
push eax
push edi
call fcn.0045dbeb
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x2c]
jne 0x4200e5
mov eax, dword [ebx]
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 4]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov esi, dword [eax + 4]
mov dword [esi], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], ecx
mov dword [edi + 4], esi
mov edi, ebx
jmp 0x420197
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 4]
mov edi, dword [ebp - 0x14]
mov dword [ebx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov edx, dword [eax + 4]
mov dword [edx], esi
mov dword [eax + 4], ecx
mov dword [edi + 4], ebx
mov dword [esi + 4], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax*4], esi
jmp 0x420197
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
mov edi, dword [ebp - 0x14]
je 0x420191
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov edx, dword [edi + 4]
mov dword [edx], eax
mov esi, dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov dword [esi], edi
mov edi, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [edi + 4], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov dword [edx + eax*4], ecx
mov ebx, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x28]
jne 0x420048
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.0045a336
int3