Function at 0x10012eb0
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033b7c
mov eax, dword fs:[0]
push eax
mov eax, 0x20c0
call fcn.10016910
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x2068], edi
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x2088], 0
push 0
jne 0x10012f1d
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x100405d4
mov byte [edi], 0
call fcn.10001c40
jmp 0x10013277
lea eax, [ebp - 0x2084]
mov dword [ebp - 0x2084], 0xc
push eax
lea eax, [ebp - 0x2068]
mov dword [ebp - 0x207c], 1
push eax
lea eax, [ebp - 0x205c]
mov dword [ebp - 0x2080], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10012fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1010]
push str.Error_creating_pip:__d
push eax
call fcn.10013600
lea ecx, [ebp - 0x1010]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea edx, [ecx + 1]
add esp, 0xc
mov byte [edi], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012f90
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
mov ecx, edi
call fcn.10001c40
jmp 0x10013277
push 0
push 1
push dword [ebp - 0x205c]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x10013013
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1010]
push str.SetHandleInformation_failed:__d
push eax
call fcn.10013600
lea ecx, [ebp - 0x1010]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea edx, [ecx + 1]
add esp, 0xc
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012ff6
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
mov ecx, edi
call fcn.10001c40
jmp 0x10013277
push 0x44
lea eax, [ebp - 0x20cc]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x2078], xmm0
call fcn.100187a0
mov eax, dword [ebp - 0x2068]
add esp, 0xc
or dword [ebp - 0x20a0], 0x100
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x20cc], 0x44
mov dword [ebp - 0x208c], eax
mov dword [ebp - 0x2090], eax
jb 0x1001305e
mov esi, dword [esi]
lea eax, [ebp - 0x2078]
push eax
lea eax, [ebp - 0x20cc]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x2068]
test eax, eax
jne 0x100130c9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x205c]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1010]
push str.CreateProcess_failed:__d
push eax
call fcn.10013600
add esp, 0xc
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
call fcn.10001bf0
jmp 0x10013277
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x2014], 0xf
mov dword [ebp - 0x2064], eax
mov dword [ebp - 0x2018], eax
mov byte [ebp - 0x2028], al
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x2060], ecx
xor esi, esi
nop word [eax + eax]
test eax, eax
je 0x10013108
test ecx, ecx
jne 0x10013110
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x2060]
push eax
push 0
push 0
push 0
push dword [ebp - 0x205c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1001318d
cmp dword [ebp - 0x2060], 0
jbe 0x1001318d
push 0
lea eax, [ebp - 0x2064]
push eax
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x205c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100131a7
mov eax, dword [ebp - 0x2064]
test eax, eax
je 0x100131a7
push eax
lea eax, [ebp - 0x2010]
xor esi, esi
push eax
lea ecx, [ebp - 0x2028]
call fcn.10007240
mov eax, dword [ebp - 0x2064]
mov ecx, dword [ebp - 0x2060]
jmp 0x10013100
xor ecx, ecx
xor eax, eax
inc esi
mov dword [ebp - 0x2060], ecx
mov dword [ebp - 0x2064], eax
cmp esi, 0x14
jl 0x10013100
push dword [ebp - 0x205c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 8]
push dword [ebp - 0x2078]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10013233
push dword [ebp - 0x2074]
call esi
push dword [ebp - 0x2078]
call esi
push 1
push dword [ebp - 0x2078]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.Time_out_
lea ecx, [ebp - 0x2058]
call fcn.10001bf0
lea edx, [ebp - 0x2058]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2040]
call fcn.10011160
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.10011300
lea ecx, [ebp - 0x2040]
call fcn.100075f0
lea ecx, [ebp - 0x2058]
call fcn.10001b50
jmp 0x1001326c
push dword [ebp - 0x2078]
call esi
push dword [ebp - 0x2074]
call esi
lea edx, [ebp - 0x2028]
lea ecx, [ebp - 0x2040]
call fcn.10011160
mov edx, eax
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.10011300
lea ecx, [ebp - 0x2040]
call fcn.100075f0
lea ecx, [ebp - 0x2028]
call fcn.10001b50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001578e
mov esp, ebp
pop ebp
ret