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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push 0x1000
lea ecx, [esp + 0x18]
push ecx
lea ebp, [esi + 0x14]
lea eax, [esi + 0x10]
xor ebx, ebx
push ebp
push eax
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 1
mov dword [eax], ebx
mov dword [ebp], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40db78
mov ecx, esi
call fcn.0040d550
push esi
call sub.MFC70.DLL_Ordinal_705
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
push ebx
push ebx
call edi
mov edx, dword [esi + 0x10]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40dbd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [esi + 0x10]
push eax
call ebx
mov ecx, dword [ebp]
push ecx
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
call fcn.0040d550
push esi
call sub.MFC70.DLL_Ordinal_705
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret
push 2
push 1
lea eax, [esi + 0x18]
push ebx
push eax
call edi
mov edx, dword [ebp]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40db98
push 0x1000
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x20]
push edx
lea eax, [esi + 0x1c]
push ecx
push eax
mov dword [eax], ebx
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40dbb9
push 2
push ebx
push ebx
push ebx
call edi
push eax
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40dc55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ebx, eax
call edi
mov edx, dword [ebp]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x20]
push ecx
call edi
push ebx
jmp 0x40dbb3
push 2
push 1
lea eax, [esi + 0x24]
push ebx
push eax
call edi
mov edx, dword [esi + 0x20]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40dc9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov eax, dword [esi + 0x10]
push eax
call edi
mov ecx, dword [ebp]
push ecx
call edi
mov edx, dword [esi + 0x1c]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
push ebx
jmp 0x40dbb3
mov edx, dword [ebp]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 8]
lea edi, [esi + 8]
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x60], 0x101
mov word [esp + 0x64], bx
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], ebx
mov word [esp + 0x66], bx
mov eax, dword [ecx - 0xc]
inc eax
push eax
mov ecx, edi
call fcn.004018d0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
push ecx
push ebx
push ebx
push 0x10
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [edi]
cmp edx, ebx
mov dword [esp + 0x14], eax
jne 0x40dd34
xor ecx, ecx
jmp 0x40dd4b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x40dd40
sub ecx, dword [esp + 0x10]
cmp dword [esp + 0x14], ebx
mov dword [edx - 0xc], ecx
mov edx, dword [edi]
mov byte [ecx + edx], bl
jne 0x40dd9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x20]
push ecx
call edi
mov edx, dword [ebp]
push edx
call edi
mov eax, dword [esi + 0x18]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esi + 0x28]
mov edx, dword [0x438b78]
push ecx
mov ecx, dword [esi + 0xc]
push ebx
push edx
call fcn.004037a0
jmp 0x40dbb9
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x20]
push edx
call edi
mov eax, dword [ebp]
push eax
call edi
mov ecx, dword [esi + 0x18]
push ecx
call edi
call dword [sym.imp.BCGCBPRO720.dll_public:_static_struct_CRuntimeClass____stdcall_CBCGPDockingControlBar::GetThisClass_void_]
mov ecx, dword [esi + 0xc]
push eax
call sub.MFC70.DLL_Ordinal_3754
test eax, eax
je 0x40de07
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0xc]
push edx
call fcn.0040b3d0
mov ecx, dword [esi + 0xc]
call fcn.0040b360
mov ecx, dword [esi + 0xc]
push ebx
call fcn.0040b5c0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_ShowCaret]
cmp dword [esi + 4], ebx
jne 0x40de3d
push ebx
push ebx
push ebx
push ebx
push esi
push 0x40d970
call sub.MFC70.DLL_Ordinal_917
test eax, eax
jne 0x40de44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0xc]
push edx
push eax
mov eax, dword [0x438b78]
push eax
call fcn.004037a0
jmp 0x40dbb9
mov ecx, esi
call fcn.0040d570
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x68
ret