Function at 0x140012c10
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x50], rax
movzx r14d, r8b
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x20], rdx
test r9b, r9b
je 0x140012cd0
cmp qword [rcx + 0x18], 8
jb 0x140012c64
mov rbx, qword [rcx]
jmp 0x140012c67
mov rbx, rcx
mov eax, dword [0x14017885c]
test al, 1
jne 0x140012c86
or eax, 1
mov dword [0x14017885c], eax
lea rcx, [0x1400eafd0]
call fcn.1400bd1c8
call fcn.1400690b0
mov rdx, rbx
mov rcx, rax
call fcn.140069180
test al, al
jne 0x140012cd0
cmp qword [rsi + 0x18], 8
jb 0x140012ca9
mov rcx, qword [rsi]
call fcn.1400bd20c
xor ebx, ebx
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
cmp qword [rdi + 0x18], 8
jb 0x140012cc9
mov rcx, qword [rdi]
call fcn.1400bd20c
xor al, al
jmp 0x140012f0e
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x70]
call fcn.1400c2130
mov dword [rsp + 0x70], 0x68
mov dword [rbp - 0x54], 0x80
xor ebx, ebx
cmp qword [rdi + 0x10], rbx
je 0x140012d4c
cmp qword [rdi + 0x18], 8
jb 0x140012d03
mov rax, qword [rdi]
jmp 0x140012d06
mov rax, rdi
cmp word [rax], 0x20
je 0x140012d4c
mov r8, rdi
lea rdx, [0x140123f50]
lea rcx, [rbp + 0x10]
call fcn.140013070
nop
mov rdx, rax
mov rcx, rdi
call fcn.14000afe0
nop
cmp qword [rbp + 0x28], 8
jb 0x140012d3c
mov rcx, qword [rbp + 0x10]
call fcn.1400bd20c
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], rbx
mov word [rbp + 0x10], bx
mov r8, rsi
lea rdx, [0x140123f54]
lea rcx, [rbp + 0x10]
call fcn.140013070
nop
lea r8, [0x140123f54]
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14000b590
nop
cmp qword [rbp + 0x28], 8
jb 0x140012d84
mov rcx, qword [rbp + 0x10]
call fcn.1400bd20c
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], rbx
mov word [rbp + 0x10], bx
mov r8, rdi
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.14000b600
nop
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x4000020
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140012e47
cmp qword [rbp + 8], 8
jb 0x140012dff
mov rcx, qword [rbp - 0x10]
call fcn.1400bd20c
mov qword [rbp + 8], 7
mov qword [rbp], rbx
mov word [rbp - 0x10], bx
cmp qword [rbp + 0x48], 8
jb 0x140012e1f
mov rcx, qword [rbp + 0x30]
call fcn.1400bd20c
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], rbx
mov word [rbp + 0x30], bx
cmp qword [rsi + 0x18], 8
jb 0x140012cab
mov rcx, qword [rsi]
call fcn.1400bd20c
jmp 0x140012cab
mov rcx, qword [rsp + 0x50]
test r14b, r14b
je 0x140012e72
test rcx, rcx
je 0x140012e72
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov qword [rsp + 0x50], rbx
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140012e8f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140012e9f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], rbx
cmp qword [rbp + 8], 8
jb 0x140012eaf
mov rcx, qword [rbp - 0x10]
call fcn.1400bd20c
mov qword [rbp + 8], 7
mov qword [rbp], rbx
mov word [rbp - 0x10], bx
cmp qword [rbp + 0x48], 8
jb 0x140012ecf
mov rcx, qword [rbp + 0x30]
call fcn.1400bd20c
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], rbx
mov word [rbp + 0x30], bx
cmp qword [rsi + 0x18], 8
jb 0x140012eee
mov rcx, qword [rsi]
call fcn.1400bd20c
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
cmp qword [rdi + 0x18], 8
jb 0x140012f0c
mov rcx, qword [rdi]
call fcn.1400bd20c
mov al, 1
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret