Function at 0x14006f540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x90]
mov qword [r15 + 0x10], r13
movaps xmm6, xmmword [0x1402825c0]
movaps xmmword [r15], xmm6
lea rbx, [0x14029fb10]
lea r12, [rsp + 0x80]
mov qword [r12], rbx
mov rcx, rbx
call fcn.14021cf84
mov r14, rax
mov qword [r12 + 8], rax
mov rcx, rdi
mov rdx, r15
mov r8, r12
call fcn.1401bf380
lea r12, [rsp + 0x60]
mov qword [r12 + 0x10], r13
movaps xmmword [r12], xmm6
lea rcx, str.vivaldi.exe
lea r13, [rsp + 0x50]
mov qword [r13], rcx
call fcn.14021cf84
mov qword [r13 + 8], rax
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.1401bf380
cmp byte [r12 + 0x17], 0
mov rcx, r12
jns 0x14006f60b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
mov rcx, r12
call fcn.1401be900
mov rcx, r15
call fcn.1401be900
cmp ebp, 0xffffffff
je 0x14006f6f1
lea r15, [rsp + 0x90]
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [r15 + 0x10], r12
movaps xmmword [r15], xmm6
lea r8, [rsp + 0x40]
mov qword [r8], rbx
mov qword [r8 + 8], r14
mov rcx, rdi
mov rdx, r15
call fcn.1401bf380
lea rcx, str.stp.viv
lea r14, [rsp + 0x30]
mov qword [r14], rcx
call fcn.14021cf84
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x60]
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.1401bf380
cmp byte [rbx + 0x17], 0
mov rcx, rbx
jns 0x14006f696
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
mov rcx, rbx
call fcn.1401be900
cmp ebp, 0xffffffff
je 0x14006f6fa
mov dword [rsi], 2
mov byte [rsi + 4], 1
lea rcx, [rsp + 0x90]
call fcn.1401be900
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
mov byte [rsi], al
mov byte [rsi + 4], al
jmp 0x14006f6c2
lea rcx, str.sys.viv
lea r14, [rsp + 0x20]
mov qword [r14], rcx
call fcn.14021cf84
mov qword [r14 + 8], rax
lea rcx, [rsp + 0x90]
lea rbx, [rsp + 0x60]
mov rdx, rbx
mov r8, r14
call fcn.1401bf380
cmp byte [rbx + 0x17], 0
mov rcx, rbx
jns 0x14006f738
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
mov rcx, rbx
call fcn.1401be900
cmp ebp, 0xffffffff
je 0x14006f758
mov dword [rsi], 1
jmp 0x14006f6b1
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], r12
movaps xmmword [rbx], xmm6
mov rcx, rbx
call fcn.1401be760
mov ecx, 0x69
mov rdx, rbx
call fcn.140057cc0
mov rcx, rbx
mov rdx, rdi
call fcn.1400684d0
test al, al
jne 0x14006f7c4
cmp byte [rsp + 0x77], 0
js 0x14006f7dd
mov word [rsp + 0x60], 0
mov byte [rsp + 0x77], 0
lea rbx, [rsp + 0x60]
mov ecx, 0x68
mov rdx, rbx
call fcn.140057cc0
mov rcx, rbx
mov rdx, rdi
call fcn.1400684d0
test al, al
jne 0x14006f7c4
mov dword [rsi], 0
jmp 0x14006f7ca
mov dword [rsi], 1
mov byte [rsi + 4], 1
lea rcx, [rsp + 0x60]
call fcn.1401be900
jmp 0x14006f6b5
mov rax, qword [rsp + 0x60]
mov word [rax], 0
mov qword [rsp + 0x68], 0
jmp 0x14006f79b