Function at 0x10035510
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x828], 0
mov word [ebp - 0x810], 0
push 0x7fe
push 0
lea eax, [ebp - 0x80e]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x874], 0xffffffff
mov ecx, dword [ebp - 0x874]
mov dword [ebp - 0x878], ecx
mov edx, dword [ebp - 0x878]
mov dword [ebp - 0x824], edx
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x87c], eax
push 0x10
push 0
lea ecx, [ebp - 0x820]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0xc
push 0
lea edx, [ebp - 0xc]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x87c]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x828], 0
jne 0x10035609
push 0x16
push 0x10043654
call fcn.100352d0
add esp, 8
push eax
push str.CreatePipe_hInputRd__hInputWt__sp__0_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100026a0
add esp, 0xc
jmp 0x1003578b
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x874]
push ecx
lea edx, [ebp - 0x878]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x828], 0
jne 0x10035660
push 0x17
push 0x10043690
call fcn.100352d0
add esp, 8
push eax
push str.CreatePipe_hOutputRd__hOutputWt__sp__0_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100026a0
add esp, 0xc
jmp 0x1003578b
push 0x44
push 0
lea eax, [ebp - 0x870]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x870], 0x44
mov word [ebp - 0x840], 1
mov ecx, dword [ebp - 0x844]
or ecx, 0x101
mov dword [ebp - 0x844], ecx
mov edx, dword [ebp - 0x87c]
mov dword [ebp - 0x838], edx
mov eax, dword [ebp - 0x874]
mov dword [ebp - 0x834], eax
mov ecx, dword [ebp - 0x874]
mov dword [ebp - 0x830], ecx
mov edx, dword [ebp + 8]
push edx
push 0x100436cc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0xc
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x870]
push edx
push 0
push 0
push 0x10
push 1
push 0
push 0
lea eax, [ebp - 0x810]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x828], 0
jne 0x10035735
push 0x22
push 0x100436d4
call fcn.100352d0
add esp, 8
push eax
push str.CreateProcess_NULL__szwWork__NULL__NULL__TRUE__CREATE_NEW_CONSOLE__NULL__NULL__si__pi_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100026a0
add esp, 0xc
jmp 0x1003578b
cmp dword [ebp - 0x820], 0xffffffff
je 0x10035755
mov ecx, dword [ebp - 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x820], 0xffffffff
cmp dword [ebp - 0x81c], 0xffffffff
je 0x10035775
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x81c], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x878]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x824]
mov dword [edx], eax
cmp dword [ebp - 0x828], 0
jne 0x100357d4
cmp dword [ebp - 0x824], 0xffffffff
je 0x100357b4
mov ecx, dword [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x824], 0xffffffff
cmp dword [ebp - 0x878], 0xffffffff
je 0x100357d4
mov edx, dword [ebp - 0x878]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x878], 0xffffffff
cmp dword [ebp - 0x87c], 0xffffffff
je 0x100357f4
mov eax, dword [ebp - 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x87c], 0xffffffff
cmp dword [ebp - 0x874], 0xffffffff
je 0x10035814
mov ecx, dword [ebp - 0x874]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x874], 0xffffffff
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret