Function at 0x140017830
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
test rcx, rcx
jne 0x140017886
cmp byte [0x14003b80b], 1
jne 0x140017965
lea rdx, str.Handle_for_the_named_pipe_is_NULL__returning.
lea rcx, [0x14003bb40]
call fcn.14000b4e0
mov rcx, rax
lea rdx, [0x14000b980]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140017965
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, 0xa00000
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [0x14003b80b], 1
jne 0x140017965
lea rbx, [0x14003bb40]
mov rcx, rbx
lea rdx, str.Inside_readDataFromNamedPipe
call fcn.14000b4e0
mov rcx, rax
lea rdx, [0x14000b980]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, str.No_of_bytes_read_
mov rcx, rbx
call fcn.14000b4e0
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000b980]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, str.Data_read_is_:
mov rcx, rbx
call fcn.14000b4e0
mov rcx, rax
lea rdx, [0x14000b980]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rax
mov rdx, rdi
call fcn.14000b4e0
mov rcx, rax
lea rdx, [0x14000b980]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [0x14003bb48]
call fcn.14000a1b0
test rax, rax
jne 0x140017965
mov rax, qword [0x14003bb40]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
add rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140024a00
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret