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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [esp + 0x18], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [esp + 0x20]
cmp ecx, eax
ja 0x477a29
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push edi
push eax
mov dword [esp + 0x10], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00477300
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [esp + 0xc]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x477a04
push ebp
mov ecx, dword [esi + 0x1c]
lea ebp, [esi + 8]
mov edi, dword [edi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ecx
cmp ecx, 0xf
jbe 0x4778e7
mov ecx, dword [ebp]
mov dword [esp + 0x14], ecx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ebp + 0x10], edx
jbe 0x477920
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x14]
nop word [eax + eax]
movzx ecx, byte [edi + edx]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, eax
jb 0x477900
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
cmp edx, eax
jne 0x477947
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x4779f9
mov ebx, dword [ecx + 4]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov edx, dword [eax + 0x10]
jbe 0x477958
mov eax, dword [eax]
cmp dword [ebp + 0x14], 0xf
mov ecx, ebp
jbe 0x477963
mov ecx, dword [ebp]
push edx
push eax
push dword [ebp + 0x10]
push ecx
call fcn.0046ad10
add esp, 0x10
test al, al
je 0x47799c
mov ebx, dword [ebx]
cmp ebx, esi
je 0x477993
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 [esp + 0x18]
mov dword [eax + 4], esi
jmp 0x4779f5
cmp dword [esp + 0x14], ebx
je 0x4779d7
mov ebx, dword [ebx + 4]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov edx, dword [eax + 0x10]
jbe 0x4779b3
mov eax, dword [eax]
cmp dword [esp + 0x1c], 0xf
mov ecx, ebp
jbe 0x4779bf
mov ecx, dword [ebp]
push edx
push eax
push dword [ebp + 0x10]
push ecx
call fcn.0046ad10
add esp, 0x10
test al, al
jne 0x477a0d
cmp dword [esp + 0x14], ebx
jne 0x4779a2
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 [esp + 0x18]
mov dword [eax], esi
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jne 0x4778c7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
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 0x4779f5
push str.invalid_hash_bucket_count
call fcn.0059bdd7
int3