Function at 0x140016260
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe0
movaps xmmword [rsp + 0xd0], xmm6
mov r12d, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movaps xmm6, xmmword [0x1401c8a80]
lea rbp, [rsp + 0x60]
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rdx, str.DoInitialize
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x15a
call fcn.1400d4e70
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.1400d4e90
mov eax, r12d
and eax, 1
neg eax
and eax, 3
test r12b, 2
mov edx, 1
cmove edx, eax
test r12b, 4
mov ecx, 4
cmovne edx, ecx
test r12b, 8
mov ebp, 2
cmove ebp, edx
test r12b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x1400164d5
mov edx, r12d
and edx, 0x40
shl edx, 0x18
test r12b, r12b
cmovns ecx, edx
mov edx, r12d
rol edx, 0x1a
mov edi, r12d
shl edi, 0xb
and edi, 0x20000000
mov esi, r12d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r12d
shr ecx, 8
and ecx, 3
mov r8d, r12d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r12d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r12d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r12d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r12d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r12d
shl ecx, 8
mov ebx, ecx
and ebx, 0x2000000
or ebx, ebp
and ecx, 0x8000000
or ecx, ebx
cmp byte [r14 + 0x17], 0
jns 0x1400163d1
mov r14, qword [r14]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r15], rax
je 0x14001642d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x1400164bc
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140016422
mov qword [r15], rbx
call fcn.1400c18d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r15]
inc rbx
cmp rbx, 2
jb 0x140016497
shr edi, 0xa
mov dword [r15 + 0x24], 0
mov byte [r15 + 0x29], dil
test r12b, 4
jne 0x1400164aa
test r12b, 0xa
je 0x140016456
mov byte [r15 + 0x28], 1
test byte [0x1401f7030], 0x19
jne 0x1400164ed
lea rcx, [rsp + 0x60]
call fcn.1400dcbb0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400f32c0
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe0
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.140016570
mov dword [r15 + 0x24], eax
jmp 0x140016456
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r15 + 0x28]
jmp 0x140016456
call fcn.1400c18d0
mov rcx, qword [r15]
call fcn.1400def50
mov qword [r15], 0
jmp 0x14001640e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r15 + 0x24], 0xffffffff
jmp 0x140016456
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x10], rax
movaps xmmword [rsi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x1401f7030]
lea r9, [0x1401d1322]
mov rcx, rsi
mov dl, 0x45
call fcn.1400c3ef0
mov rdi, qword [rsi]
test rdi, rdi
je 0x140016557
mov rbx, qword [rsp + 0x48]
lea rsi, [rsp + 0xb0]
mov rcx, rsi
xor edx, edx
call fcn.1400ec270
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rbx
mov rcx, rsi
call fcn.1400c3f10
lea rcx, [rsp + 0x40]
call fcn.1400ec280
jmp 0x140016463