Function at 0x140015870
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x60]
mov qword [r15 + 0x50], rax
movaps xmm0, xmmword [0x140261350]
movaps xmmword [r15 + 0x40], xmm0
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 + 0x38]
mov rcx, r14
mov r9d, 0x16f
call fcn.14011b9f0
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call fcn.14010e570
test byte [0x140289010], 0x19
jne 0x140015b43
mov eax, edi
and eax, 1
neg eax
and eax, 3
test dil, 2
mov edx, 1
cmove edx, eax
test dil, 4
mov ecx, 4
cmovne edx, ecx
test dil, 8
mov r8d, 2
cmove r8d, edx
test dil, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x140015b5c
mov edx, edi
and edx, 0x40
shl edx, 0x18
test dil, 0x80
cmove ecx, edx
mov edx, edi
rol edx, 0x1a
mov r8d, edi
shl r8d, 0xb
and r8d, 0x20000000
mov r9d, edi
shr r9d, 4
and r9d, 0x10000
and edx, 0x80000100
or edx, r8d
or edx, r9d
or edx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 3
mov r8d, edi
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, edi
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, edi
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, edi
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r9d, edi
shl r9d, 0xd
and r9d, 0x4000000
or r9d, ecx
mov ecx, edi
shl ecx, 8
and ecx, 0xa000000
or ecx, r9d
cmp byte [rbx + 0x17], 0
jns 0x1400159fc
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [rsi], rax
je 0x140015a58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140015ace
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140015a4d
mov qword [rsi], rbx
call fcn.1400f24d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
inc rbx
cmp rbx, 2
jb 0x140015aab
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test dil, 4
jne 0x140015abd
test dil, 0xa
je 0x140015a80
mov byte [rsi + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.140140790
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401756e0
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140015f60
mov dword [rsi + 0x24], eax
jmp 0x140015a80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x140015a80
call fcn.1400f24d0
mov r14, qword [rsi]
cmp qword [0x1402a1a18], 0
je 0x140015b02
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401d7990.0]
mov qword [rsi], 0
jmp 0x140015a39
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140015b73
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140015b3d
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
jmp 0x140015ae0
xor ecx, ecx
mov dl, 1
jmp 0x140015b36
lea rdx, [rsp + 0x58]
mov qword [rdx], r14
lea rcx, str.ScopedBlockingCall
call fcn.1401d6b20
jmp 0x14001590b
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
jmp 0x140015a80
xor ecx, ecx
jmp 0x140015b34