Function at 0x14005c590
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movaps xmm0, xmmword [0x1401990c0]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], 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.140075ed0
lea rcx, [rsp + 0x60]
xor edx, edx
xor r8d, r8d
call fcn.1400a14c0
mov qword [rsp + 0xa8], 0xa
movzx eax, byte [0x1401d7dba]
test al, al
jne 0x14005c840
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 0x14005c7a7
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
test ebx, 0x40000
je 0x14005c6a0
test ebx, 0x200000
jne 0x14005c8a5
or r8d, 0x20000000
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 r15d, ebx
and r15d, 0x400
mov ecx, r15d
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 0x14005c722
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 0x14005c78c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14005c76d
call fcn.140075ef0
mov rcx, qword [rsi]
call fcn.140053e50
mov qword [rsi], 0
mov rax, r14
inc rax
cmp rax, 2
jb 0x14005c781
mov qword [rsi], r14
call fcn.140075ef0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jae 0x14005c7c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005c4e0
mov dword [rsi + 0x24], eax
jmp 0x14005c7fe
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.14007fd20
jmp 0x14005c7fe
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14005c7df
test bl, 0xa
je 0x14005c7ee
mov byte [rsi + 0x28], 1
jmp 0x14005c7ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
test ebx, 0x200000
je 0x14005c7fe
mov rcx, rdi
call fcn.14005e4f0
mov qword [rsp + 0xb8], 0xa
movzx eax, byte [0x1401d7dba]
test al, al
jne 0x14005c87c
lea rcx, [rsp + 0x60]
call fcn.1400a1760
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140152280
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movzx ecx, al
mov qword [rsp + 0xb8], r14
lea rax, str.ScopedBlockingCall
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0xa8]
lea r8, [rsp + 0xb0]
lea r9, [rsp + 0xb8]
call fcn.140062630
jmp 0x14005c626
movzx ecx, al
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0xb8]
lea r8, [rsp + 0x40]
mov r9d, 2
call fcn.140032b00
jmp 0x14005c815
int3