Function at 0x140015c40
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140015c7e
mov rdx, qword [rdx]
lea r8d, [rax + 1]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x1400337cb], 1
jne 0x140015d6b
lea rdx, str.Inside_writeDataToNamedPipe
lea rsi, [0x140033b00]
mov rcx, rsi
call fcn.14000a670
mov rcx, rax
lea rdx, [0x14000aab0]
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_written_
mov rcx, rsi
call fcn.14000a670
mov rcx, rax
mov edx, dword [rsp + 0x38]
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, [0x14000aab0]
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]
cmp qword [rbx + 0x18], 0x10
jb 0x140015d01
mov rdi, qword [rbx]
jmp 0x140015d04
mov rdi, rbx
lea rdx, str.Data_written_is_:
mov rcx, rsi
call fcn.14000a670
mov rcx, rax
lea rdx, [0x14000aab0]
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.14000a670
mov rcx, rax
lea rdx, [0x14000aab0]
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, [0x140033b08]
call fcn.140009510
test rax, rax
jne 0x140015d6b
mov rax, qword [0x140033b00]
movsxd rcx, dword [rax + 4]
add rcx, rsi
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
nop
mov rcx, rbx
call fcn.140007490
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001f400
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret