Function at 0x1400f4410
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x60]
mov qword [r15 + 0x50], rax
movaps xmm0, xmmword [0x1403aa440]
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.MapFileRegionToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x3a
call fcn.1401de830
xor r14d, r14d
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1401ea620
mov rcx, rsi
call fcn.1400f34c0
test al, al
je 0x1400f460a
test edi, edi
jne 0x1400f4639
mov edi, 2
xor r15d, r15d
mov rcx, rsi
call fcn.1400a9140
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, edi
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x1400f452a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x1400f464f
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400f451e
mov qword [rsi + 0x40], r14
call fcn.1401de850
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jb 0x1400f46dd
mov dword [rsp + 0x3c], 0
lea rdx, [0x1403b4b40]
mov rcx, rbx
call fcn.1400e1f00
test al, al
je 0x1400f466a
mov rcx, rsi
call fcn.1400f3900
xor r14d, r14d
test rax, rax
jle 0x1400f460a
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
and edi, 2
add edi, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, edi
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rax, qword [0x14041b9a0]
and rax, rcx
cmp rax, qword [0x14041b988]
je 0x1400f46ff
mov rax, qword [0x14041b9a0]
and rax, rdi
cmp rax, qword [0x14041b988]
je 0x1400f4709
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x1400f46dd
movsxd rdx, dword [rsp + 0x3c]
mov rax, qword [0x14041b9a0]
mov r8, rax
and r8, rdi
mov rbx, rdi
add rbx, rdx
mov rcx, qword [0x14041b988]
cmp r8, rcx
je 0x1400f4716
and rax, rbx
cmp rax, rcx
je 0x1400f4729
mov qword [rsi + 0x30], rbx
mov r14b, 1
lea rcx, [rsp + 0x60]
call fcn.1401ea680
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140242430
mov eax, r14d
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp edi, 3
jne 0x1400f46e5
mov rcx, rsi
call fcn.1400f4220
mov r14d, eax
jmp 0x1400f460a
call fcn.1401de850
mov rcx, qword [rsi + 0x40]
call fcn.1401f05b0
mov qword [rsi + 0x40], 0
jmp 0x1400f4509
xor r15d, r15d
lea r14, [rsp + 0x40]
mov qword [r14], r15
lea r9, [rsp + 0x30]
mov qword [r9], r15
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
lea r12, [rsp + 0x3c]
mov qword [rsp + 0x20], r12
mov r8, r14
call fcn.1400e20d0
mov rcx, qword [rbx + 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 0x1400f46dd
test r8b, r8b
jne 0x1400f46dd
test rdx, rdx
js 0x1400f46dd
mov r8, r14
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x1400f4573
xor r14d, r14d
jmp 0x1400f460a
cmp edi, 2
jne 0x1400f472c
mov r14, qword [rbx + 8]
mov r15, r14
shr r15, 0x20
mov edi, 4
jmp 0x1400f44c0
call fcn.1401e0920
jmp 0x1400f45ab
mov rcx, rdi
call fcn.1401e07d0
jmp 0x1400f45c2
mov rcx, rdi
call fcn.1401e0cd0
test al, al
jne 0x1400f4603
int3
int3
cmp edi, 1
jne 0x1400f473b
mov edi, 4
jmp 0x1400f44bd
xor edi, edi
jmp 0x1400f44bd