Function at 0x140002960
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rbx, rdx
mov r15, rcx
cmp qword [rcx + 0xb0], 0
jne 0x14000322e
cmp byte [rcx + 0xa2], 0
jne 0x140003247
mov byte [rsp + 0x50], 0
mov rdx, qword [rdx]
mov rax, qword [rbx + 8]
sub rax, rdx
mov rcx, qword [rbx + 0x18]
cmp rcx, rax
ja 0x140003260
sub rax, rcx
cmp rax, 1
jb 0x140003279
add rdx, rcx
mov r8d, 1
lea rcx, [rsp + 0x50]
call fcn.14001b450
mov rcx, qword [rbx + 0x18]
inc rcx
mov qword [rbx + 0x18], rcx
cmp byte [rsp + 0x50], 1
jne 0x1400032af
xor esi, esi
mov qword [rsp + 0x68], rsi
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
cmp rcx, rax
ja 0x1400032e2
sub rax, rcx
cmp rax, 8
jb 0x1400032fb
add rdx, rcx
lea r8d, [rsi + 8]
lea rcx, [rsp + 0x68]
call fcn.14001b450
add qword [rbx + 0x18], 8
mov rcx, rbx
call fcn.1400138b0
test eax, eax
setne byte [rsp + 0x50]
mov rcx, rbx
call fcn.1400138b0
test eax, eax
setne byte [rsp + 0x51]
lea rdx, [rbp + 0xf0]
mov rcx, rbx
call fcn.140013a40
nop
lea rdx, [rbp + 0xd0]
mov rcx, rbx
call fcn.140013a40
nop
lea rdx, [rbp + 0x90]
mov rcx, rbx
call fcn.140013a40
nop
lea rdx, [rbp + 0x70]
mov rcx, rbx
call fcn.140013a40
nop
lea rdx, [rbp + 0xb0]
mov rcx, rbx
call fcn.140013a40
nop
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
cmp qword [rbx + 0x18], rax
jne 0x14000332f
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x20]
call fcn.140004fd0
nop
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x38]
call fcn.140004fd0
nop
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0x80]
lea rbx, [rdx + rax*2]
lea rdi, [rbp + 0x70]
cmovae rdi, qword [rbp + 0x70]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
sub rbx, rdi
mov rdx, rbx
sar rdx, 1
lea rcx, [rbp - 0x50]
call fcn.140006090
mov r14, qword [rbp - 0x50]
test al, al
je 0x140002b54
lea rcx, [rbp - 0x78]
call fcn.140006080
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.14001b450
lea rax, [r14 + rbx]
mov qword [rbp - 0x48], rax
cmp qword [rbp + 0x100], 0
jne 0x140002b63
mov rbx, rsi
jmp 0x140002b7a
lea rbx, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae rbx, qword [rbp + 0xf0]
mov r12, qword [rbp - 0x20]
cmp qword [rbp + 0xe0], 0
cmove r12, rsi
cmp qword [rbp + 0xa0], 0
jne 0x140002b99
mov rdi, rsi
jmp 0x140002bb0
lea rdi, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rdi, qword [rbp + 0x90]
mov r13, r14
cmp qword [rbp + 0x80], 0
cmove r13, rsi
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp]
call fcn.140019600
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov dword [rbp], 0x68
mov rax, qword [rbp - 0x38]
cmp qword [rbp + 0xc0], 0
cmove rax, rsi
mov qword [rbp + 0x10], rax
mov eax, esi
cmp byte [r15 + 0x38], al
je 0x140002c3b
mov dword [rsp + 0x58], 1
or dword [rbp + 0x3c], 0x100
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x50], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x58], rax
mov rax, qword [r15 + 0x78]
mov r8, qword [rax]
mov qword [rbp + 0x60], r8
mov eax, dword [rsp + 0x58]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x140002c7f
mov edi, esi
jmp 0x140002c87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, str.success
lea rdx, str.fail
test ebx, ebx
cmovne rdx, rax
mov r8d, dword [rbp - 0x58]
lea rcx, str.CreateProcess:__s__u
call fcn.1400146a0
lea rcx, [rsp + 0x70]
call fcn.140001500
nop
test ebx, ebx
je 0x140002e40
mov r13, rsi
mov r12, rsi
cmp byte [rsp + 0x50], r12b
je 0x140002d14
mov rdi, qword [rbp - 0x68]
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x60]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140003363
mov r13, qword [rsp + 0x60]
cmp byte [rsp + 0x51], r12b
je 0x140002d64
mov rdi, qword [rbp - 0x60]
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x60]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14000337c
mov r12, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x68]
mov qword [r15 + 0xb0], rax
mov rcx, qword [rsp + 0x68]
movzx eax, cl
and al, 1
mov byte [r15 + 0xa0], al
shr cl, 1
and cl, 1
mov byte [r15 + 0xa1], cl
mov dword [rsp + 0x58], 1
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x50], 1
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x50], 1
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
jmp 0x140002ea7
mov dword [rsp + 0x58], esi
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
mov dword [rsp + 0x58], edi
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140013ec0
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
sub rax, rcx
mov qword [rsp + 0x68], rax
cmp rax, 8
jb 0x140003215
mov r8d, 8
lea rdx, [rsp + 0x68]
call fcn.14001b450
mov rcx, qword [r15 + 0x80]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
sub r8, rdx
test byte [rcx + 0x48], 2
je 0x140003395
add rcx, 0x78
call fcn.140004db0
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002f52
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033ae
call fcn.140017530
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
test r14, r14
je 0x140002f93
mov rax, qword [rbp - 0x40]
sub rax, r14
sar rax, 1
lea rdx, [rax + rax]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002f8a
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033b4
mov rcx, r14
call fcn.140017530
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140002fe0
mov rax, qword [rbp - 0x28]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033ba
call fcn.140017530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rsi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14000302d
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000301c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033c0
call fcn.140017530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x140003073
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000306e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033c6
call fcn.140017530
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], si
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x1400030cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033cc
call fcn.140017530
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], si
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x14000312b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003126
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033d2
call fcn.140017530
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], si
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x14000318a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003185
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033d8
call fcn.140017530
mov qword [rbp + 0xe0], rsi
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], si
mov rdx, qword [rbp + 0x108]
cmp rdx, 8
jb 0x1400031e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000320f
call fcn.140017530
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400174d0
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001bb5c
nop
lea r8, str.pos___m_buf.size____len___m_buf.size_____pos
mov edx, 0x2e
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_shared_buffer.cc
call fcn.140017100
nop
lea r8, str.m_childProcess__nullptr
mov edx, 0x160
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_agent.cc
call fcn.140017100
int3
lea r8, str._m_closingOutputPipes
mov edx, 0x161
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_agent.cc
call fcn.140017100
int3
lea r8, str.m_off___m_buf.size__
mov edx, 0x45
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_shared_buffer.cc
call fcn.140017100
int3
lea rdx, str.len___m_buf.size_____m_off
lea rcx, str.decode_error:__s
call fcn.1400146a0
xor esi, esi
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x58]
call fcn.140013890
lea rdx, [0x140040320]
lea rcx, [rsp + 0x58]
call fcn.1400194b0
int3
lea rdx, str.getRawValue_Piece_____Piece::Int64
lea rcx, str.decode_error:__s
call fcn.1400146a0
xor esi, esi
mov qword [rbp - 0x70], rsi
lea rcx, [rbp - 0x70]
call fcn.140013890
lea rdx, [0x140040320]
lea rcx, [rbp - 0x70]
call fcn.1400194b0
int3
lea r8, str.m_off___m_buf.size__
mov edx, 0x45
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_shared_buffer.cc
call fcn.140017100
int3
lea rdx, str.len___m_buf.size_____m_off
lea rcx, str.decode_error:__s
call fcn.1400146a0
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x60]
call fcn.140013890
lea rdx, [0x140040320]
lea rcx, [rsp + 0x60]
call fcn.1400194b0
nop
lea rdx, str.m_off__m_buf.size__
lea rcx, str.decode_error:__s
call fcn.1400146a0
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x60]
call fcn.140013890
lea rdx, [0x140040320]
lea rcx, [rsp + 0x60]
call fcn.1400194b0
nop
lea r8, str.false___DuplicateHandle_failed__
mov edx, 0x82
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_agent.cc
call fcn.140017100
int3
lea r8, str.false___DuplicateHandle_failed__
mov edx, 0x82
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_agent.cc
call fcn.140017100
int3
lea r8, str.m_openMode__OpenMode::Writing
mov edx, 0x129
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
int3