Function at 0x1003d7b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1c61
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x170]
push eax
mov dword [ebp - 0x174], 0
call fcn.1003d450
mov dword [ebp - 4], 0
call fcn.10004450
mov ecx, eax
test ecx, ecx
je 0x1003e09b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x178], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov edi, dword [ebp - 0x170]
mov byte [ebp - 4], 1
jge 0x1003d856
push 0x104
lea ecx, [ebp - 0x178]
call fcn.10004500
mov esi, dword [ebp - 0x178]
cmp dword [esi - 8], 0x104
jl 0x1003e0a5
push str.prefs.js
push edi
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.100a8086
add esp, 8
test eax, eax
js 0x1003e0a5
cmp eax, dword [esi - 8]
jg 0x1003e0a5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x1003e038
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e038
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003e038
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.100528c0
add esp, 8
test eax, eax
jne 0x1003d940
lea ecx, [ebp - 0x28]
call fcn.10003e30
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d915
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x170]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1003e078
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003e078
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x168], ecx
cmp eax, 0x1b
jb 0x1003da16
add eax, 0xffffffe6
add eax, ecx
mov dword [ebp - 0x16c], eax
sub eax, ecx
push eax
push 0x22
push ecx
call fcn.100a48c0
add esp, 0xc
mov dword [ebp - 0x164], eax
test eax, eax
je 0x1003da16
nop word [eax + eax]
mov ecx, eax
mov edx, str._browser.startup.homepage__
mov edi, 0x17
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003d9c1
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1003d9b0
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1003d9e8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1003d9e8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1003d9e8
cmp edi, 0xffffffff
je 0x1003d9e4
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1003d9e8
xor eax, eax
jmp 0x1003d9ed
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x164]
test eax, eax
je 0x1003da23
mov eax, dword [ebp - 0x16c]
inc ecx
sub eax, ecx
push eax
push 0x22
push ecx
call fcn.100a48c0
add esp, 0xc
mov dword [ebp - 0x164], eax
test eax, eax
jne 0x1003d9a0
lea ecx, [ebp - 0x40]
call fcn.10003e30
jmp 0x1003d8ef
sub ecx, dword [ebp - 0x168]
cmp ecx, 0xffffffff
je 0x1003da16
cmp dword [ebp - 0x14], 0x10
lea edi, [ecx + 0x1b]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x168], eax
cmp edi, ecx
jae 0x1003da16
sub ecx, edi
add eax, edi
push ecx
push 0x29
push eax
mov dword [ebp - 0x16c], ecx
call fcn.100a48c0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1003da16
sub ecx, dword [ebp - 0x168]
cmp ecx, 0xffffffff
je 0x1003da16
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp dword [ebp - 0x18], edi
jb 0x1003e0af
sub ecx, edi
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x16c], ecx
cmovb ecx, dword [ebp - 0x16c]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
add eax, edi
push eax
call fcn.100057a0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1003dae5
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003dadb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e0b4
push edx
push ecx
call fcn.1007d115
add esp, 8
movups xmm1, xmmword [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
lea edi, [ebp - 0x40]
movq xmm0, qword [ebp - 0x48]
movd eax, xmm1
movups xmmword [ebp - 0x40], xmm1
cmovae edi, eax
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x168], edi
lea eax, [ebp - 0x158]
mov dword [ebp - 0x15c], eax
test edi, edi
jne 0x1003db28
xor edx, edx
mov dword [ebp - 0x15c], edx
jmp 0x1003dc00
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003db30
sub ecx, edx
push 0x80
lea eax, [ecx + 1]
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x164], eax
push ecx
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.10004a40
mov eax, dword [ebp - 0x164]
add esp, 0x10
push eax
push dword [ebp - 0x15c]
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x16c], ecx
test eax, eax
jne 0x1003dbf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003dbec
push 0
push 0
push dword [ebp - 0x164]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [ebp - 0x158]
push 0x80
push eax
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.10004a40
add esp, 0x10
push edi
push dword [ebp - 0x15c]
push dword [ebp - 0x164]
push dword [ebp - 0x168]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x1003dbf2
mov ecx, dword [ebp - 0x16c]
test ecx, ecx
jne 0x1003e0b9
mov edx, dword [ebp - 0x15c]
mov byte [ebp - 4], 4
test edx, edx
jne 0x1003dc0c
xor ecx, ecx
jmp 0x1003dc20
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003dc11
sub ecx, edi
sar ecx, 1
mov edi, dword [ebp - 0x160]
push ecx
push edx
mov ecx, edi
call fcn.100045a0
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x1003dc4c
push eax
call fcn.100a77ae
add esp, 4
mov eax, dword [edi]
xor edi, edi
mov dword [ebp - 0x168], eax
movzx eax, word [eax]
test ax, ax
je 0x1003dcf5
mov esi, dword [ebp - 0x168]
mov ecx, eax
nop word [eax + eax]
push ecx
call fcn.100aca9f
add esp, 4
test eax, eax
je 0x1003dc88
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, eax
jmp 0x1003dc8a
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x1003dc70
mov esi, dword [ebp - 0x178]
test edi, edi
je 0x1003dcf5
mov edx, dword [ebp - 0x160]
mov edx, dword [edx]
sub edi, edx
sar edi, 1
js 0x1003e0d8
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x1003dcdb
mov ecx, dword [ebp - 0x160]
push edi
call fcn.10004500
mov eax, dword [ebp - 0x160]
mov edx, dword [eax]
jmp 0x1003dce1
mov eax, dword [ebp - 0x160]
cmp edi, dword [edx - 8]
jg 0x1003e0a5
mov dword [edx - 0xc], edi
xor ecx, ecx
mov eax, dword [eax]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x160]
mov edi, dword [eax]
mov dword [ebp - 0x164], edi
movzx eax, word [edi]
push eax
call fcn.100aca9f
add esp, 4
test eax, eax
je 0x1003dd2d
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.100aca9f
add esp, 4
test eax, eax
jne 0x1003dd13
mov dword [ebp - 0x164], edi
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x164]
mov edi, dword [edx]
mov dword [ebp - 0x174], edi
cmp eax, edi
je 0x1003de01
sub eax, edi
sar eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x168], eax
test eax, eax
js 0x1003e0e2
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, dword [edi - 0xc]
or eax, ecx
jge 0x1003dd8b
push dword [ebp - 0x168]
mov ecx, edx
call fcn.10004500
mov eax, dword [ebp - 0x160]
mov edi, dword [eax]
mov eax, dword [ebp - 0x164]
mov ecx, dword [edi - 0xc]
mov dword [ebp - 0x164], ecx
sub dword [ebp - 0x164], eax
lea edx, [edi + eax*2]
mov eax, dword [ebp - 0x164]
add eax, eax
mov dword [ebp - 0x168], eax
add eax, 2
push eax
push edx
lea eax, [ecx*2 + 2]
push eax
push edi
call fcn.10039790
mov eax, dword [ebp - 0x164]
add esp, 0x10
test eax, eax
js 0x1003e0a5
mov edx, dword [ebp - 0x160]
mov ecx, dword [edx]
cmp eax, dword [ecx - 8]
jg 0x1003e0a5
mov dword [ecx - 0xc], eax
xor edi, edi
mov eax, dword [edx]
mov ecx, dword [ebp - 0x168]
mov word [ecx + eax], di
mov eax, dword [edx]
mov dword [ebp - 0x174], eax
jmp 0x1003de03
mov eax, edi
movzx eax, word [eax]
xor edi, edi
test ax, ax
je 0x1003deaa
mov esi, dword [ebp - 0x174]
mov ecx, eax
nop dword [eax]
push ecx
push 0x100e0dec
call fcn.100a47f3
add esp, 8
test eax, eax
je 0x1003de3d
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, eax
jmp 0x1003de3f
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x1003de20
mov esi, dword [ebp - 0x178]
test edi, edi
je 0x1003deaa
mov eax, dword [ebp - 0x160]
mov edx, dword [eax]
sub edi, edx
sar edi, 1
js 0x1003e0ec
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x1003de90
mov ecx, dword [ebp - 0x160]
push edi
call fcn.10004500
mov eax, dword [ebp - 0x160]
mov edx, dword [eax]
jmp 0x1003de96
mov eax, dword [ebp - 0x160]
cmp edi, dword [edx - 8]
jg 0x1003e0a5
mov dword [edx - 0xc], edi
xor ecx, ecx
mov eax, dword [eax]
mov word [eax + edi*2], cx
mov edx, dword [ebp - 0x160]
mov edi, dword [edx]
movzx eax, word [edi]
test ax, ax
je 0x1003dee6
mov ecx, eax
nop dword [eax]
push ecx
push 0x100e0dec
call fcn.100a47f3
add esp, 8
test eax, eax
je 0x1003dee0
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x1003dec0
mov edx, dword [ebp - 0x160]
mov ecx, dword [edx]
cmp edi, ecx
je 0x1003df95
mov eax, dword [ecx - 0xc]
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x16c], eax
test eax, eax
js 0x1003e0f6
mov eax, 1
sub eax, dword [ecx - 4]
mov dword [ebp - 0x168], eax
mov eax, dword [ecx - 8]
sub eax, dword [ecx - 0xc]
or eax, dword [ebp - 0x168]
jge 0x1003df36
push dword [ebp - 0x16c]
mov ecx, edx
call fcn.10004500
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax]
lea edx, [ecx + edi*2]
mov ecx, dword [ecx - 0xc]
mov eax, ecx
sub eax, edi
mov edi, dword [ebp - 0x160]
mov dword [ebp - 0x168], eax
add eax, eax
mov dword [ebp - 0x16c], eax
add eax, 2
push eax
push edx
lea eax, [ecx*2 + 2]
push eax
push dword [edi]
call fcn.10039790
mov eax, dword [ebp - 0x168]
add esp, 0x10
test eax, eax
js 0x1003e0a5
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x1003e0a5
mov dword [ecx - 0xc], eax
xor edx, edx
mov eax, dword [edi]
mov ecx, dword [ebp - 0x16c]
mov word [ecx + eax], dx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x174], 1
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1003dfd7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003dfcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e100
push edx
push ecx
call fcn.1007d115
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1003e021
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003e017
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e105
push edx
push ecx
call fcn.1007d115
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x1003d8f7
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e056
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x170]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1003e078
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10003fe0
push 0x80070057
call fcn.10003fe0
call fcn.10011380
call fcn.100a7ba5
push 0x80
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x15c]
call fcn.10004ac0
add esp, 0xc
call fcn.10004cc0
push 0x80070057
call fcn.10003fe0
push 0x80070057
call fcn.10003fe0
push 0x80070057
call fcn.10003fe0
push 0x80070057
call fcn.10003fe0
call fcn.100a7ba5
call fcn.100a7ba5
int3