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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x1c], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x41577b
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0xc]
lea ecx, [ecx + 1]
sar eax, 2
shl esi, cl
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x20], ecx
lea edi, [esi + esi]
cmp edi, eax
jbe 0x4155d2
cmp edi, 0x3fffffff
ja 0x415785
push edi
call fcn.0040fbe0
lea ecx, [ebx + 0xc]
lea eax, [ebp - 8]
push eax
push edi
call fcn.0040fab0
mov ecx, dword [ebp - 8]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x415740
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
jb 0x415613
mov edx, dword [ebx]
mov dword [ebp - 0x14], edx
xor esi, esi
mov edx, 0x811c9dc5
cmp dword [ebx + 0x10], esi
jbe 0x415647
mov ebx, dword [ebp - 0x14]
mov ecx, edx
mov eax, dword [ebp - 0x18]
movzx edx, byte [esi + ebx]
inc esi
xor edx, ecx
imul ecx, edx, 0x1000193
cmp esi, eax
jb 0x415627
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi + 0x18]
and esi, edx
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
lea edx, [edx + esi*8]
mov dword [ebp - 0xc], edx
cmp dword [edx], ecx
jne 0x415668
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x41572f
mov esi, dword [edx + 4]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x415677
mov edx, dword [esi + 8]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x415681
mov ecx, dword [ebx]
push dword [esi + 0x18]
push edx
mov edx, dword [ebx + 0x10]
call fcn.00414f50
add esp, 8
test al, al
je 0x4156c6
mov ecx, dword [esi]
mov eax, dword [ebp - 0x10]
cmp ecx, edi
je 0x4156be
mov edx, dword [edi + 4]
mov dword [edx], eax
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov edx, dword [ecx + 4]
mov dword [edx], edi
mov esi, dword [ecx + 4]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], edi
jmp 0x41572c
mov eax, dword [ebp - 0xc]
cmp dword [eax], esi
je 0x415703
lea ecx, [ecx]
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x4156df
mov edx, dword [esi + 8]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x4156e9
mov ecx, dword [ebx]
push dword [esi + 0x18]
push edx
mov edx, dword [ebx + 0x10]
call fcn.00414f50
add esp, 8
test al, al
jne 0x415753
mov eax, dword [ebp - 0xc]
cmp dword [eax], esi
jne 0x4156d0
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi + 4], edx
mov dword [ecx], edi
mov ecx, dword [ebp - 8]
mov edi, eax
cmp eax, ecx
jne 0x4155f7
lea esp, [esp]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c89
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 4]
mov esi, dword [esi]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
jmp 0x41572c
push str.invalid_hash_bucket_count
call fcn.00423c49
call fcn.0040df00
int3