Function at 0x140083480
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], 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.140160630
xor edi, edi
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
mov rcx, rsi
call fcn.14016d620
test al, al
je 0x140083657
test r15d, r15d
jne 0x140083683
mov ebp, 2
xor ebx, ebx
mov rcx, rsi
call fcn.140049f90
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebp
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp qword [rsi + 0x40], rax
je 0x140083592
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140083699
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140083586
mov qword [rsi + 0x40], rbx
call fcn.140160650
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
inc rbx
cmp rbx, 2
jb 0x140083722
mov dword [rsp + 0x3c], 0
lea rdx, [0x140338680]
mov rcx, r14
call fcn.140074fb0
test al, al
je 0x1400836b4
mov rcx, rsi
call fcn.140082980
xor edi, edi
test rax, rax
jle 0x140083657
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 rdi, rax
mov rcx, qword [rsi + 0x30]
mov rbp, qword [0x1403a3660]
mov rax, rbp
and rax, rcx
mov rdx, qword [0x1403a3648]
cmp rax, rdx
je 0x140083744
and rbp, rdi
cmp rbp, rdx
je 0x14008375c
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x140083722
movsxd rbx, dword [rsp + 0x3c]
mov rax, qword [0x1403a3660]
and rax, rdi
cmp rax, qword [0x1403a3648]
je 0x140083769
add rdi, rbx
mov qword [rsi + 0x30], rdi
mov dil, 1
lea rcx, [rsp + 0x60]
call fcn.14016ac90
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, edi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp r15d, 3
jne 0x140083729
mov rcx, rsi
call fcn.140083290
mov edi, eax
jmp 0x140083657
call fcn.140160650
mov rcx, qword [rsi + 0x40]
call fcn.14016ddf0
mov qword [rsi + 0x40], 0
jmp 0x140083571
xor ebx, ebx
lea r15, [rsp + 0x40]
mov qword [r15], rbx
lea r9, [rsp + 0x30]
mov qword [r9], rbx
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x20], rdi
mov r8, r15
call fcn.140075170
mov r9, qword [r14 + 8]
movsxd rax, dword [rdi]
mov rdx, rax
sar rdx, 0x3f
add rax, r9
adc rdx, rbx
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
setne bl
mov rdi, qword [r15]
test rdi, rdi
js 0x140083722
test bl, bl
jne 0x140083722
test rcx, rcx
js 0x140083722
mov r8, rdi
shr r8, 0x20
mov qword [rsi + 0x38], r9
jmp 0x1400835da
xor edi, edi
jmp 0x140083657
cmp r15d, 2
jne 0x14008377f
mov rdi, qword [r14 + 8]
mov rbx, rdi
shr rbx, 0x20
mov ebp, 4
jmp 0x140083529
call fcn.1401617f0
mov rbp, qword [0x1403a3660]
mov rdx, qword [0x1403a3648]
jmp 0x140083618
mov rcx, rdi
call fcn.1401616b0
jmp 0x140083624
mov rcx, rdi
mov rdx, rbx
call fcn.140161b20
test al, al
jne 0x14008364d
int3
cmp r15d, 1
jne 0x14008378f
mov ebp, 4
jmp 0x140083527
xor ebp, ebp
jmp 0x140083527