Function at 0x180017c50
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1090]
mov eax, 0x1190
call fcn.18001b470
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x180057090]
xor rax, rsp
mov qword [rbp + 0x1080], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rbp - 0x80], r14d
cmp qword [rdx + 0x10], r14
jne 0x180017cbe
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], send
mov byte [rcx], r14b
xor r8d, r8d
lea rdx, [0x18004c003]
call fcn.180001d00
jmp 0x180018091
mov dword [rbp - 0x78], 0x18
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], r14
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x180017d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_creating_pip:__d
lea rcx, [rbp + 0x80]
call fcn.180018660
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], send
mov byte [rbx], r14b
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x180017d21
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.180001d00
jmp 0x180018091
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x180017dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetHandleInformation_failed:__d
lea rcx, [rbp + 0x80]
call fcn.180018660
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], send
mov byte [rbx], r14b
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x180017d90
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.180001d00
jmp 0x180018091
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x50]
call fcn.18001dbc0
mov dword [rbp - 0x50], 0x68
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], rax
or dword [rbp - 0x14], 0x100
cmp qword [rdi + 0x18], 8
jb 0x180017df2
mov rdi, qword [rdi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x180017e9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateProcess_failed:__d
lea rcx, [rbp + 0x80]
call fcn.180018660
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], send
mov byte [rbx], r14b
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x180017e80
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.180001d00
jmp 0x180018091
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov dword [rsp + 0x54], eax
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], send
mov byte [rbp + 0x40], al
mov ecx, r14d
mov dword [rsp + 0x50], ecx
mov edi, r14d
test eax, eax
je 0x180017ecb
test ecx, ecx
jne 0x180017ed6
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180017f54
cmp dword [rsp + 0x50], 0
jbe 0x180017f54
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180017f6d
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x180017f6d
mov edi, r14d
mov r8d, eax
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x40]
call fcn.1800094a0
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
jmp 0x180017ec3
mov ecx, r14d
mov dword [rsp + 0x50], ecx
mov eax, r14d
mov dword [rsp + 0x54], eax
inc edi
cmp edi, 0x14
jl 0x180017ec3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001802d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], send
mov byte [rbp + 0x60], 0
mov r8d, 9
lea rdx, str.Time_out_
lea rcx, [rbp + 0x60]
call fcn.180001d00
nop
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.1800153d0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1800155f0
nop
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x180018011
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.18000a540
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
lea rcx, [rbp + 0x60]
call fcn.180001c80
jmp 0x180018088
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.1800153d0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1800155f0
nop
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x180018077
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.18000a540
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
lea rcx, [rbp + 0x40]
call fcn.180001c80
mov rax, rbx
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.18001a580
add rsp, 0x1190
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret