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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c0
xor eax, eax
push ebp
push 0x46ce7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
call fcn.004047d8
dec eax
jl 0x46ce59
mov eax, 0xff
call fcn.0040857c
mov edi, eax
mov eax, 0x1388
call fcn.0040857c
mov ebx, eax
mov dword [ebp - 0x68], 0xc
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0xffffffff
push 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x46ccba
test esi, esi
je 0x46ce59
mov edx, 0x46ce98
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x46ce59
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.004030b4
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 0x101
mov word [ebp - 0x2c], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00408fc4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push edi
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x46cd46
test esi, esi
je 0x46cd33
mov edx, 0x46ceb8
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.004027d4
mov eax, edi
call fcn.004027d4
jmp 0x46ce59
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x46cdbc
cmp dword [ebp - 0x14], 0
je 0x46cda4
push 0
lea eax, [ebp - 0x14]
push eax
push 0x1000
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x46cdbc
mov eax, dword [ebp - 0x14]
mov byte [ebx + eax], 0
test esi, esi
je 0x46cdb3
lea eax, [ebp - 0x7c]
mov edx, ebx
call fcn.00404710
mov edx, dword [ebp - 0x7c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x46cdb3
push 0
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x46cdbc
push 0x64
call sub.kernel32.dll_Sleep_1
jmp 0x46cd46
mov eax, dword [ebp - 0x14]
mov byte [ebx + eax], 0
test esi, esi
je 0x46cddb
lea eax, [ebp - 0x80]
mov edx, ebx
call fcn.00404710
mov edx, dword [ebp - 0x80]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test esi, esi
je 0x46ce21
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x88]
call fcn.00408934
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 0x46ced8
call fcn.00404824
mov edx, dword [ebp - 0x84]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
call fcn.004027d4
mov eax, edi
call fcn.004027d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ce86
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.00404544
lea eax, [ebp - 4]
call fcn.00404520
ret