Function at 0x140048a20
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

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, 0x1d0
mov eax, 8
imul rax, rax, 1
mov qword [rsp + rax + 0x78], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 0
mov qword [rsp + rax + 0x78], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 1
mov qword [rsp + rax + 0x88], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 0
mov qword [rsp + rax + 0x88], 0xffffffffffffffff
mov qword [rsp + 0xa8], 0xffffffffffffffff
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
xor eax, eax
test eax, eax
jne 0x140048a96
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
xor eax, eax
test eax, eax
jne 0x140048ac0
call fcn.1400dac30
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140048b01
jmp 0x1400491b5
mov rdx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x58]
call fcn.1400dac50
test eax, eax
je 0x140048b1c
jmp 0x1400491b5
mov edx, 0x2e
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call sub.VCRUNTIME140.dll_strrchr
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140048b80
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x98], 0xffffffffffffffff
inc qword [rsp + 0x98]
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x98]
cmp byte [rax + rcx], 0
jne 0x140048b54
mov rax, qword [rsp + 0x98]
cmp rax, 4
jbe 0x140048b8e
lea rax, str..exe
mov qword [rsp + 0x70], rax
jmp 0x140048b97
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x54], 0x104
mov eax, dword [rsp + 0x54]
mov edx, eax
lea rcx, [rsp + 0xf0]
call fcn.140036ad0
test rax, rax
jne 0x140048bbc
jmp 0x1400491b5
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0xc8], eax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x70]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathA]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x140048c13
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x54], eax
ja 0x140048b9f
cmp dword [rsp + 0x54], 0
jne 0x140048c1f
jmp 0x1400491b5
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x50], 0
jmp 0x140048c3b
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
cmp qword [rcx + rax*8], 0
je 0x140048cb6
cmp dword [rsp + 0x50], 0
jne 0x140048c59
jmp 0x140048c31
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x110], rax
mov qword [rsp + 0xa0], 0xffffffffffffffff
inc qword [rsp + 0xa0]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xa0]
cmp byte [rax + rcx], 0
jne 0x140048c7f
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x68]
lea eax, [rcx + rax + 1]
mov dword [rsp + 0x68], eax
jmp 0x140048c31
mov eax, dword [rsp + 0x68]
inc eax
cdqe
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140036ad0
test rax, rax
jne 0x140048cd8
jmp 0x1400491b5
mov dword [rsp + 0x50], 0
jmp 0x140048cec
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
cmp qword [rcx + rax*8], 0
je 0x140048e1a
cmp dword [rsp + 0x50], 0
jne 0x140048de7
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov edx, 0x2f
mov rcx, qword [rcx + rax*8]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140048d62
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov edx, 0x5c
mov rcx, qword [rcx + rax*8]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140048d71
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
jmp 0x140048d88
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x60], rax
mov edx, 0x20
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x140048db9
mov dl, 0x22
lea rcx, [rsp + 0xb0]
call fcn.140036250
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xb0]
call fcn.140036d90
cmp qword [rsp + 0xd0], 0
je 0x140048de5
mov dl, 0x22
lea rcx, [rsp + 0xb0]
call fcn.140036250
jmp 0x140048e15
mov dl, 0x20
lea rcx, [rsp + 0xb0]
call fcn.140036250
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0xb0]
call fcn.140036d90
jmp 0x140048ce2
cmp dword [rsp + 0x50], 1
jg 0x140048e84
mov edx, 0x20
mov rcx, qword [rsp + 0xd8]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
je 0x140048e55
mov dl, 0x22
lea rcx, [rsp + 0xb0]
call fcn.140036250
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0xb0]
call fcn.140036d90
cmp qword [rsp + 0xe0], 0
je 0x140048e84
mov dl, 0x22
lea rcx, [rsp + 0xb0]
call fcn.140036250
mov dword [rsp + 0x128], 0x18
mov dword [rsp + 0x138], 1
mov qword [rsp + 0x130], 0
mov eax, 8
imul rax, rax, 1
lea rax, [rsp + rax + 0x78]
mov ecx, 8
imul rcx, rcx, 0
lea rcx, [rsp + rcx + 0x78]
xor r9d, r9d
lea r8, [rsp + 0x128]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140048edf
jmp 0x1400491b5
mov eax, 8
imul rax, rax, 0
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140048f04
jmp 0x1400491b5
mov eax, 8
imul rax, rax, 1
lea rax, [rsp + rax + 0x88]
mov ecx, 8
imul rcx, rcx, 0
lea rcx, [rsp + rcx + 0x88]
xor r9d, r9d
lea r8, [rsp + 0x128]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140048f43
jmp 0x1400491b5
mov eax, 8
imul rax, rax, 1
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140048f6b
jmp 0x1400491b5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x118], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x120], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov rcx, qword [rsp + 0x118]
mov r8, rcx
mov rcx, qword [rsp + 0x120]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140048fda
jmp 0x1400491b5
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x160], 0x68
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x1c0], rax
mov eax, 8
imul rax, rax, 1
mov rax, qword [rsp + rax + 0x78]
mov qword [rsp + 0x1b8], rax
mov eax, 8
imul rax, rax, 0
mov rax, qword [rsp + rax + 0x88]
mov qword [rsp + 0x1b0], rax
xor eax, eax
mov word [rsp + 0x1a0], ax
mov dword [rsp + 0x19c], 0x101
lea rax, [rsp + 0x140]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x160]
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
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400490ae
jmp 0x1400491b5
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x140]
call fcn.140049340
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 0
xor edx, edx
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov rcx, qword [rsp + 0x1f0]
mov dword [rcx], eax
mov eax, 8
imul rax, rax, 1
mov edx, 1
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov rcx, qword [rsp + 0x1e8]
mov dword [rcx], eax
mov r8d, dword [rsp + 0x150]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x14004914c
jmp 0x1400491b5
mov rax, qword [rsp + 0x1f8]
mov rcx, qword [rsp + 0xe8]
mov qword [rax], rcx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xb0]
call fcn.140036df0
lea rcx, [rsp + 0xf0]
call fcn.140036df0
mov rcx, qword [rsp + 0x58]
call fcn.1400dade0
xor eax, eax
jmp 0x140049297
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x78], 0xffffffffffffffff
je 0x1400491da
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 1
cmp qword [rsp + rax + 0x78], 0xffffffffffffffff
je 0x1400491ff
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x88], 0xffffffffffffffff
je 0x14004922a
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 1
cmp qword [rsp + rax + 0x88], 0xffffffffffffffff
je 0x140049255
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xa8], 0xffffffffffffffff
je 0x14004926e
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xb0]
call fcn.140036df0
lea rcx, [rsp + 0xf0]
call fcn.140036df0
mov rcx, qword [rsp + 0x58]
call fcn.1400dade0
mov eax, 0xffffffe7
add rsp, 0x1d0
pop rdi
ret