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

Disassembly:
push ebp
lea ebp, [esp - 0x458]
sub esp, 0x458
push 0xffffffffffffffff
push 0x4cfc55
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp + 0x454], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x464]
mov ecx, esi
mov ebx, dword [ebp + 0x460]
push 0
push 0x4dbc50
call fcn.00404760
cmp ebx, 0xffffffff
je 0x462490
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4624a1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x46246d
mov edi, dword [ebp + 0x468]
nop dword [eax + eax]
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jae 0x462417
mov dword [ebp + 0x4c], eax
lea edx, [ebp + 0x4c]
mov eax, edi
mov dword [ebp + 0x48], 0x400
sub eax, ecx
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x50], eax
mov eax, dword [edx]
cmp eax, dword [ecx]
lea eax, [ebp + 0x54]
cmovb ecx, edx
add edx, 4
cmp edx, eax
jne 0x462302
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ecx]
lea eax, [ebp + 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4623db
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x54]
sub dword [ebp - 0x10], eax
lea edi, [ebp + 0x54]
add eax, ecx
mov dword [ebp + 0x30], 0
xor ecx, ecx
mov edx, 0xf
cmp edi, eax
mov dword [ebp + 0x40], ecx
mov edi, dword [ebp + 0x468]
mov dword [ebp + 0x44], edx
mov byte [ebp + 0x30], cl
je 0x462374
lea ecx, [ebp + 0x54]
sub eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp + 0x30]
push eax
call fcn.00404760
mov edx, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x40]
cmp edx, 0x10
mov dword [ebp - 4], 4
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push ecx
push eax
mov ecx, esi
call fcn.00428fc0
mov edx, dword [ebp + 0x44]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4623c5
mov ecx, dword [ebp + 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4623bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4623d5
push edx
push ecx
call fcn.004c7626
add esp, 8
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4622e0
jmp 0x46246d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp]
push eax
call fcn.0045ddb0
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00404850
push eax
lea eax, [ebp + 0x18]
push str.fail_to_read_data_from_the_pipe_____s
push eax
call fcn.0049f320
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x4624d8
test eax, eax
je 0x46246d
lea eax, [ebp + 0x4c]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp + 0x4c]
mov dword [ebp - 4], 5
test ecx, ecx
je 0x462445
lea eax, [ebp - 0x10]
push eax
push str.PROCESS:_too_much_data_stay_in_pipe__drop__d_bytes_n
push 2
call fcn.00457ab0
mov esi, dword [ebp + 0x50]
test esi, esi
je 0x46246d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46246d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x46246d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x454]
xor ecx, ebp
call fcn.004c75e8
lea esp, [ebp + 0x458]
pop ebp
ret
push 0x60
push str..._tech1utils_src_run_process.cpp
push str.pipe___INVALID_HANDLE_VALUE
call fcn.00462910
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0045ddb0
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00404850
push eax
lea eax, [ebp]
push str.unable_to_determine_the_size_of_the_data_available_in_the_pipe_____s
push eax
call fcn.0049f320
add esp, 0xc
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0x3c]
call fcn.0045ad10
push 0x4f2dc0
lea eax, [ebp + 0x3c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3