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

Disassembly:
sub esp, 0x230
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], eax
call fcn.004106e0
mov eax, dword [ebx + 0x294]
lea ebp, [ebx + 0x294]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40f20b
push eax
call esi
mov dword [ebp], 0xffffffff
mov eax, dword [ebx + 0x298]
cmp eax, 0xffffffff
je 0x40f223
push eax
call esi
mov dword [ebx + 0x298], 0xffffffff
xorps xmm0, xmm0
lea ecx, [ebx + 0x26c]
movups xmmword [ebp], xmm0
mov eax, dword [ebx + 0x26c]
mov dword [ebp], 0xffffffff
mov dword [ebx + 0x298], 0xffffffff
call dword [eax + 4]
mov eax, dword [ebx + 0x274]
lea ecx, [ebx + 0x274]
call dword [eax + 4]
mov eax, dword [ebx + 0x27c]
lea ecx, [ebx + 0x27c]
call dword [eax + 4]
mov eax, dword [ebx + 0x284]
lea ecx, [ebx + 0x284]
call dword [eax + 4]
mov eax, dword [ebx + 0x28c]
lea ecx, [ebx + 0x28c]
call dword [eax + 4]
mov dword [ebx + 0x260], 0
xor ecx, ecx
mov eax, dword [ebx + 0x4c]
mov word [eax], cx
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x268], 0x4000400
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebx + 0x26c]
lea ecx, [ebx + 0x26c]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x2a4]
push 0
push eax
call dword [edx + 0x20]
mov edx, dword [ebx + 0x274]
lea ecx, [ebx + 0x274]
push eax
call dword [edx + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push eax
call esi
test eax, eax
je 0x40f479
push 0
lea eax, [ebx + 0x2a4]
lea ecx, [ebx + 0x27c]
push eax
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
mov eax, dword [ebx + 0x28c]
lea ecx, [ebx + 0x28c]
call dword [eax + 0x20]
push eax
call esi
test eax, eax
je 0x40f479
mov eax, dword [ebx + 0x284]
lea ecx, [ebx + 0x284]
mov esi, dword [ebx + 0x290]
push 2
push 0
push 0
call dword [eax + 0x20]
push eax
mov eax, dword [esp + 0x24]
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40f479
mov eax, dword [ebx + 0x28c]
lea ecx, [ebx + 0x28c]
call dword [eax + 4]
push 0x44
lea esi, [ebx + 0x2b0]
push 0
push esi
call fcn.004201f0
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x1c]
shr eax, 9
add esp, 0xc
and eax, 1
mov dword [esi], 0x44
mov word [ebx + 0x2e0], ax
mov eax, dword [ebx + 0x280]
mov dword [ebx + 0x2ec], eax
mov dword [ebx + 0x2f0], eax
mov eax, dword [ebx + 0x278]
mov dword [ebx + 0x2dc], 0x101
mov dword [ebx + 0x2e8], eax
call fcn.0040bb70
test al, al
je 0x40f465
lea ecx, [ebx + 0x24]
call fcn.0040baf0
push eax
lea ecx, [ebx + 0x1c]
call fcn.0040baf0
push eax
lea ecx, [ebx + 0x3c]
call fcn.00407b10
lea ecx, [ebx + 0x2c]
call fcn.0040baf0
cmp word [eax], 0
je 0x40f414
lea ecx, [esp + 0x18]
call fcn.0040cfd0
push 0
lea ecx, [ebx + 0x2c]
call fcn.0040baf0
push eax
lea ecx, [esp + 0x20]
call fcn.00407d00
test al, al
je 0x40f40b
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x260], eax
lea ecx, [esp + 0x18]
call fcn.00403200
mov eax, dword [ebx + 0x14]
shr eax, 0xa
test al, 1
je 0x40f427
mov ecx, ebx
call fcn.00410510
jmp 0x40f44d
push ebp
push esi
push dword [ebx + 0x260]
push 0
push dword [ebx + 0x268]
push 1
push 0
push 0
push dword [ebx + 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
test al, al
jne 0x40f461
push dword [ebx + 0x4c]
mov ecx, dword [esp + 0x14]
call fcn.00404b00
test al, al
je 0x40f479
mov al, 1
jmp 0x40f47b
mov ecx, dword [esp + 0x10]
push 0
push str.Invalid_application
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x40f47b
xor al, al
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e5aa
add esp, 0x230
ret 4