Function at 0x140015830
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r14, rdx
mov rsi, rcx
mov qword [r11 - 0x28], rcx
mov byte [0x1400337cb], 0
lea rcx, [0x140023b90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
movzx ecx, byte [0x1400337cb]
mov edx, 1
test eax, eax
cmovne ecx, edx
mov byte [0x1400337cb], cl
lea rdx, str..pipe_
lea rcx, [rsp + 0x40]
call fcn.140008690
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400179f0
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000ab40
mov rdx, rax
mov rcx, rsi
call fcn.140007520
mov rax, qword [rsp + 0x80]
cmp rax, 0x10
jb 0x14001592e
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, 0x1000
jb 0x140015929
test cl, 0x1f
je 0x1400158f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140015909
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140015919
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140015926
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14001f3e4
mov qword [rsp + 0x80], 0xf
xor ebp, ebp
mov qword [rsp + 0x78], rbp
mov byte [rsp + 0x68], bpl
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x1400159a2
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x14001599d
test cl, 0x1f
je 0x14001596d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001597d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001598d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14001599a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14001f3e4
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140017b00
cmp qword [rax + 0x18], 8
jb 0x1400159b9
mov rax, qword [rax]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14], rax
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400159f9
inc r8
mov rdx, qword [rsp + 0x48]
call fcn.1400099b0
cmp byte [0x1400337cb], 1
jne 0x140015adb
mov r8d, 2
lea rdx, str.C:windowsClientNamedPipe.txt
lea rcx, [0x140033b08]
call fcn.140009590
lea rbx, [0x140033b00]
xor r8d, r8d
test rax, rax
mov rax, qword [0x140033b00]
movsxd rcx, dword [rax + 4]
jne 0x140015a48
add rcx, rbx
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x140015a53
add rcx, rbx
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140017b00
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x140015a6d
mov rdi, qword [rax]
lea rdx, str.PipeName_is:
mov rcx, rbx
call fcn.14000a670
mov rcx, rax
mov rdx, rdi
call fcn.14000a8d0
mov rcx, rax
lea rdx, [0x14000aab0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140015ab0
inc r8
mov rdx, qword [rsp + 0x48]
call fcn.1400099b0
lea rdx, str.Pipe_Handle_is:
mov rcx, rbx
call fcn.14000a670
mov rcx, rax
mov rdx, qword [r14]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x14000aab0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
cmp qword [r14], 0xffffffffffffffff
jne 0x140015ae4
mov qword [r14], rbp
mov rcx, rsi
call fcn.140007490
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14001f400
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret