Function at 0x1400218c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movaps xmm6, xmmword [0x14029ca60]
lea r15, [rsp + 0x30]
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.memory_mapped_file_win.cc
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9d, 0x3a
call fcn.140158eb0
mov rcx, r15
xor edx, edx
xor r8d, r8d
call fcn.1401a26e0
test byte [0x1402d90d0], 0x19
jne 0x140021d44
mov rcx, qword [rsi]
xor r14d, r14d
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140021a96
test ebx, ebx
jne 0x140021ad2
mov r8d, 2
mov ebx, 4
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x1400219d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140021b72
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400219c8
mov qword [rsi + 0x40], r14
call fcn.14017a3f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jb 0x140021acd
mov r12, qword [rdi]
mov rax, qword [rdi + 8]
or rax, r12
jne 0x140021b08
mov rcx, rsi
call fcn.140021db0
xor r14d, r14d
test rax, rax
jle 0x140021a96
xor r15d, r15d
xor r8d, r8d
xor edx, edx
mov qword [rsi + 0x38], rax
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rdx
mov edx, ebx
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
je 0x140021d5d
mov rax, qword [0x1402cbde0]
and rax, rdi
cmp rax, qword [0x1402cbdc8]
je 0x140021d6a
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x140021acd
add r15, rdi
mov rax, qword [0x1402cbde0]
mov rdx, rdi
and rdx, rax
mov rcx, qword [0x1402cbdc8]
cmp rdx, rcx
je 0x140021cfe
and rax, r15
cmp rax, rcx
je 0x140021d67
mov qword [rsi + 0x30], r15
mov r14b, 1
lea rcx, [rsp + 0x30]
call fcn.140181760
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1401ce5b0
mov eax, r14d
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140021a96
dec ebx
cmp ebx, 3
ja case.default.0x140021aeb
lea rax, [0x1402a90ec]
movsxd rdx, dword [rax + rbx*4]
add rdx, rax
jmp rdx
mov r14, qword [rdi + 8]
mov r9, r14
shr r9, 0x20
mov r8d, 4
mov ebx, 2
jmp 0x14002197b
call fcn.1401738b0
lea r15, [rax - 1]
test r15, 0xffffffff80000000
jne 0x140021d97
mov rcx, rax
and r15, r12
neg rcx
mov rax, qword [rdi + 8]
xor r9d, r9d
mov rdx, rax
add rdx, r15
setb r9b
mov r8, r9
neg r8
xor r9, r8
setne r9b
xor r14d, r14d
and rcx, r12
js 0x140021a96
test r9b, r9b
jne 0x140021a96
test r8, r8
js 0x140021a96
mov r8, rcx
shr r8, 0x20
mov r14d, ecx
jmp 0x140021a0d
call fcn.14017a3f0
mov rcx, qword [rsi + 0x40]
call fcn.14017b060
mov qword [rsi + 0x40], 0
jmp 0x1400219b3
lea rbx, [rsp + 0x90]
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.memory_mapped_file_win.cc
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov r9d, 0x1b
call fcn.140158eb0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.1401a26e0
test byte [0x1402d90d0], 0x19
jne 0x140021d14
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x140021c01
xor r14d, r14d
lea rcx, [rsp + 0x90]
call fcn.140181760
jmp 0x140021a96
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 0x140021c66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140021ce3
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140021c5a
mov qword [rsi + 0x40], rdi
call fcn.14017a3f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140021bec
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, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
je 0x140021d3a
mov rax, qword [0x1402cbde0]
and rax, rdi
cmp rax, qword [0x1402cbdc8]
je 0x140021d30
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x140021bec
movsxd rax, dword [rdi + 0x3c]
mov eax, dword [rdi + rax + 0x50]
mov qword [rsi + 0x38], rax
mov r14b, 1
jmp 0x140021bef
call fcn.14017a3f0
mov rcx, qword [rsi + 0x40]
call fcn.14017b060
mov qword [rsi + 0x40], 0
jmp 0x140021c45
mov r8d, 1
mov rcx, rdi
mov rdx, r15
call fcn.140037b60
jmp 0x140021a8f
lea rdx, [rsp + 0xd0]
mov qword [rdx], rdi
lea rcx, str.ScopedBlockingCall
call fcn.1402380c0
jmp 0x140021bdf
mov rcx, rdi
call fcn.1401508a0
jmp 0x140021cc2
call fcn.140150dc0
jmp 0x140021caf
lea rdx, [rsp + 0x70]
mov qword [rdx], r14
lea rcx, str.ScopedBlockingCall
call fcn.1402380c0
jmp 0x140021951
call fcn.140150dc0
jmp 0x140021a43
int3
mov rcx, rdi
call fcn.1401508a0
jmp 0x140021a5a
mov r8d, 4
mov ebx, 2
jmp 0x140021978
mov r8d, 8
mov ebx, 1
jmp 0x140021978
int3
mov ebx, 0xaaaaaaaa
xor r8d, r8d
jmp 0x140021978