Function at 0x15416c
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
mov ecx, 0x515
push 0
push 0
dec ecx
jne 0x154174
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x15452e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x1544b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.00012b94
lea eax, [ebp - 0x2884]
xor ecx, ecx
mov edx, 0x10
call fcn.00012b94
xor eax, eax
push ebp
push 0x1544a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x2874], 0xc
mov dword [ebp - 0x286c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x2870], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x2800
lea eax, [ebp - 0x2874]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CreatePipe
mov dword [ebp - 0x64], 0x44
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x101
mov word [ebp - 0x34], 0
lea edx, [ebp - 0x2888]
mov eax, 0x15453c
call fcn.00031d88
mov eax, dword [ebp - 0x2888]
push eax
lea eax, [ebp - 0x288c]
call fcn.000ad214
mov ecx, dword [ebp - 0x288c]
lea eax, [ebp - 0x10]
pop edx
call fcn.00013f18
lea eax, [ebp - 8]
call fcn.0002b2e0
lea eax, [ebp - 0x2884]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 8]
call fcn.00014090
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00014090
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x1542e7
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea edx, [ebp - 0x2890]
mov eax, 0x154550
call fcn.00031d88
lea eax, [ebp - 0x2890]
push eax
lea edx, [ebp - 0x2894]
mov eax, ebx
call fcn.0002b100
mov edx, dword [ebp - 0x2894]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x2890]
mov eax, dword [ebp - 4]
call fcn.001388a8
jmp 0x154462
cmp dword [ebp - 0x2880], 0
je 0x15443f
cmp dword [ebp - 0x2884], 0
je 0x15443f
lea edx, [ebp - 0x2898]
mov eax, 0x154560
call fcn.00031d88
mov edx, dword [ebp - 0x2898]
lea eax, [ebp - 0x1c]
mov ecx, 0x15457c
call fcn.00013f18
call sub.kernel32.dll_GetTickCount
mov ebx, eax
cmp dword [ebp - 0x14], 0
je 0x1543e9
cmp dword [ebp - 0x14], 0xffffffff
je 0x1543e9
push 0x64
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x2884]
push eax
call sub.kernel32.dll_GetExitCodeProcess
lea eax, [ebp - 0x2865]
mov edx, 0x2800
call fcn.00018028
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0x27ff
lea eax, [ebp - 0x2865]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 0xc], 0
jbe 0x1543c7
lea edx, [ebp - 0x289c]
lea eax, [ebp - 0x2865]
call fcn.00031d88
mov edx, dword [ebp - 0x289c]
lea eax, [ebp - 0x1c]
call fcn.00013ed4
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x2865]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0x103
jne 0x154407
call sub.kernel32.dll_GetTickCount
mov edx, ebx
call fcn.0002cde4
cmp eax, 0x7530
jbe 0x15433f
jmp 0x154407
lea edx, [ebp - 0x28a0]
mov eax, 0x154580
call fcn.00031d88
mov edx, dword [ebp - 0x28a0]
lea eax, [ebp - 0x1c]
call fcn.00013ed4
push dword [ebp - 0x1c]
push 0x15457c
lea edx, [ebp - 0x28a4]
mov eax, 0x154594
call fcn.00031d88
push dword [ebp - 0x28a4]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.001387e0
jmp 0x154462
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x28a8]
mov eax, 0x1545a8
call fcn.00031d88
mov edx, dword [ebp - 0x28a8]
mov eax, dword [ebp - 4]
call fcn.001388a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1544aa
lea eax, [ebp - 0x2884]
call fcn.00031d5c
cmp dword [ebp - 0x14], 0
je 0x154489
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x20], 0
je 0x154498
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
ret