Function at 0x14000646c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140011008]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r14, qword [rbp + 0x470]
mov rdi, rcx
mov rsi, r8
mov rbx, rdx
lea rcx, [rbp + 0x1f2]
xor r12d, r12d
mov r8d, 0x212
xor edx, edx
mov r15d, r9d
mov word [rbp + 0x1f0], r12w
call sub.msvcrt.dll_memset
lea r8d, [r12 + 0x60]
lea rcx, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x70], r12d
call sub.msvcrt.dll_memset
xor eax, eax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
cmp dword [rdi], r12d
je 0x1400066b8
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x30], 6
jge 0x14000651a
mov ebx, 0x8007139f
jmp 0x1400066bd
test rbx, rbx
je 0x1400066b1
test rsi, rsi
je 0x1400066b1
test r14, r14
je 0x1400066b1
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x14000654f
add rbx, 2
test ecx, ecx
jne 0x14000653c
test eax, eax
je 0x14000655d
mov ebx, 0x80070005
jmp 0x1400066bd
lea rcx, [rbp - 0x20]
mov r8, rsi
mov edx, 0x104
call fcn.140004ba4
test eax, eax
js 0x1400066b1
lea rax, [rbp - 0x20]
cmp word [rbp - 0x20], r12w
je 0x140006599
cmp word [rax], 0x2f
jne 0x14000658f
mov ecx, 0x5c
mov word [rax], cx
add rax, 2
cmp word [rax], r12w
jne 0x140006581
lea rcx, [rbp - 0x20]
call fcn.14000ad9c
test eax, eax
js 0x1400066b1
lea rcx, [rbp - 0x20]
call fcn.14000ae48
test eax, eax
js 0x1400066b1
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140004ec0
mov ebx, eax
test eax, eax
js 0x1400066bd
cmp dword [rdi + 0x8c], r12d
jne 0x1400065eb
lea rcx, [rbp - 0x20]
call fcn.14000b684
test eax, eax
je 0x140006553
mov esi, 0x10a
lea r8, [rbp + 0x1f0]
lea rcx, [rbp - 0x20]
mov r9d, esi
mov edx, esi
call fcn.14000ca34
mov ebx, eax
test eax, eax
js 0x1400066bd
test r15d, r15d
je 0x140006633
lea r8, [0x140003560]
lea rcx, [rbp + 0x1f0]
mov edx, esi
call fcn.140004148
mov ebx, eax
test eax, eax
js 0x1400066bd
lea rax, [rsp + 0x50]
lea rdx, [rbp + 0x1f0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x70], Ordinal_107
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140006692
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400066bd
lea rdx, [rsp + 0x50]
mov r8, r14
mov rcx, rdi
call fcn.140004f48
mov ebx, eax
test eax, eax
js 0x1400066bd
mov dword [rdi + 0x30], 8
jmp 0x1400066bd
mov ebx, 0x80070057
jmp 0x1400066bd
mov ebx, 0x8007000e
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400066cd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400066dd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rdi], r12d
je 0x1400066ec
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14000faa0
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret