Function at 0x14007d980
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 0x14007d9eb
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.14001c480
mov qword [rdi + 0xf0], r13
mov ecx, 0x18
call fcn.1400f85d8
mov qword [rdi + 0xf0], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov ebx, 1
mov edx, ebx
mov rcx, r14
call fcn.140040ab0
lea rdx, [rdi + 0x100]
mov rcx, rdi
call fcn.14007bff0
test al, al
je 0x14007df62
lea rdx, [rdi + 0x158]
mov rcx, rdi
call fcn.14007bff0
test al, al
je 0x14007df62
lea rdx, [rdi + 0x1b0]
mov rcx, rdi
call fcn.14007bff0
test al, al
je 0x14007df62
lea r8, [rdi + 0x210]
lea rdx, [rdi + 0x208]
lea rcx, [rsp + 0x50]
call fcn.14007c600
nop
lea rax, [0x141524b70]
mov qword [rbp + 0x88], rax
mov rdx, qword [rdi + 0x220]
or rsi, 0xffffffffffffffff
test rdx, rdx
je 0x14007dadd
add rdx, 8
lea rcx, [rsp + 0x78]
call fcn.14007c9e0
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 0x14007dacf
cmp eax, esi
je 0x14007dadd
lock dec dword [rcx]
jne 0x14007dadd
mov rcx, qword [rsp + 0x78]
mov r8d, 8
mov rdx, rbx
call fcn.140011e00
mov rax, qword [rdi + 0x218]
mov ecx, 0x20
cmp dword [rax + 4], 0
je 0x14007db1c
mov rax, qword [rsp + 0x50]
cmp dword [rax + 4], 0
je 0x14007db0b
mov word [rbp + 0x70], cx
movzx edx, cx
lea rcx, [rsp + 0x50]
call fcn.140008330
lea rdx, [rdi + 0x218]
lea rcx, [rsp + 0x50]
call fcn.1400130d0
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
jne 0x14007dba5
mov ebx, 1
jmp 0x14007dbc6
lea rcx, [rsp + 0x70]
call fcn.140023b40
nop
mov ebx, 1
mov dword [rbp + 0x80], ebx
mov rcx, rax
call fcn.14001b320
mov r13, rax
lea rcx, [rdi + 0x220]
call fcn.1400403f0
test al, al
je 0x14007dbda
xor ebx, ebx
jmp 0x14007dc1d
mov rax, qword [rbp + 0x88]
cmp dword [rax], 1
ja 0x14007dbed
cmp qword [rax + 0x10], 0x18
je 0x14007dc16
test dword [rax + 8], 0x80000000
mov r8d, 0
cmovne r8d, ebx
mov edx, dword [rax + 4]
inc edx
lea rcx, [rbp + 0x88]
call fcn.14002b200
mov rax, qword [rbp + 0x88]
mov rbx, qword [rax + 0x10]
add rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14001b320
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 ebx, 1
mov dword [rsp + 0x20], ebx
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], bl
je 0x14007dc9b
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x14007dc8d
cmp eax, 0xffffffff
je 0x14007dc9b
lock dec dword [rcx]
jne 0x14007dc9b
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
test r15b, r15b
jne 0x14007dd7d
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.14000e720
mov rbx, rax
mov r9d, esi
xor r8d, r8d
lea rdx, [0x14159c138]
lea rcx, [rsp + 0x68]
call fcn.140041030
nop
mov r12d, 0x20
mov word [rbp + 0x78], r12w
mov word [rsp + 0x20], r12w
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1400132e0
nop
mov rdx, rax
mov rcx, r14
call fcn.140031bb0
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14007dd16
cmp eax, 0xffffffff
je 0x14007dd25
lock dec dword [rcx]
jne 0x14007dd25
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x14007dd3f
cmp eax, 0xffffffff
je 0x14007dd4e
lock dec dword [rcx]
jne 0x14007dd4e
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x14007dd68
cmp eax, 0xffffffff
je 0x14007dd76
lock dec dword [rcx]
jne 0x14007dd76
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov ebx, 1
jmp 0x14007dd83
mov r12d, 0x20
mov rcx, qword [rdi + 0x140]
cmp rcx, 0xffffffffffffffff
je 0x14007dd9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x140], rsi
mov rcx, qword [rdi + 0x1a0]
cmp rcx, 0xffffffffffffffff
je 0x14007ddb7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x1a0], rsi
mov rcx, qword [rdi + 0x1f8]
cmp rcx, 0xffffffffffffffff
je 0x14007ddd1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x1f8], rsi
test r15b, r15b
jne 0x14007de01
mov rcx, rdi
call fcn.14003fc40
mov dword [rdi + 0xdc], 0
xor edx, edx
mov rcx, r14
call fcn.140040060
xor edx, edx
mov rcx, r14
call fcn.140040ab0
jmp 0x14007df0d
mov edx, 2
mov rcx, r14
call fcn.140040ab0
cmp qword [rdi + 0xf0], 0
je 0x14007df0d
mov rax, qword [rdi + 0x38]
cmp qword [rax + 0x40], 0
je 0x14007df04
mov ecx, 0x10
call fcn.1400f85d8
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14007de54
mov rdx, qword [rdi + 0xf0]
mov r8, r14
mov rdx, qword [rdx]
mov rcx, rax
call fcn.14007e9b0
nop
mov qword [rdi + 0x260], rax
mov dword [rsp + 0x28], 0
lea rdx, [0x14159c158]
mov qword [rsp + 0x20], rdx
mov r9, r14
lea r8, [0x14159c170]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14005c1a0
lea rcx, [rbp - 0x80]
call fcn.14005a240
mov dl, 1
mov rcx, qword [rdi + 0x260]
call fcn.14007ecd0
mov rcx, r12
call fcn.1400f85d8
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14007deb9
mov rdx, r14
mov rcx, rax
call fcn.1400b2ad0
nop
mov qword [rdi + 0x258], rax
mov dword [rsp + 0x28], 0
lea rcx, [0x14159c188]
mov qword [rsp + 0x20], rcx
mov r9, r14
lea r8, [0x14159c198]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14005c1a0
lea rcx, [rbp - 0x78]
call fcn.14005a240
mov edx, WSAAsyncSelect
mov rcx, qword [rdi + 0x258]
call fcn.1400b2c00
mov rcx, rdi
call fcn.14003f890
nop
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x14007df2b
cmp eax, 0xffffffff
je 0x14007df3a
lock dec dword [rcx]
jne 0x14007df3a
mov rcx, qword [rbp + 0x88]
mov r8d, 8
mov rdx, rbx
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14007df54
cmp eax, 0xffffffff
je 0x14007df62
lock dec dword [rcx]
jne 0x14007df62
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret