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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10e0
call fcn.10193290
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [ebx + 0x78]
test eax, eax
mov dword [ebp - 0x10bc], eax
je 0x1017b155
mov eax, dword [ebx + 4]
cmp eax, 3
je 0x1017ab8f
test eax, eax
jne 0x1017b155
mov edx, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov eax, edx
or eax, ecx
je 0x1017abaf
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x10cc], eax
mov dword [ebp - 0x10c8], esi
jmp 0x1017abcf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x10cc], eax
mov dword [ebp - 0x10c8], ecx
imul eax, dword [0x101d666c], 0xf4240
mov dword [ebp - 0x10e8], ecx
lea edi, [ebp - 0x107e]
mov dword [ebp - 0x10ec], edx
add eax, edx
adc ecx, 0
mov dword [ebx + 0x58], eax
mov dword [ebp - 0x10e4], eax
mov dword [ebx + 0x5c], ecx
mov dword [ebp - 0x10e0], ecx
movzx eax, word [ebx + 0x4a]
mov esi, dword [ebx + 0x60]
mov word [ebp - 0x10c2], ax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x10dc], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x10d8], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x10d4], eax
mov eax, dword [ebx + 0x44]
mov word [edi - 0x12], si
mov dword [ebp - 0x10d0], eax
movzx eax, word [ebx + 0x64]
mov word [edi - 0x10], ax
movzx eax, word [ebx + 0x68]
mov word [edi - 0xe], ax
movzx eax, word [ebx + 0x6c]
mov word [edi - 0xc], ax
mov eax, dword [ebx + 0x70]
mov dword [edi - 6], eax
mov eax, dword [ebx + 0x74]
mov dword [edi - 0xa], eax
movzx eax, word [ebx + 0x9a]
mov word [edi - 2], ax
lea eax, [ebx + 0x9d]
push 0x33
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0xd0]
lea ecx, [ebp - 0x10b0]
mov dword [edi + 0x36], eax
xor eax, eax
dec eax
mov dword [edi + 0x3a], eax
mov dword [edi + 0x3e], eax
lea eax, [ebx + 0x79]
push dword [ebp - 0x10bc]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add esi, 0xfffffffc
mov word [edi + 0x62], 0
cmp esi, 2
ja 0x1017acbf
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax]
mov word [ebp - 0x101c], ax
mov esi, dword [ebx + 0xf4]
xor ecx, ecx
test esi, esi
je 0x1017ae48
mov edi, dword [ebx + 0xf0]
test edi, edi
je 0x1017ae48
lea eax, [esi - 1]
cmp eax, 0x400
jb 0x1017acfd
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ecx, ecx
jmp 0x1017ae48
lea eax, [ebx + 0xec]
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x10b8], eax
movzx eax, word [ebx + 0xec]
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.10145660
add esp, 4
mov dword [ebp - 0x10b4], eax
mov edi, dword [0x101d668c]
mov ecx, dword [ebx + 0xf4]
mov al, byte [ebx + 0xec]
and ecx, 3
xor byte [ebp + ecx - 0x10b4], al
lea eax, [edi + 4]
mov esi, dword [ebp - 0x10b4]
push eax
call fcn.101771c0
add esp, 4
xor ecx, ecx
test eax, eax
jne 0x1017ae48
mov dword [ebp - 0x10b8], esi
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.10193120
mov dword [edi], eax
mov esi, eax
xor ecx, ecx
mov eax, dword [0x101d66cc]
test esi, esi
mov dword [edi + 0xc], eax
je 0x1017ae48
mov ecx, dword [0x101d6664]
test ecx, ecx
je 0x1017ae2e
mov eax, dword [ebp - 0x10b8]
xor edx, edx
div ecx
mov ecx, 0x430
imul eax, edx, 0x430
mov edi, edx
lea edx, [ebp - 0x100c]
add eax, dword [0x101d66b0]
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xbfc]
mov dword [ebp - 0x1040], edi
movsd xmm1, qword [eax + 8]
movsd xmm0, qword [eax]
movsd xmm2, qword [eax + 0x10]
movsd qword [ebp - 0x1034], xmm1
movsd xmm1, qword [eax + 0x18]
movsd qword [ebp - 0x103c], xmm0
movsd qword [ebp - 0x102c], xmm2
movsd qword [ebp - 0x1024], xmm1
mov eax, dword [0x101d668c]
mov dword [eax + 0xc], 0
add eax, 4
push eax
call fcn.10177150
add esp, 4
mov ecx, esi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10b8], ecx
test eax, eax
je 0x1017af81
mov esi, dword [eax + 0x44]
lea ecx, [esi - 1]
cmp ecx, 0xfdb
ja 0x1017af68
mov edi, dword [eax + 0x40]
test edi, edi
je 0x1017af68
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 [0x101d6688]
lea eax, [edi + 4]
push eax
call fcn.101771c0
add esp, 4
test eax, eax
mov dword [ebp - 0x10b8], 0
jne 0x1017af81
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.10193120
mov dword [edi], eax
test eax, eax
mov ecx, dword [0x101d66cc]
mov dword [edi + 0xc], ecx
je 0x1017af81
mov ecx, dword [0x101d66b8]
mov edx, dword [0x101d6698]
mov dword [ebp - 0x10b8], eax
mov edi, dword [ecx + 0x38]
mov dword [ebp - 0x10c0], ecx
mov ecx, edi
shl ecx, 0xc
lea eax, [edx + ecx + 4]
mov ecx, dword [ebp - 0x10bc]
mov word [eax - 4], si
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
xor edx, edx
mov eax, edi
div dword [0x101d6654]
mov eax, dword [ebp - 0x10c0]
mov dword [eax + 0x38], edx
mov eax, dword [0x101d6688]
mov dword [eax + 0xc], 0
add eax, 4
push eax
call fcn.10177150
add esp, 4
jmp 0x1017af81
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [ebp - 0x10b8], 0
mov ecx, dword [ebp - 0x10bc]
mov eax, 0x20
mov esi, 0x20
cmp ecx, eax
cmovb esi, ecx
xor ecx, ecx
sub eax, esi
cmp esi, 0x1f
lea edx, [ebp + esi - 0x100c]
cmova eax, ecx
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 - 0x10d8]
xor edx, edx
xor eax, dword [ebp - 0x10dc]
xor eax, dword [ebp - 0x10d4]
xor eax, dword [ebp - 0x10d0]
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]
div dword [0x101d6644]
mov eax, edx
mov dword [ebp - 0x10c0], edx
xor edx, edx
div dword [0x101d6640]
mov esi, dword [0x101d6680]
mov edi, edx
shl edi, 4
lea eax, [esi + edi + 4]
push eax
call fcn.101771c0
add esp, 4
test eax, eax
jne 0x1017b155
mov eax, dword [ebp - 0x10b8]
test eax, eax
je 0x1017b048
mov dword [esi + edi], eax
mov eax, dword [0x101d66cc]
mov dword [esi + edi + 0xc], eax
jmp 0x1017b070
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.10193120
mov dword [esi + edi], eax
test eax, eax
mov ecx, dword [0x101d66cc]
mov dword [esi + edi + 0xc], ecx
je 0x1017b155
mov eax, dword [0x101d6690]
mov edi, dword [ebp - 0x10c0]
mov ecx, dword [0x101d6694]
mov esi, dword [eax + edi*4]
mov eax, edi
shl eax, 7
add eax, esi
imul eax, eax, 0xd0
lea eax, [ecx + eax + 0x2c]
mov ecx, dword [ebp - 0x10dc]
mov dword [eax - 0x2c], ecx
mov ecx, dword [ebp - 0x10d8]
mov dword [eax - 0x28], ecx
mov ecx, dword [ebp - 0x10d4]
mov dword [eax - 0x24], ecx
mov ecx, dword [ebp - 0x10d0]
mov dword [eax - 0x20], ecx
mov ecx, dword [ebp - 0x10e8]
mov dword [eax - 0x18], ecx
mov ecx, dword [ebp - 0x10ec]
mov dword [eax - 0x1c], ecx
mov ecx, dword [ebp - 0x10c8]
mov dword [eax - 0x10], ecx
mov ecx, dword [ebp - 0x10cc]
mov dword [eax - 0x14], ecx
mov ecx, dword [ebp - 0x10e0]
mov dword [eax - 8], ecx
mov ecx, dword [ebp - 0x10e4]
mov dword [eax - 0xc], ecx
movzx ecx, word [ebp - 0x10c2]
mov word [eax - 4], cx
mov ecx, dword [ebp - 0x10bc]
mov byte [eax - 2], 1
mov byte [eax - 1], cl
push 0xa4
lea ecx, [ebp - 0x10b0]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [0x101d6690]
inc esi
xor edx, edx
and esi, 0x7f
mov dword [eax + edi*4], esi
mov eax, edi
div dword [0x101d6640]
mov eax, dword [0x101d6680]
shl edx, 4
lea eax, [eax + edx + 4]
mov dword [eax + 8], 0
push eax
call fcn.10177150
add esp, 4
mov dword [ebx + 4], 2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
add esp, 0x10e0
pop esi
pop edi
pop ebx
pop ebp
ret