Function at 0x1400156c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
test rcx, rcx
jne 0x140015716
cmp byte [0x14003f80b], 1
jne 0x1400157f5
lea rdx, str.Handle_for_the_named_pipe_is_NULL__returning.
lea rcx, [0x14003fc50]
call fcn.14000ba70
mov rcx, rax
lea rdx, [0x14000bef0]
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 0x1400157f5
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, 0xa00000
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [0x14003f80b], 1
jne 0x1400157f5
lea rbx, [0x14003fc50]
mov rcx, rbx
lea rdx, str.Inside_readDataFromNamedPipe
call fcn.14000ba70
mov rcx, rax
lea rdx, [0x14000bef0]
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.14000ba70
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, [0x14000bef0]
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.14000ba70
mov rcx, rax
lea rdx, [0x14000bef0]
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.14000ba70
mov rcx, rax
lea rdx, [0x14000bef0]
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, [0x14003fc58]
call fcn.14000ac70
test rax, rax
jne 0x1400157f5
mov rax, qword [0x14003fc50]
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.140027890
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret