Function at 0x14006c890
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 - 0x18]
sub rsp, 0x118
mov qword [rbp], 0xfffffffffffffffe
mov rdi, rcx
xor r12d, r12d
mov dword [rbp + 0x70], r12d
mov r13, qword [rcx + 8]
mov rcx, qword [rcx + 0x108]
test rcx, rcx
je 0x14006c8f8
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x108]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x108]
call fcn.1400ae120
mov qword [rdi + 0x108], r12
mov ecx, 0x18
call fcn.1400ae128
mov qword [rdi + 0x108], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
lea edx, [rcx + 1]
mov rcx, r13
call fcn.140037620
lea rdx, [rdi + 0x118]
mov rcx, rdi
call fcn.14006a760
test al, al
je 0x14006cdb1
lea rdx, [rdi + 0x148]
mov rcx, rdi
call fcn.14006a760
test al, al
je 0x14006cdb1
lea rdx, [rdi + 0x178]
mov rcx, rdi
call fcn.14006a760
test al, al
je 0x14006cdb1
lea r8, [rdi + 0x1b0]
lea rdx, [rdi + 0x1a8]
lea rcx, [rsp + 0x50]
call fcn.14006b9e0
nop
lea rax, [0x1415d9338]
mov qword [rbp + 0x78], rax
lock inc dword [0x1415d9338]
lea r14, [rdi + 0x1c0]
mov rdx, qword [r14]
or rsi, 0xffffffffffffffff
test rdx, rdx
je 0x14006c9d4
add rdx, 8
lea rcx, [rsp + 0x78]
call fcn.14006bfc0
nop
mov rdx, rax
lea rcx, [rbp + 0x78]
call fcn.14000c9d0
nop
mov rax, qword [rsp + 0x78]
lock dec dword [rax]
jne 0x14006c9d4
mov rcx, qword [rsp + 0x78]
call fcn.14000c4e0
mov rax, qword [rdi + 0x1b8]
mov ecx, 0x20
cmp dword [rax + 8], 0
je 0x14006ca13
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x14006ca02
mov word [rbp + 0x68], cx
movzx edx, cx
lea rcx, [rsp + 0x50]
call fcn.1400072a0
lea rdx, [rdi + 0x1b8]
lea rcx, [rsp + 0x50]
call fcn.140012c50
mov dword [rbp - 0x70], 0x68
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov dword [rbp - 0x50], 0x80000000
mov dword [rbp - 0x4c], 0x80000000
mov dword [rbp - 0x48], 0x80000000
mov dword [rbp - 0x44], 0x80000000
mov qword [rbp - 0x40], r12
mov dword [rbp - 0x38], r12d
mov qword [rbp - 0x34], pe_nt_image_headers64
mov qword [rbp - 0x28], r12
mov rax, qword [rdi + 0x130]
mov qword [rbp - 0x20], rax
mov rax, qword [rdi + 0x168]
mov qword [rbp - 0x18], rax
mov rax, qword [rdi + 0x198]
mov qword [rbp - 0x10], rax
lea rdx, [rdi + 0x100]
mov rax, qword [rdx]
cmp dword [rax + 8], 0
jne 0x14006ca8c
mov r15, r12
jmp 0x14006caa9
lea rcx, [rsp + 0x68]
call fcn.14001c550
nop
mov dword [rbp + 0x70], 1
mov rcx, rax
call fcn.140012e50
mov r15, rax
mov rcx, r14
call fcn.140037280
test al, al
je 0x14006caba
mov rbx, r12
jmp 0x14006cae7
mov rax, qword [rbp + 0x78]
mov ecx, dword [rax]
mov rax, qword [rbp + 0x78]
cmp ecx, 1
jne 0x14006cad3
lea rcx, [rax + 0x18]
cmp qword [rax + 0x10], rcx
je 0x14006cae3
mov edx, dword [rax + 8]
lea rcx, [rbp + 0x78]
call fcn.14000cc90
mov rax, qword [rbp + 0x78]
mov rbx, qword [rax + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140012e50
mov rdx, rax
mov rax, qword [rdi + 0x108]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000400
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne r14b
test byte [rbp + 0x70], 1
je 0x14006cb51
mov rax, qword [rsp + 0x68]
lock dec dword [rax]
jne 0x14006cb51
mov rcx, qword [rsp + 0x68]
call fcn.140012a00
mov r15d, 0x20
test r14b, r14b
jne 0x14006cbf0
mov word [rbp + 0x60], r15w
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.14001ad90
mov rbx, rax
xor r8d, r8d
lea rdx, [0x141590250]
lea rcx, [rsp + 0x58]
call fcn.140037250
nop
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140015d20
nop
mov rdx, rax
mov rcx, r13
call fcn.140027740
nop
mov rax, qword [rsp + 0x70]
lock dec dword [rax]
jne 0x14006cbc7
mov rcx, qword [rsp + 0x70]
call fcn.140012a00
nop
mov rax, qword [rsp + 0x58]
lock dec dword [rax]
jne 0x14006cbdc
mov rcx, qword [rsp + 0x58]
call fcn.140012a00
nop
mov rax, qword [rsp + 0x60]
lock dec dword [rax]
jne 0x14006cbf0
mov rcx, qword [rsp + 0x60]
call fcn.140012a00
mov rcx, qword [rdi + 0x130]
cmp rcx, 0xffffffffffffffff
je 0x14006cc0a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x130], rsi
mov rcx, qword [rdi + 0x168]
cmp rcx, 0xffffffffffffffff
je 0x14006cc24
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x168], rsi
mov rcx, qword [rdi + 0x198]
cmp rcx, 0xffffffffffffffff
je 0x14006cc3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x198], rsi
test r14b, r14b
jne 0x14006cc7f
mov rcx, rdi
call fcn.140037670
mov dword [rdi + 0xf8], r12d
xor edx, edx
mov rcx, r13
call fcn.1400371d0
xor edx, edx
mov rcx, r13
call fcn.140037620
nop
mov rax, qword [rbp + 0x78]
lock dec dword [rax]
jne 0x14006cc7a
mov rcx, qword [rbp + 0x78]
call fcn.14000c4e0
nop
jmp 0x14006cd9d
mov edx, 2
mov rcx, r13
call fcn.140037620
cmp qword [rdi + 0x108], 0
jne 0x14006ccae
mov rax, qword [rbp + 0x78]
lock dec dword [rax]
jne 0x14006cca9
mov rcx, qword [rbp + 0x78]
call fcn.14000c4e0
nop
jmp 0x14006cd9d
mov rax, qword [rdi + 0x40]
cmp qword [rax + 0x18], 0
je 0x14006cd76
mov rcx, r15
call fcn.1400ae128
mov qword [rbp - 0x80], rax
test rax, rax
je 0x14006cce5
mov rdx, qword [rdi + 0x108]
mov r8, r13
mov rdx, qword [rdx]
mov rcx, rax
call fcn.14006ce30
jmp 0x14006cce8
mov rax, r12
mov qword [rdi + 0x268], rax
mov dword [rsp + 0x20], 3
lea r9, [0x141590238]
mov r8, r13
lea rdx, [0x141590220]
mov rcx, rax
call fcn.14004ecb0
mov dl, 1
mov rcx, qword [rdi + 0x268]
call fcn.14006cea0
mov rcx, r15
call fcn.1400ae128
mov qword [rbp - 0x80], rax
test rax, rax
je 0x14006cd3d
mov rdx, r13
mov rcx, rax
call fcn.14008eec0
mov r12, rax
mov qword [rdi + 0x258], r12
mov dword [rsp + 0x20], 3
lea r9, [0x141590210]
mov r8, r13
lea rdx, [0x141590200]
mov rcx, r12
call fcn.14004ecb0
mov edx, WSAAsyncSelect
mov rcx, qword [rdi + 0x258]
call fcn.14008efc0
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140037860
nop
mov rax, qword [rbp + 0x78]
lock dec dword [rax]
jne 0x14006cd9d
mov rcx, qword [rbp + 0x78]
call fcn.14000c4e0
nop
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x14006cdb1
mov rcx, qword [rsp + 0x50]
call fcn.140012a00
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret