Function at 0x10022840
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1038000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x2c], ebx
mov dword [ebp - 0x2c], ecx
jbe 0x10022872
mov eax, dword [ecx + 0x30]
mov esi, dword [eax + ebx*4]
cmp esi, 0xffffffff
jne 0x10022906
jmp 0x1002290e
mov eax, ebx
shr eax, 0x18
mov dword [ebp - 0x24], eax
mov edi, ebx
shr edi, 0x10
mov eax, ebx
shr eax, 8
mov esi, ebx
mov edx, 0xff
and esi, edx
and eax, edx
and edi, edx
mov dword [ebp - 0x20], esi
xor esi, 0x811c9dc5
imul esi, esi, 0x1000193
xor esi, eax
imul esi, esi, 0x1000193
xor esi, edi
imul esi, esi, 0x1000193
xor esi, dword [ebp - 0x24]
imul esi, esi, 0x1000193
and esi, dword [ecx + 0x4c]
mov edx, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x40]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ecx + esi*8 + 4]
mov dword [ebp - 0x24], edx
cmp ecx, edx
je 0x1002290e
mov edx, ebx
and edx, 0xff000000
shl edi, 0x10
or edi, edx
shl eax, 8
or eax, edi
add eax, dword [ebp - 0x20]
cmp eax, dword [ecx + 8]
je 0x100228fe
add esi, esi
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + esi*4]
cmp ecx, edx
je 0x1002290e
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jne 0x100228f2
cmp ecx, dword [ebp - 0x24]
je 0x1002290e
mov esi, dword [ecx + 0xc]
test esi, esi
jne 0x10022ab2
test ebx, ebx
je 0x1002294e
mov esi, dword [ebp + 8]
push 0xb8
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov edi, eax
mov ecx, eax
push ebx
push esi
call fcn.10075b50
mov dword [ebp - 0x24], edi
inc dword [edi + 4]
mov edi, dword [ebp - 0x2c]
cmp dword [edi + 0x2c], ebx
jbe 0x10022955
mov eax, dword [edi + 0x30]
cmp dword [eax + ebx*4], 0xffffffff
jne 0x100229fe
jmp 0x100229f5
xor esi, esi
jmp 0x10022ab2
mov eax, ebx
shr eax, 0x18
mov dword [ebp - 0x20], eax
mov edx, ebx
shr edx, 0x10
mov eax, ebx
shr eax, 8
mov esi, ebx
mov ecx, 0xff
and esi, ecx
and eax, ecx
and edx, ecx
mov dword [ebp - 0x28], esi
xor esi, 0x811c9dc5
imul esi, esi, 0x1000193
xor esi, eax
imul esi, esi, 0x1000193
xor esi, edx
imul esi, esi, 0x1000193
xor esi, dword [ebp - 0x20]
imul ecx, esi, 0x1000193
and ecx, dword [edi + 0x4c]
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x20], esi
mov esi, dword [edi + 0x40]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [esi + ecx*8 + 4]
cmp ecx, dword [ebp - 0x20]
je 0x100229f5
mov edi, ebx
and edi, 0xff000000
shl edx, 0x10
or edx, edi
shl eax, 8
or eax, edx
add eax, dword [ebp - 0x28]
cmp eax, dword [ecx + 8]
jne 0x100229d6
mov edi, dword [ebp - 0x2c]
jmp 0x100229f0
mov edx, dword [ebp - 0x34]
add edx, edx
mov esi, dword [ebp - 0x30]
mov edx, dword [esi + edx*4]
mov edi, dword [ebp - 0x2c]
cmp ecx, edx
je 0x100229f5
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jne 0x100229e4
cmp ecx, dword [ebp - 0x20]
jne 0x100229fe
lea ecx, [edi + 4]
push ebx
call fcn.1004af80
mov dword [ebp - 0x1c], ebx
cmp ebx, 0x3fff
ja 0x10022a96
mov eax, dword [edi + 0x2c]
cmp eax, ebx
ja 0x10022a8e
mov ecx, edi
mov edi, eax
add eax, eax
cmp edi, ebx
jbe 0x10022a16
mov esi, ecx
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x20], eax
lea eax, [edi*4]
xor ecx, ecx
dec ecx
cmp edi, 0x40000000
cmovb ecx, eax
push ecx
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [esi + 0x30], eax
mov esi, dword [esi + 0x2c]
lea edx, [eax + esi*4]
mov ecx, edi
sub ecx, esi
shl ecx, 2
push ecx
push 0xff
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
shl esi, 2
push esi
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 0x28]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x2c], edi
mov edi, ecx
test esi, esi
je 0x10022a8e
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
shl ebx, 2
add ebx, dword [edi + 0x30]
jmp 0x10022aad
add edi, 0x34
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x18]
mov ecx, edi
push eax
push esi
call fcn.1002d210
mov ebx, dword [esi]
add ebx, 0xc
mov esi, dword [ebp - 0x24]
mov dword [ebx], esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10212780
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 8