Function at 0x140014fc0
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x130
movaps xmmword [rsp + 0x120], xmm6
mov r15d, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x118], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r12
movaps xmm6, xmmword [0x1401efb80]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.MapFileRegionToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea rbp, [rsp + 0xc0]
mov rcx, rbp
mov r9d, 0x39
call fcn.1400ddbb0
xor edi, edi
mov rcx, rbx
mov rdx, rbp
xor r8d, r8d
call fcn.1400f4d70
mov rcx, rsi
call fcn.1400f5e20
test al, al
je 0x14001514e
test r15d, r15d
jne 0x140015184
mov ebp, 2
xor r9d, r9d
mov rcx, qword [rsi]
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], 0
xor edx, edx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x1400150d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x1400152c0
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1400150c8
mov qword [rsi + 0x40], rdi
call fcn.1400d3890
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
inc rdi
cmp rdi, 2
jb 0x14001532f
mov dword [rsp + 0x3c], 0
lea rdx, [0x1401fcf28]
mov rcx, r14
call fcn.140015390
test al, al
je 0x1400152db
mov rcx, rsi
call fcn.1400153c0
xor edi, edi
test rax, rax
jle 0x14001514e
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
and ebp, 2
add ebp, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, ebp
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14001532f
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov dil, 1
lea rcx, [rsp + 0x60]
call fcn.1400f5540
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x130
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp r15d, 3
jne 0x140015336
lea rbx, [rsp + 0xc0]
mov qword [rbx + 0x50], r12
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.MapImageToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x1a
call fcn.1400ddbb0
xor edi, edi
mov rcx, rbx
mov rdx, rbp
xor r8d, r8d
call fcn.1400f4d70
mov rcx, rsi
call fcn.1400f5e20
test al, al
je 0x1400152ae
mov rcx, qword [rsi]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp qword [rsi + 0x40], rax
je 0x140015256
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140015351
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14001524a
mov qword [rsi + 0x40], rbx
call fcn.1400d3890
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14001536c
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x1400152ae
lea rdx, [0x1401f2328]
lea rcx, [rsp + 0x40]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.1400153b0
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0xc0]
call fcn.1400f5540
jmp 0x14001514e
call fcn.1400d3890
mov rcx, qword [rsi + 0x40]
call fcn.140101910
mov qword [rsi + 0x40], 0
jmp 0x1400150b3
xor eax, eax
lea rdi, [rsp + 0xc0]
mov qword [rdi], rax
lea r9, [rsp + 0x40]
mov qword [r9], rax
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r8, rdi
call fcn.140015540
mov rdi, qword [rdi]
test rdi, rdi
js 0x14001532f
mov rcx, qword [r14 + 8]
movsxd rax, dword [rsp + 0x3c]
add rax, rcx
js 0x14001532f
mov r8, rdi
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x140015118
xor edi, edi
jmp 0x14001514e
cmp r15d, 2
jne 0x140015373
mov rdi, qword [r14 + 8]
mov r9, rdi
shr r9, 0x20
mov ebp, 4
jmp 0x140015076
call fcn.1400d3890
mov rcx, qword [rsi + 0x40]
call fcn.140101910
mov qword [rsi + 0x40], 0
jmp 0x140015235
xor edi, edi
jmp 0x1400152ae
cmp r15d, 1
jne 0x140015383
mov ebp, 4
jmp 0x140015073
xor ebp, ebp
jmp 0x140015073