Function at 0x14000ed70
Capabilities:
Check os version
Connect pipe
Create pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov edi, r9d
mov r12d, r8d
mov rsi, rdx
mov r14, rcx
mov r15d, dword [rbp + 0x150]
cmp qword [rcx + 0x98], 0
jne 0x14000f219
mov ebx, r8d
and ebx, 3
je 0x14000f232
or ebx, 0x40080000
lea rcx, [rsp + 0x58]
call fcn.140015ac0
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14000f200
xor r13d, r13d
mov qword [rsp + 0x40], 0x18
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x7c]
call fcn.140019600
mov dword [rsp + 0x78], 0x11c
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000f1ce
mov rax, qword [rsp + 0x78]
shr rax, 0x20
cmp eax, 6
jb 0x14000ee49
lea r8d, [r13 + 8]
jmp 0x14000ee58
lea rcx, str.Omitting_PIPE_REJECT_REMOTE_CLIENTS_on_pre_Vista_OS
call fcn.1400146a0
mov r8d, r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x7530
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
mov r9d, 1
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call fcn.140014120
mov rdi, 0xffffffffffffffff
test al, al
je 0x14000ef9f
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp + 0xa8], xmm0
mov word [rbp + 0x98], r13w
mov r8, rdi
inc r8
cmp word [rsi + r8*2], r13w
jne 0x14000eeb6
mov rdx, rsi
lea rcx, [rbp + 0x98]
call fcn.140004ad0
nop
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0xb8]
call fcn.140015280
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000eeee
mov rax, qword [rax]
mov r8, rbx
mov rdx, rax
lea rcx, str.opened_server_pipe___s___handle___p
call fcn.1400146a0
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0x10
jb 0x14000ef42
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ef3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f24b
call fcn.140017530
movdqa xmm0, xmmword [0x14003abb0]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
mov rdx, qword [rbp + 0xb0]
cmp rdx, 8
jb 0x14000ef9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ef9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f251
call fcn.140017530
cmp rbx, 0xffffffffffffffff
je 0x14000f2c6
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14000efb0
mov rdx, rsi
mov rcx, r14
call fcn.140004ad0
mov qword [r14 + 0x98], rbx
mov dword [r14 + 0x48], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
je 0x14000f2ad
mov qword [rsp + 0x70], rax
mov rdx, qword [r14 + 0x40]
lea rcx, [rdx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000f013
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000f257
mov qword [r14 + 0x40], rbx
lea rdx, [r14 + 0x20]
mov qword [r14 + 0x20], r13
mov qword [r14 + 0x28], r13
mov qword [r14 + 0x30], r13
mov rax, qword [r14 + 0x40]
mov qword [r14 + 0x38], rax
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14000f05f
cmp eax, 0x217
je 0x14000f05f
cmp eax, 0x3e5
jne 0x14000f1e7
jmp 0x14000f196
call fcn.140014120
test al, al
je 0x14000f16d
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp + 0xa8], xmm0
mov word [rbp + 0x98], r13w
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14000f084
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0x98]
call fcn.140004ad0
nop
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0xb8]
call fcn.140015280
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000f0bf
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.Server_pipe___s__connected
call fcn.1400146a0
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0x10
jb 0x14000f110
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f10b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f27c
call fcn.140017530
movdqa xmm0, xmmword [0x14003abb0]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
mov rdx, qword [rbp + 0xb0]
cmp rdx, 8
jb 0x14000f16d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f168
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f282
call fcn.140017530
mov rcx, qword [r14 + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000f189
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000f288
mov qword [r14 + 0x40], r13
mov rcx, r14
call fcn.14000f530
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000f1ab
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1400174d0
add rsp, 0x1e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, str.success___GetVersionEx_failed_
mov edx, 0x3a
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_sharedwindowsversion.cc
call fcn.140017100
int3
lea r8, str.false___ConnectNamedPipe_call_failed_
mov edx, 0xfa
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
int3
lea r8, str.sd___error_creating_data_pipe_SECURITY_DESCRIPTOR_
mov edx, 0xd8
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
nop
lea r8, str.isClosed__
mov edx, 0xd0
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
int3
lea r8, str._openMode__OpenMode::Duplex____0
mov edx, 0xd1
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
mov rdx, qword [r14 + 0x40]
lea rcx, str.CloseHandle__p__failed
call fcn.1400146a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CloseHandle_failed
call fcn.140017360
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
int3
mov rdx, qword [r14 + 0x40]
lea rcx, str.CloseHandle__p__failed
call fcn.1400146a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CloseHandle_failed
call fcn.140017360
int3
lea r8, str.ret___nullptr___CreateEventW_failed_
mov edx, 0x56
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
int3
lea r8, str.handle___INVALID_HANDLE_VALUE___Could_not_open_server_pipe_
mov edx, 0xe7
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
int3