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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x50]
mov qword [r15 + 0x40], r13
movaps xmm6, xmmword [0x1402724c0]
movaps xmmword [r15 + 0x30], xmm6
movaps xmmword [r15 + 0x20], xmm6
movaps xmmword [r15 + 0x10], xmm6
movaps xmmword [r15], xmm6
lea rdx, str.MapFileRegionToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r12, [rsp + 0xa0]
mov rcx, r12
mov r9d, 0x3a
call fcn.1400ed710
xor ebx, ebx
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.14011a620
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x14002d28c
lea rcx, [rsp + 0x50]
call fcn.14011a160
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1401874c0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test edi, edi
jne 0x14002d3be
mov edi, 2
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
xor edx, edx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp qword [rsi + 0x40], rax
je 0x14002d2f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14002d5a3
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14002d2eb
mov qword [rsi + 0x40], rbx
call fcn.1400e8860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
inc rbx
cmp rbx, 2
jb 0x14002d432
mov r12, qword [r14]
mov rax, qword [r14 + 8]
or rax, r12
jne 0x14002d53b
mov rcx, rsi
call fcn.14002d640
xor ebx, ebx
test rax, rax
jle 0x14002d254
xor r15d, r15d
xor r8d, r8d
xor edx, edx
movabs r14, 0xfffffffc00000000
mov qword [rsi + 0x38], rax
and edi, 2
add edi, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rdx
mov edx, edi
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rax, rcx
and rax, r14
cmp rax, qword [0x1402aaec8]
je 0x14002d5d9
mov r12, rdi
and r12, r14
cmp r12, qword [0x1402aaec8]
je 0x14002d5e3
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x14002d432
mov rbx, rdi
add rbx, r15
mov rax, qword [0x1402aaec8]
cmp r12, rax
je 0x14002d5f0
and r14, rbx
cmp r14, rax
je 0x14002d606
mov qword [rsi + 0x30], rbx
mov bl, 1
jmp 0x14002d254
cmp edi, 3
jne 0x14002d51d
lea rdi, [rsp + 0xa0]
mov qword [rdi + 0x40], r13
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.1400ed710
xor ebx, ebx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.14011a620
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x14002d439
lea rcx, [rsp + 0xa0]
call fcn.14011a160
jmp 0x14002d254
xor ebx, ebx
jmp 0x14002d254
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 rdi, rax
cmp qword [rsi + 0x40], rax
je 0x14002d49e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14002d5be
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14002d492
mov qword [rsi + 0x40], rdi
call fcn.1400e8860
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002d609
movabs rbx, 0xfffffffc00000000
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rax, rcx
and rax, rbx
cmp rax, qword [0x1402aaec8]
je 0x14002d610
and rbx, rdi
cmp rbx, qword [0x1402aaec8]
je 0x14002d61a
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x14002d609
movsxd rax, dword [rdi + 0x3c]
mov eax, dword [rdi + rax + 0x50]
mov qword [rsi + 0x38], rax
mov bl, 1
jmp 0x14002d420
cmp edi, 2
jne 0x14002d627
mov rbx, qword [r14 + 8]
mov r9, rbx
shr r9, 0x20
mov edi, 4
jmp 0x14002d29c
call fcn.1401314e0
lea r15, [rax - 1]
test r15, 0xffffffff80000000
jne 0x14002d636
mov rcx, rax
and r15, r12
neg rcx
mov rax, qword [r14 + 8]
xor r9d, r9d
mov rdx, rax
add rdx, r15
setb r9b
mov r8, r9
neg r8
xor r9, r8
setne r9b
xor ebx, ebx
and rcx, r12
js 0x14002d254
test r9b, r9b
jne 0x14002d254
test r8, r8
js 0x14002d254
mov r8, rcx
shr r8, 0x20
mov ebx, ecx
jmp 0x14002d32f
call fcn.1400e8860
mov rcx, qword [rsi + 0x40]
call fcn.140165880
mov qword [rsi + 0x40], 0
jmp 0x14002d2d6
call fcn.1400e8860
mov rcx, qword [rsi + 0x40]
call fcn.140165880
mov qword [rsi + 0x40], 0
jmp 0x14002d47d
call fcn.1400de100
jmp 0x14002d371
mov rcx, rdi
call fcn.1400da330
jmp 0x14002d384
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140051510
jmp 0x14002d3b3
int3
xor ebx, ebx
jmp 0x14002d420
call fcn.1400de100
jmp 0x14002d4ed
mov rcx, rdi
call fcn.1400da330
jmp 0x14002d4fd
cmp edi, 1
jne 0x14002d639
mov edi, 4
jmp 0x14002d299
int3
xor edi, edi
jmp 0x14002d299