Function at 0x14000c700
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x3b8], rbx
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x80]
call fcn.140018cd0
xor r11d, r11d
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x70], r11
mov dword [rbp - 0x80], 0x68
xor r13d, r13d
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x44], 0x101
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
lea r9, [rbp - 0x20]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp qword [rsi + 0x18], 8
jb 0x14000c7d7
mov rcx, qword [rsi]
jmp 0x14000c7da
mov rcx, rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000c83e
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsi + 0x70]
mov qword [rcx + 0x10], rdi
mov rcx, qword [rsi + 0x70]
mov byte [rcx + 8], 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x14000ca20
mov byte [rbp + 0x50], r13b
xor edx, edx
mov r8d, 0x207
lea rcx, [rbp + 0x51]
call fcn.140018cd0
mov ecx, 0x30
call fcn.140018b7c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000c891
mov qword [rsp + 0x20], 0xb
lea r9, [0x140038258]
mov r8d, 0x2c
lea rdx, [0x140038210]
mov rcx, rax
call fcn.14000ff40
mov rdi, rax
jmp 0x14000c894
mov rdi, r13
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14000c8a3
mov rcx, qword [rsi]
jmp 0x14000c8a6
mov rcx, rsi
mov rax, qword [rsi + 0x10]
lea r8, [rcx + rax*2]
cmp rdx, 8
jb 0x14000c8b9
mov rdx, qword [rsi]
jmp 0x14000c8bc
mov rdx, rsi
mov qword [rbp + 0x10], 0xf
mov qword [rbp + 8], r13
mov byte [rbp - 8], 0
movzx r9d, byte [rsp + 0x50]
lea rcx, [rbp - 8]
call fcn.14000be00
nop
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.1400106c0
mov rbx, rax
lea r12, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae r12, qword [rbp - 8]
cmp qword [rax + 0x18], 0x10
jb 0x14000c903
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, r12
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.1400196d8
cmp qword [rbp + 0x38], 0x10
jb 0x14000c92b
mov rcx, qword [rbp + 0x20]
call fcn.1400187b4
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], r13
mov byte [rbp + 0x20], 0
cmp qword [rbp + 0x10], 0x10
jb 0x14000c94b
mov rcx, qword [rbp - 8]
call fcn.1400187b4
test rdi, rdi
je 0x14000c960
mov rcx, rdi
call fcn.14000ff70
mov rcx, rdi
call fcn.1400187b4
mov ecx, 0x28
call fcn.140018b7c
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000c9a7
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r13
mov byte [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x50]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x50]
mov rcx, rbx
call fcn.1400082b0
jmp 0x14000c9aa
mov rbx, r13
cmp qword [rsi + 0x70], 0
jne 0x14000c9e2
lea rax, [0x14002bed0]
mov qword [rsp + 0x58], rax
mov r8d, 7
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 8]
call fcn.1400185b8
lea rdx, [0x1400360a0]
lea rcx, [rbp - 8]
call fcn.140018c20
int3
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [0x14002bed0]
mov qword [rsp + 0x58], rax
mov r8d, 3
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 8]
call fcn.1400185b8
lea rdx, [0x1400360a0]
lea rcx, [rbp - 8]
call fcn.140018c20
int3
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400194d0
mov rbx, qword [rsp + 0x3b8]
add rsp, 0x370
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret