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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x18], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x40c66e
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0xc], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0040c380
mov edi, dword [ebx + 4]
lea eax, [esi - 1]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x40c637
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
jb 0x40c50b
mov edx, dword [ebx]
mov dword [ebp - 0x10], edx
mov esi, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp - 4], 0x811c9dc5
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40c543
mov ecx, dword [ebp - 4]
mov eax, esi
mov ebx, dword [ebp - 0x10]
movzx esi, byte [edx + ebx]
inc edx
xor esi, ecx
imul ecx, esi, 0x1000193
cmp edx, eax
jb 0x40c526
mov eax, dword [ebp - 8]
lea ebx, [edi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + 0x18]
and esi, dword [ebp - 4]
mov edx, dword [edx + 0xc]
lea edx, [edx + esi*8]
mov esi, dword [edx]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], esi
cmp esi, ecx
jne 0x40c568
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x40c62d
mov esi, dword [edx + 4]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x40c577
mov edx, dword [esi + 8]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x40c581
mov ecx, dword [ebx]
push dword [esi + 0x18]
push edx
mov edx, dword [ebx + 0x10]
call fcn.00411800
add esp, 8
test al, al
je 0x40c5bd
mov ebx, dword [esi]
mov eax, dword [ebp - 8]
cmp ebx, edi
je 0x40c5b5
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], edi
jmp 0x40c62a
mov ecx, esi
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x10], esi
je 0x40c607
nop word [eax + eax]
mov esi, dword [esi + 4]
mov dword [ebp - 4], esi
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x40c5e2
mov edx, dword [esi + 8]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x40c5ec
mov ecx, dword [ebx]
push dword [esi + 0x18]
push edx
mov edx, dword [ebx + 0x10]
call fcn.00411800
add esp, 8
test al, al
jne 0x40c64f
cmp dword [ebp - 0x10], esi
jne 0x40c5d0
mov ecx, dword [ebp - 4]
mov esi, dword [edi + 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc]
mov edi, eax
cmp eax, ecx
jne 0x40c4f5
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0040c760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x40c62a
push str.invalid_hash_bucket_count
call fcn.0041990c
int3