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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov dword [rsp + 0x120], 0
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x130], 0
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov dword [rsp + 0x100], 0
lea rax, [rsp + 0x108]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep stosb byte [rdi], al
mov qword [rsp + 0x118], 0xffffffffffffffff
mov qword [rsp + 0x128], 0xffffffffffffffff
mov qword [rsp + 0x68], 0xffffffffffffffff
mov qword [rsp + 0x80], 0xffffffffffffffff
mov ecx, 0x618
call fcn.1800d4c50
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x148]
call fcn.180034970
nop
mov rcx, qword [rsp + 0x130]
call fcn.180001bf4
movzx eax, al
test eax, eax
jne 0x18003a076
mov dword [rsp + 0x78], 0
lea rcx, [rsp + 0x148]
call fcn.180034a00
jmp 0x18003a33a
mov r8d, 0x30c
xor edx, edx
mov rcx, qword [rsp + 0x130]
call fcn.1800d63d0
mov r8, qword [rsp + 0x198]
mov edx, 0x30c
mov rcx, qword [rsp + 0x130]
call fcn.1800d9840
lea r8, [0x1801a8814]
mov edx, 0x104
mov rcx, qword [rsp + 0x130]
call fcn.1800ddbd0
mov r8, qword [rsp + 0x1a0]
mov edx, 0x30c
mov rcx, qword [rsp + 0x130]
call fcn.1800ddbd0
mov dword [rsp + 0x100], SafeArrayCopy
mov qword [rsp + 0x108], 0
mov dword [rsp + 0x110], 1
xor r9d, r9d
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18003a14e
xor r9d, r9d
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18003a14e
mov dword [rsp + 0x170], 1
jmp 0x18003a159
mov dword [rsp + 0x170], 0
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jne 0x18003a17d
lea rcx, [rsp + 0x148]
call fcn.180034a00
jmp 0x18003a33a
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.1800d63d0
mov dword [rsp + 0x90], 0x68
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xe8], rax
xor eax, eax
mov word [rsp + 0xd0], ax
mov dword [rsp + 0xcc], 0x101
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x100]
lea r8, [rsp + 0x100]
mov rdx, qword [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jne 0x18003a255
lea rcx, [rsp + 0x148]
call fcn.180034a00
jmp 0x18003a33a
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x100000
call fcn.1800d4c50
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x138]
call fcn.180001302
nop
mov rcx, qword [rsp + 0x70]
call fcn.180001bf4
movzx eax, al
test eax, eax
jne 0x18003a2cd
mov dword [rsp + 0x78], 0
lea rcx, [rsp + 0x138]
call fcn.180001438
nop
lea rcx, [rsp + 0x148]
call fcn.180034a00
jmp 0x18003a33a
mov r8d, 0x100000
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1800d63d0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x120]
mov r8d, 0x100000
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
lea rcx, [rsp + 0x138]
call fcn.180001438
nop
lea rcx, [rsp + 0x148]
call fcn.180034a00
xor eax, eax
test eax, eax
jne 0x18003a010
mov rcx, qword [rsp + 0x118]
call fcn.180001bf4
movzx eax, al
test eax, eax
je 0x18003a35c
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x128]
call fcn.180001bf4
movzx eax, al
test eax, eax
je 0x18003a37e
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call fcn.180001bf4
movzx eax, al
test eax, eax
je 0x18003a39a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x78]
add rsp, 0x180
pop rdi
ret