Function at 0x1000c445
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x100e1e97
call fcn.100c908c
mov eax, dword [ebp + 8]
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov byte [eax + 0x55], 0
lea edi, [esi + 0x14]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x1000c510
push ebx
push str.http:__
mov ecx, edi
call fcn.1000506b
cmp eax, 0xffffffff
jne 0x1000c510
push ebx
push 0x100f446c
mov ecx, edi
call fcn.1000506b
cmp eax, 0xffffffff
jne 0x1000c510
push ebx
push str.file:__
mov ecx, edi
call fcn.1000506b
cmp eax, 0xffffffff
jne 0x1000c510
lea ebx, [esi + 0x44]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 2
test eax, eax
jbe 0x1000c4d5
mov ecx, ebx
call fcn.10023ad4
mov eax, dword [eax]
mov ecx, dword [edi]
mov eax, dword [eax + 8]
push ecx
push eax
call fcn.100c9402
pop ecx
pop ecx
test eax, eax
je 0x1000c510
push 0x38
call fcn.100c839d
pop ecx
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
test eax, eax
je 0x1000c4f1
mov ecx, eax
call fcn.1000b79b
jmp 0x1000c4f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], eax
add eax, 8
push edi
mov ecx, eax
call fcn.1000688b
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.1002c868
mov edi, dword [ebp + 8]
cmp byte [edi + 0x65], 0
jne 0x1000c837
xor ebx, ebx
cmp dword [esi + 0x5c], ebx
je 0x1000c6fc
push ebx
push 0x101445f0
push 0x101445d0
push ebx
push dword [edi + 0x60]
call fcn.100c8799
add esp, 0x14
cmp eax, ebx
je 0x1000c837
lea ebx, [esi + 4]
lea ecx, [eax + 0x138c]
push ebx
mov dword [ebp - 0x18], ecx
call fcn.1000bf43
mov edi, eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x1000c64f
mov edi, str..default
push edi
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.10006fb9
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push eax
mov dword [ebp - 4], 1
call fcn.1000bf43
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 0x10], eax
call fcn.10003f60
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x1000c641
lea eax, [ebp - 0x28]
push eax
call fcn.10060f33
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 2
call fcn.10006f5b
push edi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.10006fb9
add esp, 0x1c
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.10003f60
call fcn.100b9dd5
and dword [ebp - 0x14], 0
and dword [ebp - 0x2c], 0
mov edx, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x18]
mov ecx, eax
call dword [edx]
test eax, eax
je 0x1000c632
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.10006a3d
call fcn.100b9af0
push dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10003f60
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.1000688b
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x1000c837
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000209a
push 0x101519f8
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 7
call fcn.1007170f
lea eax, [ebp - 0x4c]
push str.http:__www.mozilla.org_keymaster_gatekeeper_there.is.only.xul
push eax
mov byte [ebp - 4], 8
call fcn.100476db
pop ecx
pop ecx
test eax, eax
je 0x1000c6a7
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x1000c69c
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.10006a3d
jmp 0x1000c6b0
push edi
lea ecx, [ebp - 0x14]
call fcn.1000688b
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x4c]
mov byte [edi + 0x64], 1
movzx eax, byte [esi + 0x61]
push eax
lea eax, [esi + 0x44]
push eax
add esi, 0x2c
push esi
mov esi, dword [ebp - 0x14]
push 0
push 1
push esi
mov ecx, edi
call fcn.1009a79b
cmp dword [edi + 0x4c], 0xffffff92
jne 0x1000c6df
mov dword [edi + 0x4c], ebx
lea ecx, [esi - 0x10]
mov byte [edi + 0x64], 0
call fcn.10003f60
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.100022b8
jmp 0x1000c837
cmp byte [esi + 0x60], 0
je 0x1000c7d2
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x1000c7d2
mov eax, dword [eax + 8]
cmp dword [eax - 0xc], ebx
je 0x1000c7d2
lea eax, [ebp - 0x2c]
push eax
call fcn.10060f33
lea edi, [esi + 4]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 9
call fcn.10006f5b
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xb
call fcn.10003f60
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000c7be
push 0x100f4850
mov ecx, edi
call fcn.100048c7
test eax, eax
jge 0x1000c7be
mov eax, dword [esi + 0x28]
mov edi, dword [eax + 8]
mov ebx, dword [edi - 0xc]
call fcn.100b9e07
mov edx, dword [eax]
push ebx
push edi
push dword [ebp - 0x10]
mov ecx, eax
call dword [edx + 4]
lea eax, [ebp - 0x30]
push eax
call fcn.100c921c
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x1010d92c
call fcn.10009e15
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.1000548f
mov byte [ebp - 4], 0xb
call fcn.10062441
add esp, 0xc
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10003f60
mov edi, dword [ebp + 8]
xor ebx, ebx
movzx eax, byte [esi + 0x61]
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x2c]
push eax
push ecx
lea eax, [esi + 0x18]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.1000548f
cmp dword [esi + 0x24], ebx
mov dword [ebp - 4], 0xd
setne al
movzx eax, al
push eax
movzx eax, byte [esi + 0x60]
push eax
push dword [esi + 0x20]
lea eax, [esi + 0x10]
push dword [esi + 0x1c]
push ecx
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.1000548f
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
add esi, 4
push esi
mov byte [ebp - 4], 0xe
call fcn.1000548f
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.1009a851
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4