Function at 0x140013210
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14013b040]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm0, xmmword [0x14011c0c0]
lea r15, [rsp + 0x60]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x171
call fcn.140058150
mov rcx, r15
xor edx, edx
xor r8d, r8d
call fcn.140058400
mov qword [rsp + 0xa0], 0xa
mov al, byte [0x14014c88a]
test al, al
jne 0x140013521
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x140013505
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x1400134ab
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r12d, ebx
and r12d, 0x400
mov ecx, r12d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14001338e
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x1400133e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140013468
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400133dd
mov qword [rsi], r14
call fcn.140057820
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x140013445
shr r12d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r12b
test bl, 4
jne 0x140013457
test bl, 0xa
je 0x14001340e
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x14001349c
lea rcx, [rsp + 0x60]
call fcn.14007f040
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14009f1f0
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140013560
mov dword [rsi + 0x24], eax
jmp 0x140013418
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14001340e
call fcn.140057820
mov r15, qword [rsi]
cmp qword [0x14014cbe0], 0
je 0x1400134c1
mov rcx, qword [0x14014cbe0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r15
call qword [0x14012fc00]
mov qword [rsi], 0
jmp 0x1400133c9
mov rcx, rdi
xor edx, edx
call fcn.140013660
jmp 0x140013418
bt ebx, 0x15
jb 0x140013553
or r8d, 0x20000000
jmp 0x14001330c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401281f5]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140013556
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400134ff
call qword [0x14012fc00]
mov rcx, rax
xor edx, edx
call fcn.14002cd30
jmp 0x14001347a
xor ecx, ecx
mov dl, 1
jmp 0x1400134f5
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400d2380
jmp 0x140013418
movzx ecx, al
lea r9, [rsp + 0xb0]
mov qword [r9], r14
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0xa8]
mov qword [r8], rax
lea rdx, [rsp + 0xa0]
call fcn.1400ed770
jmp 0x1400132a3
int3
xor ecx, ecx
jmp 0x1400134f3