Function at 0x1801ca110
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, r8d
mov r13, rdx
mov r12, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x1803467d0]
lea r14, [rsp + 0x70]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r9d, 0x177
call fcn.18010a970
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.180101470
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov ecx, 1
cmove ecx, eax
test bl, 4
mov eax, 4
cmovne ecx, eax
test bl, 8
mov edx, 2
cmove edx, ecx
test bl, 0x10
mov edi, 5
cmove edi, edx
test edi, edi
je 0x1801ca3b8
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, bl
cmovns eax, ecx
mov ecx, ebx
rol ecx, 0x1a
and ecx, 0x80000100
or ecx, eax
bt ebx, 0x12
jae 0x1801ca1fa
bt ebx, 0x15
jb 0x1801ca453
or ecx, 0x20000000
mov ebp, ebx
shr ebp, 4
and ebp, 0x10000
or ebp, ecx
mov eax, ebx
shr eax, 8
and eax, 3
mov r14d, ebx
shr r14d, 0xd
and r14d, 4
or r14d, eax
xor r14d, 3
mov eax, ebx
and eax, 0x400
mov dword [rsp + 0x3c], eax
shl eax, 0x14
mov ecx, ebx
shr ecx, 3
and ecx, 0x100
or ecx, eax
mov eax, ebx
shr eax, 0xb
and eax, 2
or eax, ecx
mov ecx, ebx
shl ecx, 0xd
and ecx, 0x4000000
or ecx, eax
mov esi, ebx
shl esi, 8
and esi, 0xa000000
or esi, ecx
cmp byte [r13 + 0x17], 0
mov rcx, r13
jns 0x1801ca26e
mov rcx, qword [r13]
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov edx, ebp
mov r8d, r14d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp qword [r12], rax
je 0x1801ca2e4
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
mov r12d, eax
mov r13, rcx
mov rax, qword [rcx]
inc rax
cmp rax, 2
jae 0x1801ca414
mov rax, r15
inc rax
cmp rax, 2
jb 0x1801ca2cf
mov qword [r13], r15
call fcn.18010a990
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [r13]
mov r12, r13
mov r13, qword [rsp + 0x48]
inc r15
cmp r15, 1
ja 0x1801ca35f
call fcn.1801974c0
test al, al
je 0x1801ca35f
cmp byte [r13 + 0x17], 0
mov rcx, r13
jns 0x1801ca304
mov rcx, qword [r13]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x30], 0
mov edx, ebp
mov r8d, r14d
xor r9d, r9d
call fcn.1802f97f0
cmp qword [r12], rax
je 0x1801ca35f
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r12]
inc rax
cmp rax, 2
jae 0x1801ca438
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1801ca357
mov qword [r12], r14
call fcn.18010a990
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [r12]
inc rax
cmp rax, 2
jb 0x1801ca400
mov eax, dword [rsp + 0x3c]
shr eax, 0xa
mov dword [r12 + 0x24], 0
mov byte [r12 + 0x29], al
test bl, 4
jne 0x1801ca397
test bl, 0xa
je 0x1801ca3a8
mov byte [r12 + 0x28], 1
jmp 0x1801ca3a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r12 + 0x28]
bt ebx, 0x15
jae 0x1801ca3d1
mov rcx, r13
call fcn.180240c40
jmp 0x1801ca3d1
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r12 + 0x24], 0xffffffff
call fcn.1802d1e10
lea rcx, [rsp + 0x70]
call fcn.1801014d0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1801e6610
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180175d40
mov dword [r12 + 0x24], eax
jmp 0x1801ca3d1
call fcn.18010a990
mov qword [rsp + 0x40], r13
mov rcx, qword [r13]
call fcn.1800fd300
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
jmp 0x1801ca2ba
call fcn.18010a990
mov rcx, qword [r12]
call fcn.1800fd300
mov qword [r12], 0
jmp 0x1801ca344
int3