Function at 0x140060970
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x14010c080]
xor rax, rsp
mov qword [rsp + 0x240], rax
call fcn.140049144
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x180], 0
mov qword [rsp + 0x190], 0
mov qword [rsp + 0x198], 0
lea rax, [rsp + 0x1d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x1d0], 0x68
lea rax, [rsp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, SafeArrayCopy
rep stosb byte [rdi], al
cmp qword [rsp + 0x298], 0
je 0x140060b49
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x1b8], SafeArrayCopy
mov dword [rsp + 0x1c8], 1
mov qword [rsp + 0x1c0], 0
xor r9d, r9d
lea r8, [rsp + 0x1b8]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140060a88
call fcn.140049154
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x278]
call fcn.140004118
mov al, byte [rsp + 0x60]
jmp 0x14006100c
xor r9d, r9d
lea r8, [rsp + 0x1b8]
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140060acd
call fcn.140049154
mov byte [rsp + 0x61], 0
mov rcx, qword [rsp + 0x278]
call fcn.140004118
mov al, byte [rsp + 0x61]
jmp 0x14006100c
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140060b07
call fcn.140049154
mov byte [rsp + 0x62], 0
mov rcx, qword [rsp + 0x278]
call fcn.140004118
mov al, byte [rsp + 0x62]
jmp 0x14006100c
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x230], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x220], rax
mov eax, dword [rsp + 0x20c]
bts eax, 8
mov dword [rsp + 0x20c], eax
mov rcx, qword [rsp + 0x278]
call fcn.140006af0
inc rax
mov qword [rsp + 0xb0], rax
mov eax, 2
mov rcx, qword [rsp + 0xb0]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400b67b0
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x278]
call fcn.140006af0
lea rax, [rax + rax + 2]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x278]
call fcn.140001550
mov rdi, qword [rsp + 0x68]
mov rsi, rax
mov rax, qword [rsp + 0xc0]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x270]
call fcn.14005b518
test eax, eax
jne 0x140060f10
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x270]
call fcn.14005b518
test eax, eax
jne 0x140060f10
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x270]
call fcn.14005b518
test eax, eax
jne 0x140060f10
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x270]
call fcn.14005b158
test eax, eax
jne 0x140060f10
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.1400b65e8
cmp qword [rsp + 0x78], 0
jne 0x140060d6e
mov qword [rsp + 0xc8], 0
jmp 0x140060d84
mov qword [rsp + 0x68], 0x8123
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x100]
call fcn.140061028
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.14001abe4
movzx eax, al
test eax, eax
jne 0x140060db7
mov dword [rsp + 0x70], 1
jmp 0x140060dbf
mov dword [rsp + 0x70], 0
mov al, byte [rsp + 0x70]
mov byte [rsp + 0x63], al
lea rcx, [rsp + 0x100]
call fcn.140004118
movzx eax, byte [rsp + 0x63]
test eax, eax
je 0x140060ef0
call fcn.140049154
lea rax, [rsp + 0x120]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0xd8]
call fcn.14000630c
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0xe8]
call fcn.140061028
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1400610a8
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x298]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x280]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140060174
mov byte [rsp + 0x64], al
mov rcx, qword [rsp + 0x278]
call fcn.140004118
mov al, byte [rsp + 0x64]
jmp 0x14006100c
call fcn.140049154
mov byte [rsp + 0x65], 0
mov rcx, qword [rsp + 0x278]
call fcn.140004118
mov al, byte [rsp + 0x65]
jmp 0x14006100c
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400b65e8
cmp qword [rsp + 0x80], 0
jne 0x140060f43
mov qword [rsp + 0xa8], 0
jmp 0x140060f59
mov qword [rsp + 0x68], 0x8123
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0x288], 0
je 0x140060f79
mov rax, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x1a0]
mov qword [rax], rcx
jmp 0x140060f87
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x290], 0
je 0x140060fa7
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x1a8]
mov qword [rax], rcx
jmp 0x140060fb5
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x298], 0
je 0x140060fd3
mov rax, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x188]
mov qword [rax], rcx
cmp qword [rsp + 0x2a0], 0
je 0x140060ff1
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x198]
mov qword [rax], rcx
call fcn.140049154
mov byte [rsp + 0x66], 1
mov rcx, qword [rsp + 0x278]
call fcn.140004118
mov al, byte [rsp + 0x66]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b6680
add rsp, 0x258
pop rdi
pop rsi
ret