Function at 0x10006bbbc
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea rdi, [rcx + 0x60]
xor r12b, r12b
mov r13, rcx
test rdi, rdi
je 0x10006bbf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
xor r14d, r14d
cmp dword [r13 + 0x58], r14d
jle 0x10006bd40
xor r15d, r15d
or esi, 0xffffffff
test r15, r15
js 0x10006be28
cmp r14d, dword [r13 + 0x58]
jge 0x10006be28
mov rax, qword [r13 + 0x50]
mov rbp, qword [r15 + rax]
test rbp, rbp
je 0x10006be0b
cmp byte [rbp + 0x30], 0
je 0x10006bd2f
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x18]
test al, al
jne 0x10006bd2f
mov rcx, rbp
call fcn.100070f24
test al, al
je 0x10006bd2f
mov rbx, qword [0x1000a1180]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rbx
test rax, rax
je 0x10006bdcb
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x70]
call fcn.10001c054
lea r11, [rsp + 0x80]
test r11, r11
je 0x10006bd6d
mov rcx, rbp
call fcn.100073f50
mov esi, eax
test eax, eax
js 0x10006bcbd
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x80]
call fcn.10001c054
mov rbx, qword [rsp + 0x80]
xor esi, esi
test esi, esi
js 0x10006bd72
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
lea rdx, [0x100003cd0]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rbx - 0xc]
lea rbx, [0x1000a1170]
or esi, 0xffffffff
cmp rcx, rbx
je 0x10006bd10
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x10006bd10
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x10006bd2f
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x10006bd2f
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
inc r14d
add r15, 8
cmp r14d, dword [r13 + 0x58]
jl 0x10006bc03
test r12b, r12b
je 0x10006bd53
test rdi, rdi
je 0x10006bd53
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov esi, 0x80004003
lea rcx, [rbx - 0xc]
lea rbx, [0x1000a1170]
cmp rcx, rbx
je 0x10006bd94
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x10006bd94
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x10006bdb4
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x10006bdb4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
test r12b, r12b
je 0x10006bdc7
test rdi, rdi
je 0x10006bdc7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x10006bd55
lea rcx, [rbx - 0xc]
lea rbx, [0x1000a1170]
cmp rcx, rbx
je 0x10006bdec
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x10006bdec
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x10006be0b
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x10006be0b
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
test r12b, r12b
je 0x10006be1e
test rdi, rdi
je 0x10006be1e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004003
jmp 0x10006bd55
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000008c
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]