Function at 0x14000f270
Capabilities:
Create thread
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400cfce8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbp, r8
movzx ebx, dl
test r8, r8
jne 0x14000f2aa
mov byte [0x1400d1571], r8b
xor eax, eax
jmp 0x14000f515
movzx edx, r9b
xor ecx, ecx
call fcn.14000cf30
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000f515
lea rax, str.Xregisterstatelistener
lea rdx, str.registerstatelistener
test bl, bl
cmovne rdx, rax
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14000f300
lea rcx, [rsp + 0x48]
call fcn.14000a730
nop
lea rcx, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x60]
cmp r9, 8
cmovae rcx, r8
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000f330
add eax, eax
lea rdx, [rsp + 0x48]
cmp r9, 8
cmovae rdx, r8
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x34]
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000f38c
lea rdx, str.ERROR_writing_command_to_namedPipe:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
jmp 0x14000f3c5
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x34]
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000f3da
lea rdx, str.ERROR_reading_output_namedPipe
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14000f4ce
mov rcx, qword [0x1400d17f0]
test rcx, rcx
je 0x14000f3f2
mov byte [0x1400d16d9], 1
call fcn.14000ed90
mov byte [0x1400d16d9], 0
mov ecx, reloc.WS2_32.dll_recv
call fcn.140055554
mov rbx, rax
test rax, rax
je 0x14000f413
xorps xmm0, xmm0
movups xmmword [rax], xmm0
jmp 0x14000f416
mov rbx, r14
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov qword [rbx + 8], rbp
mov ecx, reloc.WS2_32.dll_recv
call fcn.140055554
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000f48e
mov ecx, reloc.WS2_32.dll_recv
call fcn.140055554
test rax, rax
je 0x14000f456
mov qword [rax], rbx
lea rcx, [0x14000f240]
mov qword [rax + 8], rcx
jmp 0x14000f459
mov rax, r14
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14000cd40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14000f537
jmp 0x14000f491
mov rdi, r14
mov rcx, qword [0x1400d17f0]
mov qword [0x1400d17f0], rdi
test rcx, rcx
je 0x14000f4bb
cmp dword [rcx + 8], 0
je 0x14000f4b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, reloc.WS2_32.dll_recv
call fcn.140055590
mov byte [0x1400d1571], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r14d
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14000f513
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f50e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f50e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140055ba0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov dword [rbx], r14d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3