Function at 0x10012720
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
mov edx, 1
mov dword [ebp - 4], ebx
mov eax, edx
shl eax, cl
mov ecx, dword [ebp + 8]
push esi
push edi
cmp ecx, eax
ja 0x1001295e
lea eax, [ecx - 1]
mov edi, dword [ebx + 0xc]
or eax, edx
mov esi, dword [ebx + 4]
bsr ecx, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
lea ecx, [ecx + 1]
shl edx, cl
mov ecx, dword [ebx + 0x10]
mov eax, ecx
sub eax, edi
mov dword [ebp - 0xc], edx
sar eax, 2
add edx, edx
mov dword [ebp + 8], eax
cmp eax, edx
jae 0x10012832
cmp edx, 0x3fffffff
ja 0x1001296d
lea ebx, [edx*4]
cmp ebx, 0x1000
jb 0x100127c2
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x1001296d
push eax
call fcn.1002664b
add esp, 4
test eax, eax
je 0x10012968
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov eax, dword [ebp + 8]
jmp 0x100127d8
test ebx, ebx
je 0x100127d6
push ebx
call fcn.1002664b
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x100127d8
xor edi, edi
test eax, eax
je 0x10012811
lea ecx, [eax*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp ecx, 0x1000
jb 0x10012807
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012968
mov eax, edx
push ecx
push eax
call fcn.10026804
add esp, 8
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], edi
lea eax, [ebx + edi]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
cmp edi, eax
je 0x10012840
mov dword [edi], esi
add edi, 4
cmp edi, eax
jne 0x10012827
jmp 0x10012840
lea eax, [ebp - 8]
push eax
push ecx
push edi
call fcn.10012300
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x1c], ecx
lea eax, [ecx - 1]
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x10012930
nop dword [eax + eax]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x100128b1
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x1001291f
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x100128e8
mov eax, dword [eax]
cmp eax, ecx
je 0x100128e0
mov ebx, dword [ecx + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x1001291f
cmp ebx, eax
je 0x100128fc
nop dword [eax]
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x10012939
cmp ebx, eax
jne 0x100128f0
mov ebx, dword [ecx + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [ebp - 4]
mov ecx, edx
cmp edx, esi
jne 0x10012860
nop dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0x10]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x1001291f
push str.invalid_hash_bucket_count
call fcn.10027d57
call fcn.1002ebe0
call fcn.10002540
int3