Function at 0x18000a840
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a8]
sub rsp, 0x3a8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1801548a8]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r8
mov r12, rdx
mov r14, rcx
xor r15d, r15d
mov r13d, r15d
mov rsi, qword [rdx + 8]
mov rbx, qword [rdx]
lea rdi, [r15 - 1]
cmp rbx, rsi
je 0x18000a8c9
nop dword [rax]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18000a8bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rbx, 8
cmp rbx, rsi
jne 0x18000a8a0
mov rbx, qword [r12]
mov qword [r12 + 8], rbx
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.18000a680
nop
call fcn.18000a5b0
mov rcx, rax
test rax, rax
je 0x18000b0ac
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov rsi, qword [r14 + 0x68]
mov r14, qword [rsp + 0x30]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x18000a92d
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.18000b290
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 0xc], 0x104
jl 0x18000b0b7
mov dword [rbx - 0x10], 0x104
mov word [rbx + 0x208], r15w
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800c96c0
test eax, eax
js 0x18000b0a1
cmp eax, dword [rbx - 0xc]
jg 0x18000b0a1
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
cmp dword [rbx - 0x10], 0
je 0x18000b055
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000b055
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18000b055
movdqa xmm0, xmmword [0x180100240]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], al
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.18005e780
test eax, eax
jne 0x18000aa60
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x18000aa0e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000aa09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b0c2
call fcn.1800965cc
movdqa xmm0, xmmword [0x180100240]
mov byte [rsp + 0x68], 0
movdqu xmmword [rsp + 0x78], xmm0
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18000aa3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x18000ab0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x18000ab0d
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
call fcn.18006fe80
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18000ab3b
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x18000aabf
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000aaba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b0c8
call fcn.1800965cc
movdqa xmm0, xmmword [0x180100240]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18000aaec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x18000ab08
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r13, qword [rsp + 0x40]
mov rcx, r13
call fcn.18006fd00
mov eax, r15d
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.180096b80
add rsp, 0x3a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.session
mov rcx, rax
call fcn.18006fdb0
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18000ae5e
lea rdx, str.urls_to_restore_on_startup
mov rcx, rax
call fcn.18006fdb0
mov r13, rax
test rax, rax
je 0x18000ade5
cmp dword [rax + 0x18], 5
jne 0x18000ade5
mov rcx, rax
call fcn.18006fd90
mov dword [rsp + 0x20], eax
call fcn.18000a5b0
mov rcx, rax
test rax, rax
je 0x18000b0ce
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
mov qword [rbp - 0x68], r15
mov eax, 0xf
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x78], 0
mov r14d, r15d
cmp dword [rsp + 0x20], r15d
jle 0x18000ad7f
nop dword [rax + rax]
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
xor r8d, r8d
lea rdx, [0x1800ffaf8]
lea rcx, [rbp + 8]
call fcn.18000c340
nop
lea r9, [rbp + 8]
mov r8d, r14d
mov rdx, r13
lea rcx, [rbp + 0x28]
call fcn.1800707d0
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x18000ac3a
lea rcx, [rbp - 0x78]
call fcn.180008fb0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x18000ac75
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000ac70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b0df
call fcn.1800965cc
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], 0xf
mov byte [rbp + 0x28], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x18000acc0
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000acbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b0e5
call fcn.1800965cc
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
mov r8d, 0xfde9
lea rcx, [rbp + 0x70]
call fcn.180007f50
nop
mov rdx, qword [rax]
test rdx, rdx
jne 0x18000aceb
mov eax, r15d
jmp 0x18000acfa
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x18000acf0
mov r8d, eax
lea rcx, [rsp + 0x28]
call fcn.18000b4d0
nop
lea rax, [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
cmp rcx, rax
je 0x18000ad1a
call fcn.1800c8ed8
lea rcx, [rsp + 0x28]
call fcn.18000b870
mov rbx, qword [rsp + 0x28]
cmp dword [rbx - 0x10], 0
je 0x18000ad68
mov rsi, qword [r12 + 8]
cmp qword [r12 + 0x10], rsi
je 0x18000ad53
lea rcx, [rbx - 0x18]
call fcn.180009ba0
add rax, 0x18
mov qword [rsi], rax
add qword [r12 + 8], 8
jmp 0x18000ad68
lea r8, [rsp + 0x28]
mov rdx, rsi
mov rcx, r12
call fcn.1800076a0
mov rbx, qword [rsp + 0x28]
inc r14d
cmp r14d, dword [rsp + 0x20]
jl 0x18000abd0
mov rax, qword [rbp - 0x60]
mov rsi, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x18000adb7
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000adb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b0d9
call fcn.1800965cc
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18000ade0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x38]
movdqa xmm0, xmmword [0x180100240]
movdqu xmmword [rbp + 0x58], xmm0
mov byte [rbp + 0x48], 0
mov r8d, 0x12
lea rdx, str.restore_on_startup
lea rcx, [rbp + 0x48]
call fcn.18000c340
nop
mov r8d, edi
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.180070880
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
mov rdx, qword [rbp + 0x60]
cmp rdx, 0x10
jb 0x18000ae5e
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000ae59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b0eb
call fcn.1800965cc
movdqa xmm0, xmmword [0x180100240]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
xor r8d, r8d
lea rdx, [0x1800ffaf8]
lea rcx, [rbp - 0x38]
call fcn.18000c340
nop
movdqa xmm0, xmmword [0x180100240]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
mov r8d, 8
lea rdx, str.homepage
lea rcx, [rbp - 0x58]
call fcn.18000c340
nop
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x58]
mov r13, qword [rsp + 0x40]
mov rdx, r13
lea rcx, [rbp - 0x18]
call fcn.1800708c0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x18000af00
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000aefb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b0f1
call fcn.1800965cc
movdqa xmm0, xmmword [0x180100240]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x18000af4c
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000af47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b0f7
call fcn.1800965cc
movdqa xmm0, xmmword [0x180100240]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rdx, qword [rbp - 0x18]
mov r8d, 0xfde9
lea rcx, [rbp + 0x180]
call fcn.180007f50
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x18000af9d
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x18000af90
mov r15d, eax
mov r8d, r15d
mov rcx, qword [rsp + 0x58]
call fcn.18000b4d0
nop
lea rax, [rbp + 0x188]
mov rcx, qword [rbp + 0x180]
cmp rcx, rax
je 0x18000afc3
call fcn.1800c8ed8
mov r15d, 1
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x18000b004
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000afff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b095
call fcn.1800965cc
movdqa xmm0, xmmword [0x180100240]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x18000aa0e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000aa09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b09b
jmp 0x18000aa09
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18000b06f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x18000ab0d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x18000ab0d
call fcn.1800c9338
nop
call fcn.1800c9338
int3
mov ecx, 0x80070057
call fcn.180009b50
nop
mov ecx, 0x80004005
call fcn.180009b50
nop
mov ecx, 0x80070057
call fcn.180009b50
int3
call fcn.1800c9338
int3
call fcn.1800c9338
nop
mov ecx, 0x80004005
call fcn.180009b50
nop
call fcn.1800c9338
nop
call fcn.1800c9338
nop
call fcn.1800c9338
nop
call fcn.1800c9338
nop
call fcn.1800c9338
nop
call fcn.1800c9338
int3