Function at 0x140069bb0
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 + 0x100]
test rcx, rcx
je 0x140069c18
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x100]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x100]
call fcn.1400abea0
mov qword [rdi + 0x100], r12
mov ecx, 0x18
call fcn.1400aca1c
mov qword [rdi + 0x100], 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.1400235c0
lea rdx, [rdi + 0x110]
mov rcx, rdi
call fcn.140067b20
test al, al
je 0x14006a0d1
lea rdx, [rdi + 0x140]
mov rcx, rdi
call fcn.140067b20
test al, al
je 0x14006a0d1
lea rdx, [rdi + 0x170]
mov rcx, rdi
call fcn.140067b20
test al, al
je 0x14006a0d1
lea r8, [rdi + 0x1a8]
lea rdx, [rdi + 0x1a0]
lea rcx, [rsp + 0x50]
call fcn.140068e30
nop
lea rax, [0x140dd8068]
mov qword [rbp + 0x78], rax
lock inc dword [0x140dd8068]
lea r14, [rdi + 0x1b8]
mov rdx, qword [r14]
or rsi, 0xffffffffffffffff
test rdx, rdx
je 0x140069cf4
add rdx, 8
lea rcx, [rsp + 0x78]
call fcn.140069210
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rax]
mov qword [rbp + 0x78], rcx
mov qword [rax], rdx
mov rax, qword [rsp + 0x78]
lock dec dword [rax]
jne 0x140069cf4
mov rcx, qword [rsp + 0x78]
call fcn.140004d80
mov rax, qword [rdi + 0x1b0]
mov ecx, 0x20
cmp dword [rax + 8], 0
je 0x140069d33
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x140069d22
mov word [rbp + 0x68], cx
movzx edx, cx
lea rcx, [rsp + 0x50]
call fcn.14000b2a0
lea rdx, [rdi + 0x1b0]
lea rcx, [rsp + 0x50]
call fcn.14000b110
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], 0x100
mov qword [rbp - 0x28], r12
mov rax, qword [rdi + 0x128]
mov qword [rbp - 0x20], rax
mov rax, qword [rdi + 0x160]
mov qword [rbp - 0x18], rax
mov rax, qword [rdi + 0x190]
mov qword [rbp - 0x10], rax
lea rdx, [rdi + 0xf8]
mov rax, qword [rdx]
cmp dword [rax + 8], 0
jne 0x140069dac
mov r15, r12
jmp 0x140069dc9
lea rcx, [rsp + 0x68]
call fcn.140025a60
nop
mov dword [rbp + 0x70], 1
mov rcx, rax
call fcn.14000b320
mov r15, rax
mov rcx, r14
call fcn.140023220
test al, al
je 0x140069dda
mov rbx, r12
jmp 0x140069e07
mov rax, qword [rbp + 0x78]
mov ecx, dword [rax]
mov rax, qword [rbp + 0x78]
cmp ecx, 1
jne 0x140069df3
lea rcx, [rax + 0x18]
cmp qword [rax + 0x10], rcx
je 0x140069e03
mov edx, dword [rax + 8]
lea rcx, [rbp + 0x78]
call fcn.140005410
mov rax, qword [rbp + 0x78]
mov rbx, qword [rax + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14000b320
mov rdx, rax
mov rax, qword [rdi + 0x100]
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 0x140069e71
mov rax, qword [rsp + 0x68]
lock dec dword [rax]
jne 0x140069e71
mov rcx, qword [rsp + 0x68]
call fcn.14000ade0
mov r15d, 0x20
test r14b, r14b
jne 0x140069f10
mov word [rbp + 0x60], r15w
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.140015a00
mov rbx, rax
xor r8d, r8d
lea rdx, [0x140d88558]
lea rcx, [rsp + 0x58]
call fcn.1400231f0
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.14000df80
nop
mov rdx, rax
mov rcx, r13
call fcn.140013010
nop
mov rax, qword [rsp + 0x70]
lock dec dword [rax]
jne 0x140069ee7
mov rcx, qword [rsp + 0x70]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x58]
lock dec dword [rax]
jne 0x140069efc
mov rcx, qword [rsp + 0x58]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x60]
lock dec dword [rax]
jne 0x140069f10
mov rcx, qword [rsp + 0x60]
call fcn.14000ade0
mov rcx, qword [rdi + 0x128]
cmp rcx, 0xffffffffffffffff
je 0x140069f2a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x128], rsi
mov rcx, qword [rdi + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x140069f44
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x160], rsi
mov rcx, qword [rdi + 0x190]
cmp rcx, 0xffffffffffffffff
je 0x140069f5e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x190], rsi
test r14b, r14b
jne 0x140069f9f
mov rcx, rdi
call fcn.140023630
mov dword [rdi + 0xf0], r12d
xor edx, edx
mov rcx, r13
call fcn.140023170
xor edx, edx
mov rcx, r13
call fcn.1400235c0
nop
mov rax, qword [rbp + 0x78]
lock dec dword [rax]
jne 0x140069f9a
mov rcx, qword [rbp + 0x78]
call fcn.140004d80
nop
jmp 0x14006a0bd
mov edx, 2
mov rcx, r13
call fcn.1400235c0
cmp qword [rdi + 0x100], 0
jne 0x140069fce
mov rax, qword [rbp + 0x78]
lock dec dword [rax]
jne 0x140069fc9
mov rcx, qword [rbp + 0x78]
call fcn.140004d80
nop
jmp 0x14006a0bd
mov rax, qword [rdi + 0x40]
cmp qword [rax + 0x20], 0
je 0x14006a096
mov rcx, r15
call fcn.1400aca1c
mov qword [rbp - 0x80], rax
test rax, rax
je 0x14006a005
mov rdx, qword [rdi + 0x100]
mov r8, r13
mov rdx, qword [rdx]
mov rcx, rax
call fcn.14006a150
jmp 0x14006a008
mov rax, r12
mov qword [rdi + 0x260], rax
mov dword [rsp + 0x20], 3
lea r9, [0x140d88540]
mov r8, r13
lea rdx, [0x140d88528]
mov rcx, rax
call fcn.14001e1e0
mov dl, 1
mov rcx, qword [rdi + 0x260]
call fcn.14006a1c0
mov rcx, r15
call fcn.1400aca1c
mov qword [rbp - 0x80], rax
test rax, rax
je 0x14006a05d
mov rdx, r13
mov rcx, rax
call fcn.14009c0c0
mov r12, rax
mov qword [rdi + 0x250], r12
mov dword [rsp + 0x20], 3
lea r9, [0x140d88518]
mov r8, r13
lea rdx, [0x140d88508]
mov rcx, r12
call fcn.14001e1e0
mov edx, WSAAsyncSelect
mov rcx, qword [rdi + 0x250]
call fcn.14009c1c0
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140023820
nop
mov rax, qword [rbp + 0x78]
lock dec dword [rax]
jne 0x14006a0bd
mov rcx, qword [rbp + 0x78]
call fcn.140004d80
nop
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x14006a0d1
mov rcx, qword [rsp + 0x50]
call fcn.14000ade0
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret