Function at 0x10040840
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c08b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100b3380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], esi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
lea ebx, [edx + 4]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebx]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, eax
mov dword [ebp - 0x20], eax
and ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
mov edi, dword [eax + ecx*8 + 4]
cmp edi, ebx
jne 0x100408cd
mov edi, ebx
mov dword [ebp - 0x18], ebx
jmp 0x1004090d
mov ecx, dword [eax + ecx*8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [edi + 8]
je 0x100408ec
nop word [eax + eax]
cmp edi, ecx
je 0x10040908
mov edi, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x100408e0
mov dword [esi], edi
mov eax, esi
mov byte [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, edi
mov dword [ebp - 0x18], edi
cmp dword [edx + 8], 0x5d1745d
jne 0x10040921
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x28], 0
call fcn.10096718
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x1c]
lea esi, [ecx + 0xc]
mov dword [ebp - 0x28], ecx
push 0x18
mov eax, dword [eax]
mov dword [ecx + 8], eax
mov dword [ebp - 0x24], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10096718
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.1002b0c0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 3
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
inc eax
movss xmm3, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100a9130]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100a9130]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x10040a96
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.10098420
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jae 0x10040a50
cmp eax, 0x200
jae 0x10040a4e
shl eax, 3
cmp eax, ecx
jae 0x10040a50
mov eax, ecx
push eax
mov ecx, esi
call fcn.10040b90
mov edx, dword [esi + 0x18]
and edx, dword [ebp - 0x20]
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 4]
mov eax, dword [ecx + edx*8 + 4]
cmp eax, ebx
jne 0x10040a70
xor eax, eax
jmp 0x10040a8e
mov edx, dword [ecx + edx*8]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 8]
cmp ecx, dword [eax + 8]
je 0x10040a8c
nop
cmp eax, edx
je 0x10040ae3
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x10040a80
mov ebx, dword [eax]
mov dword [ebp - 0x10], eax
mov edi, ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 0x28]
inc dword [esi + 8]
mov dword [ebp - 0x10], ecx
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov dword [ecx], eax
mov dword [edi + 4], eax
mov ecx, dword [esi + 0x18]
and ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0xc]
mov edi, dword [edx + ecx*8]
cmp edi, dword [esi + 4]
jne 0x10040ae9
mov dword [edx + ecx*8], eax
mov dword [edx + ecx*8 + 4], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, eax
xor eax, eax
jmp 0x10040a8e
cmp edi, dword [ebp - 0x18]
jne 0x10040b10
mov dword [edx + ecx*8], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x10]
cmp dword [edx + ecx*8 + 4], esi
jne 0x10040b1d
mov dword [edx + ecx*8 + 4], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8