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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4985cd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x1fffffff
mov esi, 1
bsr ecx, eax
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x406fb7
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [0x4dd36c]
push eax
mov dword [ebp - 0x14], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x4dd374
lea eax, [esi + esi]
push eax
call fcn.004068f0
lea eax, [esi - 1]
mov dword [0x4dd384], esi
mov dword [0x4dd380], eax
mov dword [ebp - 0x24], 0x4dd368
mov dword [ebp - 4], 0
mov edi, dword [0x4dd36c]
mov eax, dword [ebp - 0x14]
mov edi, dword [edi]
mov ecx, edi
cmp edi, eax
je 0x406f76
nop dword [eax]
cmp dword [edi + 0x1c], 8
lea ebx, [edi + 8]
mov ecx, dword [ecx]
mov esi, dword [ebx + 0x10]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x18], ebx
jb 0x406e49
mov edx, dword [ebx]
mov dword [ebp - 0x18], edx
add esi, esi
mov edx, 0x811c9dc5
mov dword [ebp - 0x1c], esi
xor esi, esi
cmp dword [ebp - 0x1c], esi
jbe 0x406e82
mov ebx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [esi + ebx]
inc esi
xor edx, eax
imul eax, edx, 0x1000193
cmp esi, ecx
jb 0x406e62
mov ecx, dword [ebp + 8]
lea ebx, [edi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
and edx, dword [0x4dd380]
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0x10]
mov edx, dword [0x4dd374]
lea edx, [edx + esi*8]
mov esi, dword [edx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], esi
cmp esi, eax
jne 0x406ead
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x406f6c
mov esi, dword [edx + 4]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
jb 0x406ec1
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x1c], ebx
jb 0x406ecf
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x406f10
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00405660
mov ecx, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x406f10
mov eax, dword [esi]
cmp eax, edi
je 0x406f08
mov ebx, dword [edi + 4]
mov dword [ebx], ecx
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
mov dword [edi + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
jmp 0x406f69
cmp dword [ebp - 0x18], esi
je 0x406f4c
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov eax, dword [edx + 0x10]
jb 0x406f26
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x406f30
mov ecx, dword [ebx]
cmp dword [ebx + 0x10], eax
jne 0x406f44
push dword [ebx + 0x10]
call fcn.00405660
add esp, 4
test eax, eax
je 0x406f98
cmp dword [ebp - 0x18], esi
jne 0x406f15
mov ecx, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov dword [ebx], ecx
mov edx, dword [ecx + 4]
mov dword [edx], esi
mov eax, dword [esi + 4]
mov dword [eax], edi
mov dword [esi + 4], edx
mov dword [ecx + 4], ebx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
mov eax, dword [ebp - 0x14]
mov edi, ecx
cmp ecx, eax
jne 0x406e30
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [edi + 4]
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [ebx], ecx
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
mov dword [edi + 4], edx
jmp 0x406f69
push str.invalid_hash_bucket_count
call fcn.00476575
int3