Function at 0x1400a5680
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 - 0x78]
sub rsp, 0x178
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rdi, rcx
mov r14, qword [rcx + 8]
mov rcx, qword [rcx + 0xf0]
xor r12d, r12d
test rcx, rcx
je 0x1400a56e9
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]
lea edx, [r12 + 0x18]
mov rcx, qword [rdi + 0xf0]
call fcn.140102ba0
mov qword [rdi + 0xf0], r12
mov ecx, 0x18
call fcn.140102b64
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.140040c40
lea rdx, [rdi + 0x100]
mov rcx, rdi
call fcn.1400a3db0
test al, al
je 0x1400a5cad
lea rdx, [rdi + 0x138]
mov rcx, rdi
call fcn.1400a3db0
test al, al
je 0x1400a5cad
lea rdx, [rdi + 0x170]
mov rcx, rdi
call fcn.1400a3db0
test al, al
je 0x1400a5cad
lea r8, [rdi + 0x1b0]
lea rdx, [rdi + 0x1a8]
lea rcx, [rbp + 0xd8]
call fcn.1400a4360
nop
lea rax, [0x1401885d8]
mov qword [rbp + 0xd0], rax
lea r15, [rdi + 0x200]
mov rdx, qword [r15]
or rsi, 0xffffffffffffffff
test rdx, rdx
je 0x1400a57e9
add rdx, 8
lea rcx, [rsp + 0x60]
call fcn.1400a4780
mov rdx, qword [rbp + 0xd0]
mov qword [rbp + 0x58], rdx
mov rcx, qword [rax]
mov qword [rbp + 0xd0], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400a57db
cmp eax, esi
je 0x1400a57e9
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, ebx
jne 0x1400a57e9
mov rcx, qword [rsp + 0x60]
mov r8d, 8
mov rdx, rbx
call fcn.140035d80
mov rax, qword [rdi + 0x1b8]
mov r13d, 0x20
cmp dword [rax + 4], 0
je 0x1400a5834
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 4], 0
je 0x1400a5821
mov word [rbp + 0xc0], r13w
movzx edx, r13w
lea rcx, [rbp + 0xd8]
call fcn.140009090
lea rdx, [rdi + 0x1b8]
lea rcx, [rbp + 0xd8]
call fcn.140023030
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov ebx, 0x8000000
test rax, rax
cmovne ebx, r12d
bts ebx, 0xa
mov dword [rbp - 0x20], 0x68
mov qword [rbp - 0x18], r12
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
movabs rax, 0x8000000080000000
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r12
mov dword [rbp + 0x18], r12d
mov qword [rbp + 0x1c], 0x100
mov qword [rbp + 0x28], r12
mov rax, qword [rdi + 0x120]
mov qword [rbp + 0x30], rax
mov rax, qword [rdi + 0x160]
mov qword [rbp + 0x38], rax
mov rax, qword [rdi + 0x198]
mov qword [rbp + 0x40], rax
lea rdx, [rdi + 0xe8]
lea rcx, [rsp + 0x58]
call fcn.140031600
nop
mov qword [rbp - 0x80], r12
lea rcx, [rbp + 0xd8]
call fcn.14002b720
mov qword [rbp - 0x78], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x60], 1
mov dword [rbp - 0x5c], ebx
mov rcx, r15
call fcn.1400403e0
test al, al
je 0x1400a58eb
mov qword [rbp - 0x58], r12
jmp 0x1400a5934
mov rax, qword [rbp + 0xd0]
cmp dword [rax], 1
ja 0x1400a58fe
cmp qword [rax + 0x10], 0x18
je 0x1400a5929
mov r8d, r12d
cmp dword [rax + 8], 0x80000000
mov ecx, 1
cmovae r8d, ecx
mov edx, dword [rax + 4]
inc edx
lea rcx, [rbp + 0xd0]
call fcn.140037e30
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rsp + 0x58]
cmp dword [rax + 4], 0
jne 0x1400a5944
mov rax, r12
jmp 0x1400a594e
lea rcx, [rsp + 0x58]
call fcn.14002b720
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x48], rdx
mov r8, qword [rdi + 0xf0]
mov qword [rbp - 0x40], r8
cmp qword [rdi + 0x1f8], 0
je 0x1400a599f
lea rax, [rbp - 0x80]
mov qword [rbp - 0x30], rax
mov rcx, qword [rdi + 0x1f8]
test rcx, rcx
jne 0x1400a5989
call fcn.14010085c
int3
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax + 0x10]
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x50]
movzx ecx, byte [rbp - 0x60]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne r15b
lea rax, [0x1401885d8]
mov qword [rsp + 0x50], rax
test r15b, r15b
jne 0x1400a5adf
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.140079d10
mov rbx, rax
mov r9d, esi
xor r8d, r8d
lea rdx, [0x1401efa58]
lea rcx, [rsp + 0x70]
call fcn.1400413b0
nop
mov word [rbp + 0xc8], r13w
mov word [rsp + 0x20], r13w
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140023580
mov rdx, qword [rsp + 0x50]
mov qword [rbp + 0x60], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400a5a73
cmp eax, 0xffffffff
je 0x1400a5a82
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a5a82
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400a5aa2
cmp eax, 0xffffffff
je 0x1400a5ab1
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a5ab1
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
nop
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400a5ad1
cmp eax, 0xffffffff
je 0x1400a5adf
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a5adf
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rcx, qword [rdi + 0x120]
cmp rcx, 0xffffffffffffffff
je 0x1400a5af9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x120], rsi
mov rcx, qword [rdi + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x1400a5b13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x160], rsi
mov rcx, qword [rdi + 0x198]
cmp rcx, 0xffffffffffffffff
je 0x1400a5b2d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x198], rsi
test r15b, r15b
jne 0x1400a5b58
mov rcx, rdi
call fcn.14003fb70
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call fcn.140040bb0
xor edx, edx
mov rcx, r14
call fcn.140040c40
jmp 0x1400a5bec
mov edx, 2
mov rcx, r14
call fcn.140040c40
cmp qword [rdi + 0xf0], 0
je 0x1400a5bec
mov rax, qword [rdi + 0x38]
cmp qword [rax + 0x48], 0
je 0x1400a5be3
mov ecx, 0x10
call fcn.140102b64
mov qword [rbp + 0x68], rax
mov rdx, qword [rdi + 0xf0]
mov r8, r14
mov rdx, qword [rdx]
mov rcx, rax
call fcn.1400a6830
nop
mov qword [rdi + 0x238], rax
mov dword [rsp + 0x28], r12d
lea rcx, [0x1401efa78]
mov qword [rsp + 0x20], rcx
mov r9, r14
lea r8, [0x1401efa90]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14004d170
lea rcx, [rbp - 0x28]
call fcn.14004b0c0
mov dl, 1
mov rcx, qword [rdi + 0x238]
call fcn.1400a6b20
mov rcx, rdi
call fcn.14003f950
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400a5c0c
cmp eax, 0xffffffff
je 0x1400a5c1b
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a5c1b
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400a5c3b
cmp eax, 0xffffffff
je 0x1400a5c4a
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a5c4a
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
nop
mov rcx, qword [rbp + 0xd0]
mov eax, dword [rcx]
test eax, eax
je 0x1400a5c6e
cmp eax, 0xffffffff
je 0x1400a5c7d
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a5c7d
mov rcx, qword [rbp + 0xd0]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140035d80
nop
mov rcx, qword [rbp + 0xd8]
mov eax, dword [rcx]
test eax, eax
je 0x1400a5c9f
cmp eax, 0xffffffff
je 0x1400a5cad
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x1400a5cad
mov rcx, qword [rbp + 0xd8]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret