Function at 0x140086000
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rdi, rcx
mov r14, qword [rcx + 8]
mov rcx, qword [rcx + 0xf0]
xor r12d, r12d
test rcx, rcx
je 0x140086069
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0xf0]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [r12 + 0x18]
mov rcx, qword [rdi + 0xf0]
call fcn.140122d40
mov qword [rdi + 0xf0], r12
mov ecx, 0x18
call fcn.140122d04
mov qword [rdi + 0xf0], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov ebx, 1
mov edx, ebx
mov rcx, r14
call fcn.14003bdb0
lea rdx, [rdi + 0x100]
mov rcx, rdi
call fcn.1400848a0
test al, al
je 0x14008662d
lea rdx, [rdi + 0x138]
mov rcx, rdi
call fcn.1400848a0
test al, al
je 0x14008662d
lea rdx, [rdi + 0x170]
mov rcx, rdi
call fcn.1400848a0
test al, al
je 0x14008662d
lea r8, [rdi + 0x1b0]
lea rdx, [rdi + 0x1a8]
lea rcx, [rbp + 0xd8]
call fcn.140084e50
nop
lea rax, [0x14018c220]
mov qword [rbp + 0xd0], rax
lea r15, [rdi + 0x200]
mov rdx, qword [r15]
or rsi, 0xffffffffffffffff
test rdx, rdx
je 0x140086169
add rdx, 8
lea rcx, [rsp + 0x60]
call fcn.140085270
mov rdx, qword [rbp + 0xd0]
mov qword [rbp + 0x58], rdx
mov rcx, qword [rax]
mov qword [rbp + 0xd0], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14008615b
cmp eax, esi
je 0x140086169
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, ebx
jne 0x140086169
mov rcx, qword [rsp + 0x60]
mov r8d, 8
mov rdx, rbx
call fcn.1400309b0
mov rax, qword [rdi + 0x1b8]
mov r13d, 0x20
cmp dword [rax + 4], 0
je 0x1400861b4
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 4], 0
je 0x1400861a1
mov word [rbp + 0xc0], r13w
movzx edx, r13w
lea rcx, [rbp + 0xd8]
call fcn.14001dd50
lea rdx, [rdi + 0x1b8]
lea rcx, [rbp + 0xd8]
call fcn.14001de50
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov ebx, 0x8000000
test rax, rax
cmovne ebx, r12d
bts ebx, 0xa
mov dword [rbp - 0x20], 0x68
mov qword [rbp - 0x18], r12
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
movabs rax, 0x8000000080000000
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r12
mov dword [rbp + 0x18], r12d
mov qword [rbp + 0x1c], 0x100
mov qword [rbp + 0x28], r12
mov rax, qword [rdi + 0x120]
mov qword [rbp + 0x30], rax
mov rax, qword [rdi + 0x160]
mov qword [rbp + 0x38], rax
mov rax, qword [rdi + 0x198]
mov qword [rbp + 0x40], rax
lea rdx, [rdi + 0xe8]
lea rcx, [rsp + 0x58]
call fcn.14002c2e0
nop
mov qword [rbp - 0x80], r12
lea rcx, [rbp + 0xd8]
call fcn.140025d00
mov qword [rbp - 0x78], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x60], 1
mov dword [rbp - 0x5c], ebx
mov rcx, r15
call fcn.14003b7f0
test al, al
je 0x14008626b
mov qword [rbp - 0x58], r12
jmp 0x1400862b4
mov rax, qword [rbp + 0xd0]
cmp dword [rax], 1
ja 0x14008627e
cmp qword [rax + 0x10], 0x18
je 0x1400862a9
mov r8d, r12d
cmp dword [rax + 8], 0x80000000
mov ecx, 1
cmovae r8d, ecx
mov edx, dword [rax + 4]
inc edx
lea rcx, [rbp + 0xd0]
call fcn.1400335a0
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rsp + 0x58]
cmp dword [rax + 4], 0
jne 0x1400862c4
mov rax, r12
jmp 0x1400862ce
lea rcx, [rsp + 0x58]
call fcn.140025d00
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x48], rdx
mov r8, qword [rdi + 0xf0]
mov qword [rbp - 0x40], r8
cmp qword [rdi + 0x1f8], 0
je 0x14008631f
lea rax, [rbp - 0x80]
mov qword [rbp - 0x30], rax
mov rcx, qword [rdi + 0x1f8]
test rcx, rcx
jne 0x140086309
call fcn.1401206d0
int3
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax + 0x10]
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x50]
movzx ecx, byte [rbp - 0x60]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne r15b
lea rax, [0x14018c220]
mov qword [rsp + 0x50], rax
test r15b, r15b
jne 0x14008645f
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.14004d150
mov rbx, rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Process_failed_to_start:__1
lea rcx, [rsp + 0x70]
call fcn.14003c260
nop
mov word [rbp + 0xc8], r13w
mov word [rsp + 0x20], r13w
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.14001e320
mov rdx, qword [rsp + 0x50]
mov qword [rbp + 0x60], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400863f3
cmp eax, 0xffffffff
je 0x140086402
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140086402
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x140086422
cmp eax, 0xffffffff
je 0x140086431
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140086431
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
nop
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x140086451
cmp eax, 0xffffffff
je 0x14008645f
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008645f
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rcx, qword [rdi + 0x120]
cmp rcx, 0xffffffffffffffff
je 0x140086479
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x120], rsi
mov rcx, qword [rdi + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x140086493
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x160], rsi
mov rcx, qword [rdi + 0x198]
cmp rcx, 0xffffffffffffffff
je 0x1400864ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x198], rsi
test r15b, r15b
jne 0x1400864d8
mov rcx, rdi
call fcn.14003b110
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call fcn.14003bd20
xor edx, edx
mov rcx, r14
call fcn.14003bdb0
jmp 0x14008656c
mov edx, 2
mov rcx, r14
call fcn.14003bdb0
cmp qword [rdi + 0xf0], 0
je 0x14008656c
mov rax, qword [rdi + 0x38]
cmp qword [rax + 0x48], 0
je 0x140086563
mov ecx, 0x10
call fcn.140122d04
mov qword [rbp + 0x68], rax
mov rdx, qword [rdi + 0xf0]
mov r8, r14
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140087110
nop
mov qword [rdi + 0x238], rax
mov dword [rsp + 0x28], r12d
lea rcx, str.1_q_processDied__
mov qword [rsp + 0x20], rcx
mov r9, r14
lea r8, str.2activated_HANDLE_
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14005ef20
lea rcx, [rbp - 0x28]
call fcn.14005ceb0
mov dl, 1
mov rcx, qword [rdi + 0x238]
call fcn.140087430
mov rcx, rdi
call fcn.14003aea0
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14008658c
cmp eax, 0xffffffff
je 0x14008659b
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008659b
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400865bb
cmp eax, 0xffffffff
je 0x1400865ca
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400865ca
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
nop
mov rcx, qword [rbp + 0xd0]
mov eax, dword [rcx]
test eax, eax
je 0x1400865ee
cmp eax, 0xffffffff
je 0x1400865fd
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400865fd
mov rcx, qword [rbp + 0xd0]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400309b0
nop
mov rcx, qword [rbp + 0xd8]
mov eax, dword [rcx]
test eax, eax
je 0x14008661f
cmp eax, 0xffffffff
je 0x14008662d
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x14008662d
mov rcx, qword [rbp + 0xd8]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret