Function at 0x4071a0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push 0xffffffffffffffff
push 0x40d018
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
mov eax, dword [0x41304c]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
cmp byte [0x415625], 0
je 0x4073f5
xor esi, esi
push 0x7f
lea eax, [esp + 0x1cd]
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1d4], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x1ac]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x254], esi
mov ebp, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [edi + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push edx
call ebp
push 0x32
call ebx
mov esi, dword [esp + 0x18]
test esi, esi
jbe 0x40722c
jle 0x4072ac
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [edi + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
push 0x7f
lea ecx, [esp + 0x1d4]
push ecx
push edx
call ebx
lea eax, [esp + 0x1c8]
push eax
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x24b], 0
call dword [0x40f1d0]
sub esi, dword [esp + 0x10]
test esi, esi
jg 0x407291
xor esi, esi
push 0x80
lea ecx, [esp + 0x1cc]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
jg 0x407253
cmp dword [esp + 0x1c4], 0x10
mov eax, dword [esp + 0x1b0]
jae 0x4072c4
lea eax, [esp + 0x1b0]
push 0
lea edx, [esp + 0xb0]
push eax
lea eax, [esp + 0xb0]
mov dword [esp + 0xb0], edx
call fcn.0040abc0
lea eax, [esp + 0x1c]
mov byte [esp + 0x254], 1
mov ecx, dword [esp + 0xa8]
push eax
call fcn.0040aa10
mov bl, 3
mov byte [esp + 0x254], bl
mov eax, dword [esp + 0xa8]
mov esi, dword [sym.imp.MSVCR90.dll_free]
lea ecx, [esp + 0xac]
cmp eax, ecx
je 0x407321
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x1c]
push 0xfde9
lea edx, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edx
call fcn.0040ab00
lea ecx, [esp + 0x14]
mov byte [esp + 0x254], 4
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0040a970
mov byte [esp + 0x254], 6
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x40736c
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x14]
push 0x1b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
call fcn.004082f0
mov byte [esp + 0x274], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x254], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x254], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
jmp 0x407415
push 0x1b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x415d7c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.004082f0
add esp, 0x20
xor al, al
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0040bc76
add esp, 0x248
ret