Function at 0x10116660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10dc
call fcn.1014e020
mov edi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [edi + 0x78]
mov dword [ebp - 0x10bc], eax
test eax, eax
je 0x10116c48
mov eax, dword [edi + 4]
cmp eax, 3
je 0x1011669f
test eax, eax
jne 0x10116c48
mov esi, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov eax, esi
or eax, ecx
je 0x101166bf
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10c8], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10c4], eax
jmp 0x101166df
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x10c8], eax
mov esi, eax
mov dword [ebp - 0x10c4], ecx
imul eax, dword [0x101dfb2c], 0xf4240
mov dword [ebp - 0x10e8], esi
add eax, esi
mov dword [ebp - 0x10e4], ecx
adc ecx, 0
mov dword [ebp - 0x10e0], eax
mov dword [edi + 0x58], eax
mov dword [ebp - 0x10dc], ecx
mov dword [edi + 0x5c], ecx
movzx eax, word [edi + 0x4a]
mov word [ebp - 0x10be], ax
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x10d8], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x10d4], eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x10d0], eax
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x10cc], eax
mov esi, dword [edi + 0x60]
lea ebx, [ebp - 0x10b0]
mov word [ebx + 0x20], si
movzx eax, word [edi + 0x64]
mov word [ebx + 0x22], ax
movzx eax, word [edi + 0x68]
mov word [ebx + 0x24], ax
movzx eax, word [edi + 0x6c]
mov word [ebx + 0x26], ax
mov eax, dword [edi + 0x70]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x74]
mov dword [ebx + 0x28], eax
movzx eax, word [edi + 0x9a]
mov word [ebx + 0x30], ax
movups xmm0, xmmword [edi + 0x9d]
movups xmm1, xmmword [edi + 0xad]
movups xmmword [ebx + 0x32], xmm0
movups xmmword [ebx + 0x42], xmm1
movups xmm0, xmmword [edi + 0xbd]
movups xmmword [ebx + 0x52], xmm0
mov eax, dword [edi + 0xcc]
mov dword [ebx + 0x61], eax
mov eax, dword [edi + 0xd0]
mov dword [ebx + 0x68], eax
xor eax, eax
dec eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], eax
lea eax, [edi + 0x79]
push dword [ebp - 0x10bc]
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebx + 0x94], 0
mov ecx, edi
add esi, 0xfffffffc
cmp esi, 2
ja 0x101167e6
mov eax, dword [ecx + 0x2c]
movzx eax, word [eax]
mov word [ebp - 0x101c], ax
mov esi, dword [ecx + 0xf4]
xor ebx, ebx
test esi, esi
je 0x10116952
mov edi, dword [ecx + 0xf0]
test edi, edi
je 0x10116952
lea eax, [esi - 1]
cmp eax, 0x400
jb 0x10116824
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
jmp 0x1011694f
lea eax, [ecx + 0xec]
mov dword [ebp - 0x10b8], eax
movzx eax, word [ecx + 0xec]
mov ebx, ecx
lea ecx, [ebp - 0x1008]
mov word [ecx - 4], ax
mov word [ecx - 2], si
push esi
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xbfc]
push esi
push edi
push eax
push 4
call sym.nss3.dll_HASH_HashBuf
add esp, 0x10
push dword [ebp - 0x10b8]
call fcn.100e2160
add esp, 4
mov dword [ebp - 0x10b4], eax
mov al, byte [ebx + 0xec]
mov ecx, dword [ebx + 0xf4]
and ecx, 3
xor byte [ebp + ecx - 0x10b4], al
mov esi, dword [ebp - 0x10b4]
mov edi, dword [0x101dfb4c]
lea eax, [edi + 4]
push eax
call fcn.10112ba0
add esp, 4
xor ebx, ebx
test eax, eax
jne 0x1011694f
mov dword [ebp - 0x10b8], esi
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.1014deb0
xor ebx, ebx
mov esi, eax
mov dword [edi], eax
mov eax, dword [0x101dfb8c]
mov dword [edi + 0xc], eax
test esi, esi
je 0x1011694f
mov ecx, dword [0x101dfb24]
test ecx, ecx
je 0x10116935
mov eax, dword [ebp - 0x10b8]
xor edx, edx
div ecx
mov edi, edx
imul eax, edx, 0x430
add eax, dword [0x101dfb70]
mov ecx, 0x430
lea edx, [ebp - 0x100c]
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x1040], edi
lea eax, [ebp - 0xbfc]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [ebp - 0x103c], xmm0
movups xmmword [ebp - 0x102c], xmm1
mov eax, dword [0x101dfb4c]
mov dword [eax + 0xc], 0
add eax, 4
push eax
call fcn.10112b30
add esp, 4
mov ebx, esi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x10116a71
mov esi, dword [eax + 0x44]
lea ecx, [esi - 1]
cmp ecx, 0xfdb
ja 0x10116a60
mov edi, dword [eax + 0x40]
test edi, edi
je 0x10116a60
lea ecx, [ebp - 0x100c]
push dword [ebp - 0x10bc]
lea eax, [ebp - 0x10b0]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xfec]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, dword [0x101dfb48]
lea eax, [edi + 4]
push eax
call fcn.10112ba0
add esp, 4
xor ebx, ebx
test eax, eax
jne 0x10116a71
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.1014deb0
mov dword [edi], eax
mov ecx, dword [0x101dfb8c]
mov dword [edi + 0xc], ecx
test eax, eax
je 0x10116a71
mov ebx, dword [0x101dfb78]
mov edi, dword [ebx + 0x38]
mov edx, dword [0x101dfb58]
mov dword [ebp - 0x10b8], eax
mov ecx, edi
shl ecx, 0xc
lea eax, [edx + ecx]
add eax, 4
mov word [eax - 4], si
mov ecx, dword [ebp - 0x10bc]
mov word [eax - 2], cx
push 0xffc
lea ecx, [ebp - 0x100c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x1044], edi
inc edi
mov eax, edi
xor edx, edx
div dword [0x101dfb14]
mov dword [ebx + 0x38], edx
mov eax, dword [0x101dfb48]
mov dword [eax + 0xc], 0
add eax, 4
push eax
call fcn.10112b30
add esp, 4
mov ebx, dword [ebp - 0x10b8]
jmp 0x10116a71
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
mov eax, 0x20
mov ecx, dword [ebp - 0x10bc]
cmp ecx, eax
mov esi, 0x20
cmovb esi, ecx
sub eax, esi
xor ecx, ecx
cmp esi, 0x1f
cmova eax, ecx
lea edx, [esi + ebp]
add edx, 0xffffeff4
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edi, [ebp - 0x100c]
push esi
lea eax, [ebp - 0x10b0]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x10d4]
xor eax, dword [ebp - 0x10d8]
xor eax, dword [ebp - 0x10d0]
xor eax, dword [ebp - 0x10cc]
xor eax, dword [edi]
xor eax, dword [edi + 4]
xor eax, dword [edi + 8]
xor eax, dword [edi + 0xc]
xor eax, dword [edi + 0x10]
xor eax, dword [edi + 0x14]
xor eax, dword [edi + 0x18]
xor eax, dword [edi + 0x1c]
xor edx, edx
div dword [0x101dfb04]
mov eax, edx
mov dword [ebp - 0x10b8], edx
xor edx, edx
div dword [0x101dfb00]
mov edi, edx
mov esi, dword [0x101dfb40]
shl edi, 4
lea eax, [esi + edi]
add eax, 4
push eax
call fcn.10112ba0
add esp, 4
test eax, eax
jne 0x10116c48
test ebx, ebx
je 0x10116b36
mov dword [esi + edi], ebx
mov eax, dword [0x101dfb8c]
mov dword [esi + edi + 0xc], eax
jmp 0x10116b5e
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.1014deb0
mov dword [esi + edi], eax
mov ecx, dword [0x101dfb8c]
mov dword [esi + edi + 0xc], ecx
test eax, eax
je 0x10116c48
mov eax, dword [0x101dfb50]
mov edi, dword [ebp - 0x10b8]
mov esi, dword [eax + edi*4]
mov eax, edi
shl eax, 7
add eax, esi
imul eax, eax, 0xd0
mov ecx, dword [0x101dfb54]
add eax, ecx
add eax, 0x2c
mov ecx, dword [ebp - 0x10d8]
mov dword [eax - 0x2c], ecx
mov ecx, dword [ebp - 0x10d4]
mov dword [eax - 0x28], ecx
mov ecx, dword [ebp - 0x10d0]
mov dword [eax - 0x24], ecx
mov ecx, dword [ebp - 0x10cc]
mov dword [eax - 0x20], ecx
mov ecx, dword [ebp - 0x10e4]
mov dword [eax - 0x18], ecx
mov ecx, dword [ebp - 0x10e8]
mov dword [eax - 0x1c], ecx
mov ecx, dword [ebp - 0x10c4]
mov dword [eax - 0x10], ecx
mov ecx, dword [ebp - 0x10c8]
mov dword [eax - 0x14], ecx
mov ecx, dword [ebp - 0x10dc]
mov dword [eax - 8], ecx
mov ecx, dword [ebp - 0x10e0]
mov dword [eax - 0xc], ecx
movzx ecx, word [ebp - 0x10be]
mov word [eax - 4], cx
mov byte [eax - 2], 1
mov ecx, dword [ebp - 0x10bc]
mov byte [eax - 1], cl
push 0xa4
lea ecx, [ebp - 0x10b0]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
inc esi
and esi, 0x7f
mov eax, dword [0x101dfb50]
mov dword [eax + edi*4], esi
mov eax, edi
xor edx, edx
div dword [0x101dfb00]
mov eax, dword [0x101dfb40]
shl edx, 4
add eax, edx
add eax, 4
mov dword [eax + 8], 0
push eax
call fcn.10112b30
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 4], 2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
add esp, 0x10dc
pop esi
pop edi
pop ebx
pop ebp
ret