Function at 0x14007d720
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 - 0x28]
sub rsp, 0x128
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdi, rcx
xor r13d, r13d
mov dword [rbp + 0x80], r13d
mov r14, qword [rcx + 8]
mov rcx, qword [rcx + 0xf0]
test rcx, rcx
je 0x14007d78b
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]
mov rcx, qword [rdi + 0xf0]
call fcn.1400f8d00
mov qword [rdi + 0xf0], r13
mov ecx, 0x18
call fcn.1400f8c88
mov qword [rdi + 0xf0], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
lea edx, [rcx + 1]
mov rcx, r14
call fcn.14003feb0
lea rdx, [rdi + 0x100]
mov rcx, rdi
call fcn.14007bd50
test al, al
je 0x14007dcfc
lea rdx, [rdi + 0x158]
mov rcx, rdi
call fcn.14007bd50
test al, al
je 0x14007dcfc
lea rdx, [rdi + 0x1b0]
mov rcx, rdi
call fcn.14007bd50
test al, al
je 0x14007dcfc
lea r8, [rdi + 0x210]
lea rdx, [rdi + 0x208]
lea rcx, [rsp + 0x50]
call fcn.14007c360
nop
lea rax, [0x14135c948]
mov qword [rbp + 0x88], rax
mov rdx, qword [rdi + 0x220]
or rsi, 0xffffffffffffffff
test rdx, rdx
je 0x14007d879
add rdx, 8
lea rcx, [rsp + 0x78]
call fcn.14007c740
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rax]
mov qword [rbp + 0x88], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14007d86b
cmp eax, esi
je 0x14007d879
lock dec dword [rcx]
jne 0x14007d879
mov rcx, qword [rsp + 0x78]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400112a0
mov rax, qword [rdi + 0x218]
mov ecx, 0x20
cmp dword [rax + 4], 0
je 0x14007d8b8
mov rax, qword [rsp + 0x50]
cmp dword [rax + 4], 0
je 0x14007d8a7
mov word [rbp + 0x70], cx
movzx edx, cx
lea rcx, [rsp + 0x50]
call fcn.140008040
lea rdx, [rdi + 0x218]
lea rcx, [rsp + 0x50]
call fcn.1400123c0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov r15d, 0x8000000
test rax, rax
cmovne r15d, r13d
bts r15d, 0xa
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x58], r13
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
movabs rax, 0x8000000080000000
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], r13
mov dword [rbp - 0x28], r13d
mov qword [rbp - 0x24], 0x100
mov qword [rbp - 0x18], r13
mov rax, qword [rdi + 0x140]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi + 0x1a0]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 0x1f8]
mov qword [rbp], rax
lea rdx, [rdi + 0xe8]
mov rax, qword [rdx]
cmp dword [rax + 4], 0
je 0x14007d95a
lea rcx, [rsp + 0x70]
call fcn.140022ea0
nop
mov dword [rbp + 0x80], 1
mov rcx, rax
call fcn.14001a740
mov r13, rax
lea rcx, [rdi + 0x220]
call fcn.14003f7d0
mov r12d, 2
test al, al
je 0x14007d974
xor ebx, ebx
jmp 0x14007d9be
mov rax, qword [rbp + 0x88]
mov ecx, dword [rax]
cmp ecx, 1
ja 0x14007d989
cmp qword [rax + 0x10], 0x18
je 0x14007d9b7
xor r8d, r8d
test ecx, ecx
cmove r8d, r12d
test dword [rax + 8], 0x80000000
je 0x14007d99f
or r8d, 1
mov edx, dword [rax + 4]
inc edx
lea rcx, [rbp + 0x88]
call fcn.14002a4b0
mov rax, qword [rbp + 0x88]
mov rbx, qword [rax + 0x10]
add rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001a740
mov rdx, rax
mov rax, qword [rdi + 0xf0]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r15d
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 r15b
test byte [rbp + 0x80], 1
je 0x14007da3c
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x14007da2e
cmp eax, 0xffffffff
je 0x14007da3c
lock dec dword [rcx]
jne 0x14007da3c
mov rcx, qword [rsp + 0x70]
mov r8d, 8
mov rdx, r12
call fcn.1400112a0
test r15b, r15b
jne 0x14007db19
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.14000dd60
mov rbx, rax
mov r9d, esi
xor r8d, r8d
lea rdx, [0x1413d6960]
lea rcx, [rsp + 0x68]
call fcn.140040450
nop
mov r13d, 0x20
mov word [rbp + 0x78], r13w
mov word [rsp + 0x20], r13w
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1400125d0
nop
mov rdx, rax
mov rcx, r14
call fcn.140030e20
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14007dab7
cmp eax, 0xffffffff
je 0x14007dac6
lock dec dword [rcx]
jne 0x14007dac6
mov rcx, qword [rsp + 0x60]
mov r8d, 8
mov rdx, r12
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x14007dae0
cmp eax, 0xffffffff
je 0x14007daef
lock dec dword [rcx]
jne 0x14007daef
mov rcx, qword [rsp + 0x68]
mov r8d, 8
mov rdx, r12
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x14007db09
cmp eax, 0xffffffff
je 0x14007db1f
lock dec dword [rcx]
jne 0x14007db1f
mov rcx, qword [rsp + 0x58]
mov r8d, 8
mov rdx, r12
call fcn.1400112a0
jmp 0x14007db1f
mov r13d, 0x20
mov rcx, qword [rdi + 0x140]
cmp rcx, 0xffffffffffffffff
je 0x14007db39
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x140], rsi
mov rcx, qword [rdi + 0x1a0]
cmp rcx, 0xffffffffffffffff
je 0x14007db53
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x1a0], rsi
mov rcx, qword [rdi + 0x1f8]
cmp rcx, 0xffffffffffffffff
je 0x14007db6d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x1f8], rsi
test r15b, r15b
jne 0x14007db9d
mov rcx, rdi
call fcn.14003f0b0
mov dword [rdi + 0xdc], 0
xor edx, edx
mov rcx, r14
call fcn.14003f450
xor edx, edx
mov rcx, r14
call fcn.14003feb0
jmp 0x14007dca7
mov edx, r12d
mov rcx, r14
call fcn.14003feb0
cmp qword [rdi + 0xf0], 0
je 0x14007dca7
mov rax, qword [rdi + 0x38]
cmp qword [rax + 0x40], 0
je 0x14007dc9e
mov ecx, 0x10
call fcn.1400f8c88
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14007dbee
mov rdx, qword [rdi + 0xf0]
mov r8, r14
mov rdx, qword [rdx]
mov rcx, rax
call fcn.14007e6c0
nop
mov qword [rdi + 0x260], rax
mov dword [rsp + 0x28], 0
lea rdx, [0x1413d6980]
mov qword [rsp + 0x20], rdx
mov r9, r14
lea r8, [0x1413d6998]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140052ef0
lea rcx, [rbp - 0x80]
call fcn.140050f50
mov dl, 1
mov rcx, qword [rdi + 0x260]
call fcn.14007ea00
mov rcx, r13
call fcn.1400f8c88
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14007dc53
mov rdx, r14
mov rcx, rax
call fcn.1400b1c50
nop
mov qword [rdi + 0x258], rax
mov dword [rsp + 0x28], 0
lea rcx, [0x1413d69b0]
mov qword [rsp + 0x20], rcx
mov r9, r14
lea r8, [0x1413d69c0]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140052ef0
lea rcx, [rbp - 0x78]
call fcn.140050f50
mov edx, WSAAsyncSelect
mov rcx, qword [rdi + 0x258]
call fcn.1400b1d80
mov rcx, rdi
call fcn.14003ed50
nop
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x14007dcc5
cmp eax, 0xffffffff
je 0x14007dcd4
lock dec dword [rcx]
jne 0x14007dcd4
mov rcx, qword [rbp + 0x88]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14007dcee
cmp eax, 0xffffffff
je 0x14007dcfc
lock dec dword [rcx]
jne 0x14007dcfc
mov rcx, qword [rsp + 0x50]
mov r8d, 8
mov rdx, r12
call fcn.1400112a0
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret