Function at 0x140153530
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov ebp, r8d
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x14029de10]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.MapFileRegionToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3a
call fcn.1400f5dc0
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.140153ea0
mov rcx, rsi
call fcn.14010b840
test al, al
je 0x1401536ac
cmp ebp, 3
ja case.default.0x1401535ed
mov eax, ebp
lea rcx, [0x140153838]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov r14d, 2
jmp 0x140153624
mov rdi, qword [r15 + 8]
mov rbp, rdi
shr rbp, 0x20
mov r14d, 4
jmp 0x140153626
mov rcx, rsi
call fcn.140153340
mov edi, eax
jmp 0x1401536ac
mov r14d, 4
jmp 0x140153624
xor r14d, r14d
xor ebp, ebp
mov rcx, rsi
call fcn.1400588a0
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, r14d
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x1401536a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jb 0x140153680
call fcn.1400f5de0
mov rcx, qword [rsi + 0x40]
call fcn.140112bc0
mov qword [rsi + 0x40], 0
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140153695
mov qword [rsi + 0x40], rdi
call fcn.1400f5de0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
inc rdi
cmp rdi, 2
jae 0x1401536d8
xor edi, edi
lea rcx, [rsp + 0x60]
call fcn.1401541a0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140257200
mov eax, edi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsp + 0x3c], 0
lea rdx, [0x1402b9f48]
mov rcx, r15
call fcn.1401538d0
test al, al
je 0x140153710
mov rcx, rsi
call fcn.14010bd90
xor edi, edi
test rax, rax
jle 0x1401536ac
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
jmp 0x140153791
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov rcx, qword [r15]
mov rdx, qword [r15 + 8]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x30]
call fcn.140153a90
mov rcx, qword [r15 + 8]
movsxd rax, dword [rsp + 0x3c]
mov rdx, rax
sar rdx, 0x3f
add rax, rcx
adc rdx, 0
mov ebp, edx
and ebp, 1
neg rbp
xor rdx, rbp
setne bl
mov rdi, qword [rsp + 0x40]
test rdi, rdi
js 0x1401536aa
test bl, bl
jne 0x1401536aa
test rbp, rbp
js 0x1401536aa
mov r8, rdi
shr r8, 0x20
mov qword [rsi + 0x38], rcx
and r14d, 2
add r14d, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, r14d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rbp, qword [0x1403102a0]
mov rax, rbp
and rax, rcx
mov rdx, qword [0x140310288]
cmp rax, rdx
jne 0x1401537e1
call fcn.1400fa610
mov rbp, qword [0x1403102a0]
mov rdx, qword [0x140310288]
and rbp, rdi
cmp rbp, rdx
jne 0x1401537f1
mov rcx, rdi
call fcn.1400fa4f0
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x1401536aa
movsxd rbx, dword [rsp + 0x3c]
mov rax, qword [0x1403102a0]
and rax, rdi
cmp rax, qword [0x140310288]
jne 0x140153825
mov rcx, rdi
mov rdx, rbx
call fcn.1400fa920
test al, al
je 0x140153834
add rdi, rbx
mov qword [rsi + 0x30], rdi
mov dil, 1
jmp 0x1401536ac
int3