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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x20
bsr ecx, eax
push esi
mov esi, 1
mov eax, esi
shl eax, cl
mov ecx, dword [ebx + 8]
push edi
cmp ecx, eax
ja 0x1012b19b
lea eax, [ecx - 1]
mov edi, dword [0x1038a7e4]
or eax, esi
mov dword [ebp - 0x18], edi
bsr ecx, eax
push edi
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x1038a7ec
lea eax, [esi + esi]
push eax
call fcn.100fa090
lea eax, [esi - 1]
mov dword [0x1038a7fc], esi
mov dword [0x1038a7f8], eax
mov eax, dword [0x1038a7e4]
mov eax, dword [eax]
cmp eax, edi
je 0x1012b190
mov edi, eax
mov dword [ebp - 0x14], edi
nop
mov edx, dword [edi + 0x18]
lea ecx, [edi + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], edx
cmp edx, 8
jb 0x1012b021
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0xc]
xor edx, edx
add ecx, ecx
mov esi, 0x811c9dc5
mov dword [ebp - 0x10], ecx
je 0x1012b04e
mov eax, dword [ebp - 8]
mov edi, ecx
movzx ecx, byte [edx + eax]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, edi
jb 0x1012b037
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
and esi, dword [0x1038a7f8]
mov ecx, dword [0x1038a7ec]
mov edx, dword [ebp - 0x18]
lea ecx, [ecx + esi*8]
mov dword [ebp - 8], ecx
cmp dword [ecx], edx
jne 0x1012b071
mov dword [ecx], edi
mov dword [ecx + 4], edi
jmp 0x1012b17e
mov esi, dword [ecx + 4]
cmp dword [esi + 0x1c], 8
lea ecx, [esi + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
jb 0x1012b08b
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x1c], 8
lea ecx, [edi + 8]
mov dword [ebp - 0x14], ecx
jb 0x1012b09c
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x1c]
jne 0x1012b0ef
mov ecx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x10]
call fcn.10058e70
add esp, 4
test eax, eax
mov eax, dword [ebp - 4]
jne 0x1012b0ec
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
cmp ecx, edi
je 0x1012b0e1
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], edi
jmp 0x1012b17e
lea ecx, [edi + 8]
mov edx, dword [ebp - 8]
cmp dword [edx], esi
je 0x1012b15b
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov eax, dword [edx + 0x10]
jb 0x1012b107
mov edx, dword [edx]
cmp dword [ebp - 0x20], 8
jb 0x1012b110
mov ecx, dword [edi + 8]
cmp dword [ebp - 0xc], eax
jne 0x1012b124
push dword [ebp - 0xc]
call fcn.10058e70
add esp, 4
test eax, eax
je 0x1012b130
mov eax, dword [ebp - 8]
cmp dword [eax], esi
je 0x1012b158
lea ecx, [edi + 8]
jmp 0x1012b0f6
mov ecx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov dword [esi], eax
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x1012b17e
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x20], ecx
mov dword [ecx], eax
mov edx, dword [eax + 4]
mov dword [edx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx], edi
mov edi, eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jne 0x1012b000
nop dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push str.invalid_hash_bucket_count
call fcn.1024e975
int3