Function at 0x14005be30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1401869f0]
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.MapFileRegionToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x3a
call fcn.1400b7e30
xor r14d, r14d
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1400ae1b0
mov rcx, rsi
call fcn.1400ab250
test al, al
je 0x14005c007
test ebx, ebx
jne 0x14005c03b
mov ebp, 2
mov ebx, 4
xor r15d, r15d
mov rcx, rsi
call fcn.1400430f0
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebp
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x14005bf3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14005c07d
mov rax, r14
inc rax
cmp rax, 2
jb 0x14005bf30
mov qword [rsi + 0x40], r14
call fcn.1400b7e50
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jb 0x14005c036
mov dword [rsp + 0x3c], 0
lea rdx, [0x14019a438]
mov rcx, rdi
call fcn.14005c200
test al, al
je 0x14005c098
mov rcx, rsi
call fcn.140043230
xor r14d, r14d
test rax, rax
jle 0x14005c007
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, ebx
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
movabs r14, 0xfffffffc00000000
mov rax, rcx
and rax, r14
cmp rax, qword [0x1401b3dc8]
je 0x14005c117
mov r15, rdi
and r15, r14
cmp r15, qword [0x1401b3dc8]
je 0x14005c121
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x14005c036
movsxd rax, dword [rsp + 0x3c]
mov rbx, rdi
add rbx, rax
mov rax, qword [0x1401b3dc8]
cmp r15, rax
je 0x14005c12e
and r14, rbx
cmp r14, rax
je 0x14005c144
mov qword [rsi + 0x30], rbx
mov r14b, 1
lea rcx, [rsp + 0x60]
call fcn.1400ae3f0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400d9910
mov eax, r14d
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14005c007
dec ebx
cmp ebx, 3
ja case.default.0x14005c054
lea rax, [0x14019a424]
movsxd rcx, dword [rax + rbx*4]
add rcx, rax
jmp rcx
mov r14, qword [rdi + 8]
mov r15, r14
shr r15, 0x20
mov ebp, 4
mov ebx, 2
jmp 0x14005bed2
mov rcx, rsi
call fcn.14005bc60
mov r14d, eax
jmp 0x14005c007
call fcn.1400b7e50
mov rcx, qword [rsi + 0x40]
call fcn.1400aa7b0
mov qword [rsi + 0x40], 0
jmp 0x14005bf1b
xor r15d, r15d
lea r14, [rsp + 0x40]
mov qword [r14], r15
lea r9, [rsp + 0x30]
mov qword [r9], r15
mov rcx, qword [rdi]
mov rdx, qword [rdi + 8]
lea r12, [rsp + 0x3c]
mov qword [rsp + 0x20], r12
mov r8, r14
call fcn.14005c3e0
mov rcx, qword [rdi + 8]
movsxd rax, dword [r12]
mov r8, rax
sar r8, 0x3f
add rax, rcx
adc r8, r15
mov edx, r8d
and edx, 1
neg rdx
xor r8, rdx
setne r8b
mov r14, qword [r14]
test r14, r14
js 0x14005c036
test r8b, r8b
jne 0x14005c036
test rdx, rdx
js 0x14005c036
mov r8, r14
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x14005bf85
call fcn.140098980
jmp 0x14005bfbd
mov rcx, rdi
call fcn.140098840
jmp 0x14005bfd0
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1400295d0
jmp 0x14005c000
int3
mov ebp, 4
mov ebx, 2
jmp 0x14005becf
mov ebp, 8
mov ebx, 1
jmp 0x14005becf
mov ebx, 0xaaaaaaaa
xor ebp, ebp
jmp 0x14005becf