Function at 0x140005c3c
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x268]
sub rsp, 0x350
mov rax, qword [0x140021bb8]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor r12d, r12d
mov rsi, rcx
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
test rcx, rcx
je 0x14000621f
cmp word [rsi], 0x20
je 0x140005c93
cmp word [rsi], 9
jne 0x140005c99
add rsi, 2
jmp 0x140005c87
cmp word [rsi], r12w
je 0x14000621f
cmp qword [0x1400225f8], r12
je 0x140005cdc
lea rcx, str.An_input_thread_has_already_been_started_so_.remote_n
call fcn.140002b34
lea rcx, str.cannot_be_used.__Either_start_the_debugger_with_n
call fcn.140002b34
lea rcx, str.remote.exe__such_as_remote__s__kd__pipe__or_use_n
call fcn.140002b34
lea rcx, str.debugger_remoting_with__server__client_.server._n
jmp 0x140006226
cmp dword [0x140028464], r12d
je 0x140005cf6
lea rcx, str..remote:_cant_.remote_twice._n
call fcn.140002b34
jmp 0x1400061fc
cmp dword [0x140028410], r12d
je 0x140005d08
lea rcx, str..remote:_cant_.remote_when_using__d.__Remote_the_kernel_debugger_instead._n
jmp 0x140005cec
cmp word [rsi], 0x2f
mov rdx, rsi
jne 0x140005d22
lea rcx, str..remote:_invlaid_pipename___s___should_not_start_with__._n
call fcn.140002b34
jmp 0x1400061fc
lea rcx, str.Starting_remote_with_pipename__s_n
call fcn.140002b34
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rdi
mov dword [rsp + 0x20], r12d
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x140005d7f
lea rcx, str..remote:_Unable_to_duplicate_process_handle._n
jmp 0x140005cec
mov ecx, 0xfffffff4
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
mov r14, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rdx, qword [0x140026628]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x140005dd9
lea rcx, str..remote:_Unable_to_duplicate_input_handle._n
jmp 0x140005cec
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rdx, qword [0x140026620]
lea r9, [rbp - 0x80]
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x140005e24
lea rcx, str..remote:_Unable_to_duplicate_output_handle._n
jmp 0x140005cec
mov edi, 0x40000000
mov dword [rbp - 0x70], 0x18
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea r8, [rbp - 0x70]
mov qword [rbp - 0x68], r12
lea rdx, [rsp + 0x68]
mov dword [rbp - 0x60], 1
lea rcx, [rsp + 0x58]
call fcn.140005b18
test eax, eax
jne 0x140005e7d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str..remote:_Unable_to_create_stdin_pipe__error__d._n
call fcn.140002b34
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1400061fc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x30], 3
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov r8, rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x140005ed6
lea rcx, str..remote:_Unable_to_duplicate_stdout_handle._n
call fcn.140002b34
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
jmp 0x140005e72
mov r9d, edi
mov dword [rsp + 0x20], r12d
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140005b18
test eax, eax
jne 0x140005f21
lea rcx, str..remote:_Unable_to_create_stdout_pipe._n
call fcn.140002b34
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
jmp 0x140005e72
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x30], 3
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov r8, rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x140005f93
lea rcx, str..remote:_Unable_to_duplicate_stdout_handle._n
call fcn.140002b34
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
jmp 0x140005e72
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x60]
lea r9, [rbp - 0x78]
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov r8, rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x14000600f
lea rcx, str..remote:_Unable_to_duplicate_stdout_handle._n
call fcn.140002b34
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
jmp 0x140005e72
mov rbx, qword [rsp + 0x78]
lea rax, [0x140014b58]
mov rdi, qword [rsp + 0x68]
lea r8, str.remote.exe__a__d__d__d__s__s
mov r9d, dword [rsp + 0x50]
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x38], rsi
mov edx, 0x104
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.14000b6a8
xor edx, edx
lea rcx, [rbp - 0x40]
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x18], rax
mov eax, 5
mov word [rbp], ax
mov dword [rbp - 0x40], 0x68
mov dword [rbp - 4], 0x100
mov qword [rbp + 0x20], r14
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetPriorityClass]
lea rcx, [rbp - 0x58]
mov r14d, 1
mov qword [rsp + 0x48], rcx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], r12
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
jne 0x140006145
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jne 0x1400060f0
lea rcx, str.remote.exe_not_found_n
call fcn.140002b34
jmp 0x140006109
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp + 0x30]
lea rcx, str.CreateProcess__s__failed__error__d._n
call fcn.140002b34
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
jmp 0x140005e72
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, qword [0x140026628]
cmp qword [0x140026618], rax
mov rdx, qword [rsp + 0x58]
jne 0x140006199
mov qword [0x140026618], rdx
mov byte [0x14002260b], r12b
mov ecx, 0xfffffff6
mov qword [0x140026628], rdx
mov byte [0x14002260d], r12b
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetStdHandle]
mov rdx, qword [rsp + 0x60]
mov ecx, 0xfffffff5
mov qword [0x140026620], rdx
mov byte [0x14002260c], r12b
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetStdHandle]
mov rdx, qword [rbp - 0x78]
mov ecx, 0xfffffff4
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetStdHandle]
mov r8, rsi
mov dword [0x140028464], r14d
lea rdx, [0x140014b58]
lea rcx, str._s:_now_running_under_remote.exe_pipename__s_n
call fcn.140002b34
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140006211
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp qword [rbp - 0x80], r12
je 0x14000622b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14000622b
lea rcx, str.Usage:_.remote_pipename_n
call fcn.140002b34
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14000e6b0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret