Function at 0x14018c868
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x830
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov rax, qword [0x140310170]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov dword [rsp + 0x100], Ordinal_30
mov dword [rsp + 0x110], 1
mov qword [rsp + 0x108], 0
mov r9d, 0x400
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14018c9b4
lea rdx, [0x14024d671]
lea rcx, [rsp + 0x1f8]
call fcn.14004c200
nop
lea rdx, [0x14024d673]
lea rcx, [rsp + 0x1d8]
call fcn.14004c200
nop
lea rdx, str.ierd_tgp::net_daemon::LspInstaller::CaptureConsoleOutput_:_pipe_create_failed_
lea rcx, [rsp + 0x1b8]
call fcn.14004c200
nop
call fcn.1401ba4e4
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x1f8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1d8]
mov r8d, 5
lea rdx, [rsp + 0x1b8]
mov rcx, qword [rsp + 0xa0]
call fcn.1401b9f0c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1b8]
call fcn.14004c760
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1d8]
call fcn.14004c760
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f8]
call fcn.14004c760
nop
xor al, al
jmp 0x14018cd55
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x130]
call fcn.14020fde0
mov dword [rsp + 0x130], WSAGetLastError
mov dword [rsp + 0x16c], 0x101
xor eax, eax
mov word [rsp + 0x170], ax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x188], rax
xor eax, eax
mov word [rsp + 0x420], ax
lea rax, [rsp + 0x422]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x850]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
add rax, 0x10
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x850]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 8
jb 0x14018caa3
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
jmp 0x14018caad
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xc8]
inc rax
mov r9, rax
mov r8, qword [rsp + 0xd0]
mov edx, 0x200
lea rcx, [rsp + 0x420]
call fcn.140216658
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x848]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x10
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
cmp qword [rsp + 0xf0], 0
jbe 0x14018cb9c
mov rax, qword [rsp + 0x848]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 8
jb 0x14018cb85
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
jmp 0x14018cb8f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x420]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14018cc42
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], eax
mov r9d, dword [rsp + 0x5c]
lea r8, str.LspInstaller::CaptureConsoleOutput:CreateProcess_failed:err_d
lea rdx, [0x14024d676]
mov ecx, 5
call fcn.140197064
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14018cd55
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x54], 0
mov r8d, 0x200
xor edx, edx
lea rcx, [rsp + 0x220]
call fcn.14020fde0
mov dword [rsp + 0x50], 0
mov eax, 0x200
sub eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x50]
lea rcx, [rsp + rcx + 0x220]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14018ccd7
cmp dword [rsp + 0x54], 0
jne 0x14018ccb9
jmp 0x14018ccd7
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x200
jb 0x14018ccd5
jmp 0x14018ccd7
jmp 0x14018cc75
mov eax, 1
imul rax, rax, 0x1ff
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0x200
jae 0x14018ccfb
jmp 0x14018cd00
call fcn.1401ef60c
mov rax, qword [rsp + 0x98]
mov byte [rsp + rax + 0x220], 0
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x220]
lea r8, str.LspInstaller::CaptureConsoleOutput:_output_s
lea rdx, [0x14024d679]
mov ecx, 5
call fcn.140197064
lea rdx, [rsp + 0x220]
mov rcx, qword [rsp + 0x858]
call fcn.14004c7f0
mov al, 1
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1401ef4e0
add rsp, 0x830
pop rdi
ret