Function at 0x401120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409e0b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push str..pipeMyPipe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0x402100
cmp ebx, 0xffffffff
jne 0x4011a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Failed_to_open_named_pipe._Error_code:
push eax
call fcn.00401ec0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, 1
jmp 0x401360
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Reading_data_from_server...
call fcn.00401ec0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x104
xor edi, edi
lea eax, [ebp - 0x114]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x118]
add esp, 0xc
push edi
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call esi
test eax, eax
je 0x401314
nop dword [eax]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x40121d
mov eax, dword [edx]
jmp 0x40121f
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x114], 0
jne 0x40122f
xor eax, eax
jmp 0x401247
lea eax, [ebp - 0x114]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401238
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea eax, [ebp - 0x114]
mov ecx, edx
push eax
call fcn.004019c0
lea ecx, [ebp - 0x130]
call section..text
add esp, 0x18
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x130]
cmp dword [ebp - 0x11c], 8
cmovae ecx, dword [ebp - 0x130]
call fcn.00404880
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x114]
push 0x402100
test eax, eax
jne 0x4012a5
call fcn.00401ec0
mov edx, str._has_been_deleted_
jmp 0x4012af
call fcn.00401ec0
mov edx, str._deleted_failed_
mov ecx, eax
call fcn.00401ec0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov dword [ebp - 4], 0xffffffff
inc edi
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x4012de
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00401730
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push 0
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call esi
test eax, eax
jne 0x401200
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.total_file:
push 0x402100
push edi
call fcn.00401ec0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.close_pipe.
push 0x402100
call fcn.00401ec0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408c6a
mov esp, ebp
pop ebp
ret