Function at 0x484fe8
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4852a3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405b1c
mov byte [ebp - 0x11], 0
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00484824
test eax, eax
je 0x48527d
cmp eax, 4
je 0x48527d
dec eax
jne 0x48504b
mov byte [ebp - 0x11], 1
jmp 0x48527d
xor eax, eax
push ebp
push 0x485273
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00484d20
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4852c4
call fcn.00405f9c
mov eax, 0x400
call fcn.0040304c
mov esi, eax
mov dword [ebp - 0x74], 0xc
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0xffffffff
push 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x4850b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48527d
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.0040366c
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405b54
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x485115
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48527d
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x485234
cmp dword [ebp - 0x20], 0
je 0x4851c7
push 0
lea eax, [ebp - 0x20]
push eax
push 0x200
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x485234
mov eax, dword [ebp - 0x20]
mov byte [esi + eax], 0
lea eax, [ebp - 0x88]
mov edx, esi
call fcn.00405c44
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 4]
call fcn.00405edc
mov edx, dword [ebp - 4]
mov eax, 0x4852f4
call fcn.0040658c
test eax, eax
jle 0x485228
mov edx, dword [ebp - 4]
mov eax, 0x485304
call fcn.0040658c
test eax, eax
jle 0x485228
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040658c
test eax, eax
jne 0x4851b7
mov byte [ebp - 0x11], 1
push 0
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x485234
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0040658c
test eax, eax
jle 0x4851da
mov bl, 1
jmp 0x485214
mov edi, dword [ebp - 4]
test edi, edi
je 0x4851f9
mov eax, edi
sub eax, 0xa
cmp word [eax], 2
je 0x4851f9
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004051e0
mov edi, eax
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x24], 0
je 0x48520d
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x41
setg bl
test bl, bl
je 0x485228
push 0
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x485234
push 0xa
call sub.kernel32.dll_Sleep_2
jmp 0x485115
mov eax, dword [ebp - 0x20]
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
call fcn.00403080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48527d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4852aa
lea eax, [ebp - 0x88]
call fcn.00405ab8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405ac0
ret