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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10024
call fcn.00441060
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
xor ebx, ebx
push 0x45bba0
mov dword [ebp - 0x14], esi
mov byte [ebp - 2], 1
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x10024], bl
call fcn.00403877
cmp dword [ebp + 0xc], ebx
je 0x425959
mov ecx, dword [ebp + 8]
push ebx
call fcn.00405163
mov ecx, eax
call fcn.004031f5
push eax
lea ecx, [esi + 0x320c]
call fcn.00404f5f
mov edi, eax
cmp edi, ebx
je 0x425969
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0040284a
test al, al
jne 0x42597b
jmp 0x425969
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x425978
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040c93f
jmp 0x425a64
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0xc], ebx
setne al
mov esi, eax
cmp dword [ecx], esi
jbe 0x4259a1
push esi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jmp 0x4259a5
or dword [ebp - 0xc], 0xffffffff
lea eax, [esi + 2]
cmp dword [ecx], eax
jne 0x4259c2
inc esi
push esi
call fcn.00405163
mov ecx, eax
call fcn.00403335
test al, al
je 0x4259c2
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0xc]
and eax, 2
mov dword [ebp - 0x20], eax
je 0x4259d9
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [edi]
jmp 0x4259ef
test byte [ebp + 0xc], 4
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push ebx
je 0x4259ec
push dword [edi + 0xc]
jmp 0x4259ef
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
call esi
cmp eax, ebx
jne 0x425a1d
mov ecx, dword [ebp - 0x14]
push ebx
push 0xffffffffffffffff
call fcn.0040c93f
cmp dword [ebp + 0xc], ebx
je 0x425a15
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00402865
mov byte [ebp - 2], bl
jmp 0x425b70
cmp dword [ebp - 8], ebx
jne 0x425a6b
cmp dword [ebp + 0xc], ebx
je 0x425a6b
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x425a41
cmp dword [ebp - 0x1c], 0x103
je 0x425a6b
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00402865
mov ecx, dword [ebp - 0x14]
push ebx
push 0xffffffffffffffff
call fcn.0040c93f
cmp byte [ebp - 1], bl
je 0x425a64
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.00403751
xor al, al
jmp 0x425b73
cmp dword [ebp - 0xc], ebx
jne 0x425a87
cmp byte [ebp - 1], bl
je 0x425a87
push dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
call fcn.00403751
mov al, 1
jmp 0x425b73
mov eax, 0xffff
cmp dword [ebp - 8], eax
jbe 0x425a94
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], ebx
jge 0x425aa4
cmp dword [ebp - 8], ebx
je 0x425aa1
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], ebx
je 0x425adb
cmp byte [ebp - 1], bl
je 0x425ac8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10024]
push dword [ebp - 0xc]
push eax
push dword [edi]
jmp 0x425aff
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x10024]
push dword [ebp - 0xc]
push eax
push dword [edi]
jmp 0x425b49
test byte [ebp + 0xc], 4
je 0x425b17
cmp byte [ebp - 1], bl
je 0x425b03
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10024]
push dword [ebp - 0xc]
push eax
push dword [edi + 0xc]
call esi
jmp 0x425b4f
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x10024]
push dword [ebp - 0xc]
push eax
push dword [edi + 0xc]
jmp 0x425b49
cmp byte [ebp - 1], bl
je 0x425b37
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10024]
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x18]
jmp 0x425aff
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x10024]
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x4259fb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov byte [ebp + eax - 0x10024], bl
lea eax, [ebp - 0x10024]
push eax
call fcn.00403877
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
leave
ret 0xc