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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10024
call fcn.00442420
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
xor ebx, ebx
push 0x45cb90
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.00403875
cmp dword [ebp + 0xc], ebx
je 0x426781
mov ecx, dword [ebp + 8]
push ebx
call fcn.0040530e
mov ecx, eax
call fcn.004031ec
push eax
lea ecx, [esi + 0x3204]
call fcn.0040509d
mov edi, eax
cmp edi, ebx
je 0x426791
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00402807
test al, al
jne 0x4267a3
jmp 0x426791
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x4267a0
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cbad
jmp 0x42688c
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 0x4267c9
push esi
call fcn.0040530e
mov ecx, eax
call fcn.004031ec
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jmp 0x4267cd
or dword [ebp - 0xc], 0xffffffff
lea eax, [esi + 2]
cmp dword [ecx], eax
jne 0x4267ea
inc esi
push esi
call fcn.0040530e
mov ecx, eax
call fcn.0040332c
test al, al
je 0x4267ea
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0xc]
and eax, 2
mov dword [ebp - 0x20], eax
je 0x426801
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [edi]
jmp 0x426817
test byte [ebp + 0xc], 4
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push ebx
je 0x426814
push dword [edi + 0xc]
jmp 0x426817
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
call esi
cmp eax, ebx
jne 0x426845
mov ecx, dword [ebp - 0x14]
push ebx
push 0xffffffffffffffff
call fcn.0040cbad
cmp dword [ebp + 0xc], ebx
je 0x42683d
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00402822
mov byte [ebp - 2], bl
jmp 0x426998
cmp dword [ebp - 8], ebx
jne 0x426893
cmp dword [ebp + 0xc], ebx
je 0x426893
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x426869
cmp dword [ebp - 0x1c], 0x103
je 0x426893
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00402822
mov ecx, dword [ebp - 0x14]
push ebx
push 0xffffffffffffffff
call fcn.0040cbad
cmp byte [ebp - 1], bl
je 0x42688c
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.0040374f
xor al, al
jmp 0x42699b
cmp dword [ebp - 0xc], ebx
jne 0x4268af
cmp byte [ebp - 1], bl
je 0x4268af
push dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
call fcn.0040374f
mov al, 1
jmp 0x42699b
mov eax, 0xffff
cmp dword [ebp - 8], eax
jbe 0x4268bc
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], ebx
jge 0x4268cc
cmp dword [ebp - 8], ebx
je 0x4268c9
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], ebx
je 0x426903
cmp byte [ebp - 1], bl
je 0x4268f0
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 0x426927
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x10024]
push dword [ebp - 0xc]
push eax
push dword [edi]
jmp 0x426971
test byte [ebp + 0xc], 4
je 0x42693f
cmp byte [ebp - 1], bl
je 0x42692b
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 0x426977
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x10024]
push dword [ebp - 0xc]
push eax
push dword [edi + 0xc]
jmp 0x426971
cmp byte [ebp - 1], bl
je 0x42695f
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 0x426927
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 0x426823
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov byte [ebp + eax - 0x10024], bl
lea eax, [ebp - 0x10024]
push eax
call fcn.00403875
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
leave
ret 0xc