Function at 0x42eb90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a302
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0x28]
call fcn.00409940
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042f220
cmp dword [ebp - 0xa8], 0
jne 0x42f0f2
mov esi, dword [ebp + 8]
add esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0041a440
cmp esi, eax
jbe 0x42f0f2
mov esi, dword [ebp + 8]
add esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0041a440
sub esi, eax
mov dword [ebp - 0xfc], esi
lea ecx, [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0xa4]
add edx, 0x24
push edx
call fcn.004089a0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xb0], eax
push 1
lea ecx, [ebp - 0x408]
call fcn.004095c0
mov byte [ebp - 4], 1
push str.reading
lea ecx, [ebp - 0x408]
push ecx
call fcn.004054d0
add esp, 8
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0x100]
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_]
push str._bytes_of_received_message
push eax
call fcn.004054d0
add esp, 8
mov eax, dword [ebp - 0xa4]
add eax, 0x58
push eax
lea ecx, [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0x9c], eax
cmp dword [ebp - 0xb8], 0
jne 0x42efca
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 0x9c], 0x3e5
je 0x42ed43
push str.reading_pipe
lea ecx, [ebp - 0x40]
call fcn.004098b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa4]
add eax, 0x9c
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x40]
push edx
push 9
mov ecx, dword [ebp - 0xa4]
call fcn.0042c5c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040ae30
jmp 0x42efc5
mov dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x58], 0x103
je 0x42eee9
push 1
lea ecx, [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0xa4]
add edx, 0x58
push edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x42ee3f
push 1
lea ecx, [ebp - 0x370]
call fcn.004095c0
mov byte [ebp - 4], 3
push str.overlapped_read
lea edx, [ebp - 0x370]
push edx
call fcn.004054d0
add esp, 8
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x108]
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_]
push str.:_offset
push eax
call fcn.004054d0
add esp, 8
mov dword [ebp - 0x110], eax
lea ecx, [ebp - 0x28]
call fcn.0041a440
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x110]
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_int_]
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00425b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x370]
call fcn.0040e4f0
jmp 0x42eee5
push 1
lea ecx, [ebp - 0x1a8]
call fcn.004095c0
mov byte [ebp - 4], 4
push str.overlapped_result_when_reading
lea edx, [ebp - 0x1a8]
push edx
call fcn.004054d0
add esp, 8
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xbc]
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, dword [ebp - 0xa4]
add ecx, 0x9c
push ecx
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0041b9b0
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xc4]
push edx
push 0xb
mov ecx, dword [ebp - 0xa4]
call fcn.0042c5c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.0040ae30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a8]
call fcn.0040e4f0
jmp 0x42ef10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xb4]
add eax, 0x64
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0x2710
jb 0x42ed4d
cmp dword [ebp - 0xb4], 0x2710
jb 0x42efc5
push 1
lea ecx, [ebp - 0x240]
call fcn.004095c0
mov byte [ebp - 4], 6
push str.waiting_after_reading
lea ecx, [ebp - 0x240]
push ecx
call fcn.004054d0
add esp, 8
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0xc8]
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 eax, dword [ebp - 0xa4]
add eax, 0x9c
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x240]
call fcn.0041b9b0
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xd0]
push ecx
push 0xa
mov ecx, dword [ebp - 0xa4]
call fcn.0042c5c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.0040ae30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.0040e4f0
jmp 0x42f0de
mov edx, dword [ebp - 0xac]
cmp edx, dword [ebp - 0xb0]
jae 0x42f0cb
push 1
lea ecx, [ebp - 0x2d8]
call fcn.004095c0
mov byte [ebp - 4], 8
push str.read
lea eax, [ebp - 0x2d8]
push eax
call fcn.004054d0
add esp, 8
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
push edx
mov ecx, dword [ebp - 0xd8]
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_]
push str._requested
push eax
call fcn.004054d0
add esp, 8
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xdc]
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_]
push 0x453eec
push eax
call fcn.004054d0
add esp, 8
mov ecx, dword [ebp - 0xa4]
add ecx, 0x9c
push ecx
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.0041b9b0
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xe4]
push edx
push 0xc
mov ecx, dword [ebp - 0xa4]
call fcn.0042c5c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88]
call fcn.0040ae30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
call fcn.0040e4f0
jmp 0x42f0de
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00425b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x408]
call fcn.0040e4f0
jmp 0x42ebf1
mov esi, dword [ebp + 8]
add esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0041a440
cmp esi, eax
jbe 0x42f1aa
push 1
lea ecx, [ebp - 0x4a0]
call fcn.004095c0
mov byte [ebp - 4], 0xa
push str.expected
lea edx, [ebp - 0x4a0]
push edx
call fcn.004054d0
add esp, 8
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xe8]
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_]
push str._actual
push eax
call fcn.004054d0
add esp, 8
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0x28]
call fcn.0041a440
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
push ecx
mov ecx, dword [ebp - 0xf0]
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_int_]
push str._reading_pipe
push eax
call fcn.004054d0
add esp, 8
cmp dword [ebp - 0xa8], 0
jne 0x42f199
mov dword [ebp - 0xa8], 3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a0]
call fcn.0040e4f0
jmp 0x42f1df
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041bbd0
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0041d400
lea ecx, [ebp - 0xa0]
call fcn.0040ae30
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ae30
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret 0x10