Function at 0x100396c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4c12
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x1011449c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x190], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x1b8], eax
or eax, 0xffffffff
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x19c], ecx
cmp esi, ecx
je 0x1003975f
mov edx, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039751
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x19c]
add esi, 4
mov eax, 0xffffffff
cmp esi, ecx
jne 0x10039734
mov esi, dword [edi]
mov dword [edi + 4], esi
lea eax, [ebp - 0x198]
mov esi, dword [ebp - 0x190]
mov ecx, esi
push eax
call fcn.10039500
mov dword [ebp - 4], 0
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x10039e43
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x19c], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov edx, dword [ebp - 0x198]
mov esi, dword [esi + 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x190], edx
jge 0x100397df
push 0x104
lea ecx, [ebp - 0x19c]
call fcn.10004620
mov edi, dword [ebp - 0x19c]
mov edx, dword [ebp - 0x190]
cmp dword [edi - 8], 0x104
jl 0x10039e4d
push esi
push edx
xor eax, eax
mov dword [edi - 0xc], 0x104
push edi
mov word [edi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [edi - 8]
push edi
call fcn.100ab2e6
add esp, 8
test eax, eax
js 0x10039e4d
cmp eax, dword [edi - 8]
jg 0x10039e4d
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [edi - 0xc], ecx
je 0x10039dd2
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10039dd2
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10039dd2
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.10053d20
add esp, 8
test eax, eax
jne 0x1003990b
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x100398b0
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100398a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e57
push edx
push ecx
call fcn.10080302
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100398e0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x198]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10039e12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10039e12
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.1006c210
add esp, 4
mov dword [ebp - 0x1a4], eax
test eax, eax
jne 0x10039933
lea ecx, [ebp - 0x40]
call fcn.10003f50
jmp 0x100398c2
push str.session
push eax
call fcn.1006c150
add esp, 8
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x10039bb1
push str.urls_to_restore_on_startup
push eax
call fcn.1006c150
add esp, 8
mov dword [ebp - 0x1b0], eax
test eax, eax
je 0x10039b5f
cmp dword [eax + 0xc], 5
jne 0x10039b5f
push eax
call fcn.1006c130
add esp, 4
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x194]
call fcn.1001dba0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
xor esi, esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x190], esi
cmp dword [ebp - 0x1a0], esi
jle 0x10039b31
mov edi, dword [ebp - 0x1a8]
jmp 0x100399c7
mov esi, dword [ebp - 0x190]
push 0
push 0x100e1de0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.100058c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
push esi
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x58]
push eax
call fcn.1006c940
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x10039a35
mov ecx, eax
call fcn.10003f50
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x58]
call fcn.10003f50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10003f50
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push 0xfde9
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x18c]
push eax
call fcn.10004c00
mov edx, dword [eax]
mov byte [ebp - 4], 6
test edx, edx
jne 0x10039a73
xor ecx, ecx
jmp 0x10039a8f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039a80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x194]
call fcn.100046c0
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 4
cmp eax, ecx
je 0x10039ab9
push eax
call fcn.100aaa0e
add esp, 4
lea ecx, [ebp - 0x194]
call fcn.1003a0e0
mov esi, dword [ebp - 0x194]
cmp dword [esi - 0xc], 0
je 0x10039b10
mov eax, dword [edi + 4]
mov dword [ebp - 0x1a8], eax
cmp dword [edi + 8], eax
je 0x10039afb
lea eax, [esi - 0x10]
push eax
call fcn.100043b0
mov ecx, dword [ebp - 0x1a8]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x10039b10
lea ecx, [ebp - 0x194]
push ecx
push eax
mov ecx, edi
call fcn.10038740
mov esi, dword [ebp - 0x194]
mov eax, dword [ebp - 0x190]
inc eax
mov dword [ebp - 0x190], eax
cmp eax, dword [ebp - 0x1a0]
jl 0x100399c1
mov edi, dword [ebp - 0x19c]
jmp 0x10039b37
mov esi, dword [ebp - 0x194]
lea ecx, [ebp - 0x70]
call fcn.10003f50
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039b62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10039b62
or esi, 0xffffffff
push 0x12
push str.restore_on_startup
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.100058c0
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0x1b4]
call fcn.1006ca10
mov ecx, dword [ebp - 0x1ac]
add esp, 0xc
mov byte [ebp - 4], 2
mov dword [ecx], eax
lea ecx, [ebp - 0x28]
call fcn.10003f50
jmp 0x10039bb4
or esi, 0xffffffff
push 0
push 0x100e1de0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.100058c0
push 8
push str.homepage
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.100058c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x88]
push eax
call fcn.1006ca50
add esp, 0x10
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x10039c53
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039c49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e5c
push edx
push ecx
call fcn.10080302
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x10039c9d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039c93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e61
push edx
push ecx
call fcn.10080302
add esp, 8
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
push 0xfde9
cmovae eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x18c]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10004c00
mov edx, dword [eax]
mov byte [ebp - 4], 0xd
test edx, edx
jne 0x10039cdf
xor ecx, ecx
jmp 0x10039d03
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1ac], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039cf0
sub ecx, dword [ebp - 0x1ac]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1b8]
push edx
call fcn.100046c0
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
cmp eax, ecx
je 0x10039d29
push eax
call fcn.100aaa0e
add esp, 4
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x1a0], 1
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x10039d6e
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039d64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e66
push edx
push ecx
call fcn.10080302
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x10039dbb
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039db1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e6b
push edx
push ecx
call fcn.10080302
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x100398c5
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10039df0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x198]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10039e12
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
push dword [ebp - 0x1a4]
call fcn.1006c0a0
mov eax, dword [ebp - 0x1a0]
add esp, 4
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.10080681
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10004100
push 0x80070057
call fcn.10004100
call fcn.100aae05
call fcn.100aae05
call fcn.100aae05
call fcn.100aae05
call fcn.100aae05
int3