Function at 0x1000a500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7e0c
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x100f4384]
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 - 0x18c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1a8], ecx
mov edi, dword [eax + 4]
mov esi, dword [eax]
or eax, 0xffffffff
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x198], 0
cmp esi, edi
je 0x1000a592
mov edx, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000a57c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
mov eax, 0xffffffff
cmp esi, edi
jne 0x1000a565
mov eax, dword [ebp - 0x188]
mov esi, dword [eax]
jmp 0x1000a598
mov eax, dword [ebp - 0x188]
mov dword [eax + 4], esi
lea eax, [ebp - 0x17c]
mov esi, dword [ebp - 0x18c]
mov ecx, esi
push eax
call fcn.1000a3c0
mov dword [ebp - 4], 0
call fcn.10006280
mov ecx, eax
test ecx, ecx
je 0x1000ab6c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18c], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov edx, dword [ebp - 0x17c]
mov esi, dword [esi + 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x180], edx
jge 0x1000a618
push 0x104
lea ecx, [ebp - 0x18c]
call fcn.10006cb0
mov edi, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x180]
cmp dword [edi - 8], 0x104
jl 0x1000ab76
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.10093037
add esp, 8
test eax, eax
js 0x1000ab76
cmp eax, dword [edi - 8]
jg 0x1000ab76
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [edi - 0xc], ecx
je 0x1000aafb
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000aafb
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1000aafb
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 edi
call fcn.1003e840
add esp, 8
test eax, eax
jne 0x1000a744
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1000a6e9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000a6df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ab80
push edx
push ecx
call fcn.10068042
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
or esi, 0xffffffff
mov eax, esi
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000a719
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000ab3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000ab3b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1004b5f0
add esp, 4
mov dword [ebp - 0x198], eax
test eax, eax
jne 0x1000a76c
lea ecx, [ebp - 0x28]
call fcn.10004b70
jmp 0x1000a6fb
push str.session
push eax
call fcn.1004b530
add esp, 8
mov dword [ebp - 0x1a4], eax
test eax, eax
jne 0x1000a791
lea ecx, [ebp - 0x28]
call fcn.10004b70
jmp 0x1000a6fb
push str.startup_urls
push eax
call fcn.1004b530
add esp, 8
mov dword [ebp - 0x19c], eax
test eax, eax
je 0x1000aa98
cmp dword [eax + 0xc], 5
jne 0x1000aa98
push eax
call fcn.1004b510
add esp, 4
mov dword [ebp - 0x184], eax
lea ecx, [ebp - 0x178]
call fcn.10003c50
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
xor esi, esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x180], esi
cmp dword [ebp - 0x184], esi
jg 0x1000a836
mov esi, dword [ebp - 0x178]
lea ecx, [ebp - 0x58]
call fcn.10004b70
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 0x1000aa9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000aa9b
mov esi, dword [ebp - 0x180]
push 0
push 0x100c499c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10007950
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
push esi
push dword [ebp - 0x19c]
lea eax, [ebp - 0x70]
push eax
call fcn.1004bd20
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x1000a8a4
mov ecx, eax
call fcn.10004b70
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x70]
call fcn.10004b70
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.10004b70
cmp dword [ebp - 0x44], 0x10
lea esi, [ebp - 0x58]
lea eax, [ebp - 0x170]
cmovae esi, dword [ebp - 0x58]
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x174], eax
test esi, esi
jne 0x1000a8e6
xor edx, edx
mov dword [ebp - 0x174], edx
jmp 0x1000a9c9
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a8f0
sub ecx, edx
push 0x80
lea eax, [ecx + 1]
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x190], eax
push ecx
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.10003340
mov eax, dword [ebp - 0x190]
add esp, 0x10
push eax
push dword [ebp - 0x174]
push eax
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x194], ecx
test eax, eax
jne 0x1000a9bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000a9b5
push 0
push 0
push dword [ebp - 0x190]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0x170]
push 0x80
push eax
lea eax, [ebp - 0x174]
push esi
push eax
call fcn.10003340
add esp, 0x10
push esi
push dword [ebp - 0x174]
push dword [ebp - 0x190]
push dword [ebp - 0x1a0]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x1000a9bb
mov ecx, dword [ebp - 0x194]
test ecx, ecx
jne 0x1000ab85
mov edx, dword [ebp - 0x174]
mov byte [ebp - 4], 6
test edx, edx
jne 0x1000a9d5
xor ecx, ecx
jmp 0x1000a9ef
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a9e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x178]
call fcn.10006dc0
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 4
cmp eax, ecx
je 0x1000aa19
push eax
call fcn.1009296e
add esp, 4
lea ecx, [ebp - 0x178]
call fcn.100070f0
mov esi, dword [ebp - 0x178]
cmp dword [esi - 0xc], 0
je 0x1000aa7a
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x194], eax
cmp dword [ecx + 8], eax
je 0x1000aa67
lea eax, [esi - 0x10]
push eax
call fcn.10005a50
mov ecx, dword [ebp - 0x194]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp - 0x188]
add dword [eax + 4], 4
jmp 0x1000aa7a
lea edx, [ebp - 0x178]
push edx
push eax
call fcn.10003460
mov esi, dword [ebp - 0x178]
mov eax, dword [ebp - 0x180]
inc eax
mov dword [ebp - 0x180], eax
cmp eax, dword [ebp - 0x184]
jl 0x1000a830
jmp 0x1000a7fd
or esi, 0xffffffff
push 0x12
push str.restore_on_startup
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10007950
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0x1a4]
call fcn.1004bdf0
mov ecx, dword [ebp - 0x1a8]
add esp, 0xc
mov dword [ecx], eax
lea ecx, [ebp - 0x40]
call fcn.10004b70
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x184], 1
call fcn.10004b70
jmp 0x1000a6fe
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 0x1000ab19
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1000ab3b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
push dword [ebp - 0x198]
call fcn.1004b480
mov eax, dword [ebp - 0x184]
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.100683c1
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.100058e0
push 0x80070057
call fcn.100058e0
call fcn.10092d65
push 0x80
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x174]
call fcn.100033c0
add esp, 0xc
call fcn.10005900
int3