Function at 0x140116240
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x120
movaps xmmword [rsp + 0x110], xmm6
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x108], rax
test r8, r8
je 0x140116437
mov rdi, r8
lea rbp, [r8 + 0xffff]
and rbp, 0xffffffffffff0000
cmp rbp, r8
jb 0x140116437
mov rax, rbp
shr rax, 0x1f
jne 0x140116437
mov r12d, edx
test edx, edx
je 0x140116606
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x14029de10]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
lea rcx, [rsp + 0xc0]
mov edx, 8
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x140116437
lea rcx, [rsp + 0x90]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140116437
lea r14, [rsp + 0x90]
lea r8, [rsp + 0xc0]
mov rcx, r14
mov edx, 1
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140116437
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
call fcn.140114c90
cmp eax, 5
jg 0x14011646c
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
lea rcx, [rsp + 0xe0]
mov edx, 0x20
call fcn.140116610
movaps xmm0, xmmword [rsp + 0xf0]
mov r8, qword [rsp + 0xe0]
mov r9, qword [rsp + 0xe8]
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.CrSharedMem__016llx_016llx_016llx_016llx
lea rbx, [rsp + 0x48]
mov rcx, rbx
call fcn.140102780
movzx eax, byte [rsp + 0x5f]
test al, al
cmovs rbx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rbx
cmovs rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0x60]
call fcn.1401036b0
movups xmm0, xmmword [rsp + 0xc8]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x80], rax
mov byte [rsp + 0xdf], 0
mov word [rsp + 0xc8], 0
cmp byte [rsp + 0x5f], 0
jns 0x140116423
mov rcx, qword [rsp + 0x48]
call fcn.140255d7c
movzx edx, byte [rsp + 0x87]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
jmp 0x140116472
mov rcx, rsi
call fcn.1400fa310
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140257200
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor eax, eax
xor ecx, ecx
xor edx, edx
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xf0], r15
mov dword [rsp + 0xe0], 0x18
test dl, dl
movzx edx, dl
cmovs rdx, rcx
mov qword [rsp + 0xe8], r14
lea rcx, [rsp + 0x70]
cmovs rcx, rax
mov dword [rsp + 0xf0], 0
test rdx, rdx
cmove rcx, rdx
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0xe0]
mov rcx, 0xffffffffffffffff
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x140116569
mov rbx, rax
mov qword [rsp + 0xc8], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 7
lea r14, [rsp + 0xc8]
mov rcx, rax
mov rdx, rbx
mov r8, rax
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r15d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
je 0x140116569
mov rbp, qword [rsp + 0xc8]
test rbp, rbp
je 0x140116569
mov qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rbp + 1]
cmp rax, 2
jae 0x140116573
xor ebp, ebp
jmp 0x14011657d
mov rcx, rsi
call fcn.1400fa310
jmp 0x1401165e9
mov qword [rsp + 0x48], rbp
call fcn.1400f5de0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14011659c
mov rcx, rsi
call fcn.1400fa310
jmp 0x1401165d1
mov rcx, r14
call fcn.140106b60
lea rbx, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140028076
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov rdx, rbx
mov r8d, r12d
mov r9, rdi
call fcn.140115f40
mov rbp, qword [rsp + 0x48]
inc rbp
cmp rbp, 2
jb 0x1401165e9
call fcn.1400f5de0
mov rcx, qword [rsp + 0x48]
call fcn.140112bc0
cmp byte [rsp + 0x87], 0
jns 0x14011643f
mov rcx, qword [rsp + 0x70]
call fcn.140255d7c
jmp 0x14011643f
int3