Function at 0x12c454
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
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x12c45d
mov eax, dword [ebp - 4]
add esp, 0xfffff774
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x2890], edx
mov dword [ebp - 0x2888], edx
mov dword [ebp - 0x288c], edx
mov dword [ebp - 0x2884], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x12c729
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x2870], 0xc
mov dword [ebp - 0x2868], 0xffffffff
xor eax, eax
mov dword [ebp - 0x286c], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
push 0x2800
lea eax, [ebp - 0x2870]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00012c70
lea eax, [ebp - 0x2880]
xor ecx, ecx
mov edx, 0x10
call fcn.00012c70
mov dword [ebp - 0x60], 0x44
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], 0
lea eax, [ebp - 0x2884]
call fcn.00046100
mov ecx, dword [ebp - 0x2884]
lea eax, [ebp - 0x18]
mov edx, 0x12c740
call fcn.00013ff4
lea eax, [ebp - 0xc]
call fcn.00027684
lea eax, [ebp - 0x2880]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0001416c
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.0001416c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x12c5c3
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea edx, [ebp - 0x288c]
mov eax, ebx
call fcn.00027478
mov ecx, dword [ebp - 0x288c]
lea eax, [ebp - 0x2888]
mov edx, 0x12c75c
call fcn.00013ff4
mov edx, dword [ebp - 0x2888]
mov eax, esi
call fcn.001171b0
jmp 0x12c6d3
cmp dword [ebp - 0x287c], 0
je 0x12c6c2
cmp dword [ebp - 0x2880], 0
je 0x12c6c2
lea eax, [ebp - 4]
mov edx, 0x12c774
call fcn.00013db0
push 0x64
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2880]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2861]
mov edx, 0x2800
call fcn.00018100
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x27ff
lea eax, [ebp - 0x2861]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 0x10], 0
jbe 0x12c677
lea eax, [ebp - 0x2890]
lea edx, [ebp - 0x2861]
mov ecx, 0x2801
call fcn.00013f58
mov edx, dword [ebp - 0x2890]
lea eax, [ebp - 4]
call fcn.00013fb0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2861]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x14], 0x103
je 0x12c5ea
mov eax, dword [ebp - 0x287c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2880]
push eax
call sub.kernel32.dll_CloseHandle_1
push dword [ebp - 4]
push 0x12c794
push 0x12c7a0
lea eax, [ebp - 4]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.001170e8
jmp 0x12c6d3
call sub.kernel32.dll_GetLastError_1
mov edx, 0x12c7bc
mov eax, esi
call fcn.001171b0
mov eax, dword [ebp - 0x287c]
test eax, eax
je 0x12c6e3
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2880]
test eax, eax
je 0x12c6f3
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12c730
lea eax, [ebp - 0x2890]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x18]
call fcn.00013d18
lea eax, [ebp - 0xc]
call fcn.00013d18
lea eax, [ebp - 4]
call fcn.00013d18
ret