Function at 0x40e2c0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430940
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x43c4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
xor esi, esi
push esi
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x6c], eax
lea ebx, [edi + 0x58]
lea eax, [edi + 0x50]
push ebx
push eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x78], 0xc
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40e3a5
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push 0x10
mov eax, str.CreateOutputPipe
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.00406cf0
mov dword [ebp - 4], 0
cmp dword [edi + 0x10], 0
mov esi, 8
je 0x40e38d
lea ecx, [ebp - 0x48]
push str.ERROR:
push ecx
lea ebx, [ebp - 0x2c]
call fcn.00408eb0
add esp, 8
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [edi + 0x10]
mov edx, eax
call fcn.0040b4e0
cmp dword [ebp - 0x34], esi
jb 0x40e38d
mov edx, dword [ebp - 0x48]
push edx
call fcn.00418932
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x40e39e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00418932
add esp, 4
xor al, al
jmp 0x40e60b
push 2
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [edi + 0x68]
push eax
call esi
mov ecx, dword [ebx]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40e452
mov dword [ebp - 0x1c], eax
xor edx, edx
push 0x1a
mov eax, str.DuplicateOutputWriteHandle
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
call fcn.00406cf0
mov dword [ebp - 4], 2
cmp dword [edi + 0x10], 0
mov esi, 8
je 0x40e436
lea eax, [ebp - 0x48]
push str.ERROR:
push eax
lea ebx, [ebp - 0x2c]
call fcn.00408eb0
add esp, 8
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [edi + 0x10]
mov edx, eax
call fcn.0040b4e0
cmp dword [ebp - 0x34], esi
jb 0x40e436
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00418932
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x40e39e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00418932
add esp, 4
xor al, al
jmp 0x40e60b
push 0
lea edx, [ebp - 0x78]
push edx
lea eax, [edi + 0x5c]
lea ecx, [edi + 0x60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40e4b4
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push 0xf
mov eax, str.CreateInputPipe
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.00406cf0
mov ecx, esi
mov esi, edi
mov dword [ebp - 4], 4
call fcn.0040eb20
cmp dword [ebp - 0x18], 8
jb 0x40e39e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00418932
add esp, 4
xor al, al
jmp 0x40e60b
push 2
push 0
push 0
lea edx, [edi + 0x54]
push edx
call esi
push eax
mov eax, dword [edi + 0x50]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40e4ff
mov eax, str.DupliateOutputReadHandle
lea ecx, [ebp - 0x48]
call fcn.00406de0
lea ecx, [ebp - 0x48]
mov esi, edi
mov dword [ebp - 4], 5
call fcn.0040eb20
lea ecx, [ebp - 0x48]
call fcn.00406e20
xor al, al
jmp 0x40e60b
push 2
push 0
push 0
lea ecx, [edi + 0x64]
push ecx
call esi
mov edx, dword [edi + 0x5c]
push eax
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40e54a
mov eax, str.DupliateInputWriteHandle
lea ecx, [ebp - 0x48]
call fcn.00406de0
lea ecx, [ebp - 0x48]
mov esi, edi
mov dword [ebp - 4], 6
call fcn.0040eb20
lea ecx, [ebp - 0x48]
call fcn.00406e20
xor al, al
jmp 0x40e60b
mov eax, dword [edi + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
test eax, eax
jne 0x40e587
mov eax, str.CloseOutputReadHandle
lea ecx, [ebp - 0x48]
call fcn.00406de0
lea ecx, [ebp - 0x48]
mov esi, edi
mov dword [ebp - 4], 7
call fcn.0040eb20
lea ecx, [ebp - 0x48]
call fcn.00406e20
xor al, al
jmp 0x40e60b
mov ecx, dword [edi + 0x5c]
push ecx
call esi
test eax, eax
jne 0x40e5bb
mov eax, str.CloseInputWriteHandle
lea ecx, [ebp - 0x48]
call fcn.00406de0
lea ecx, [ebp - 0x48]
mov esi, edi
mov dword [ebp - 4], 8
call fcn.0040eb20
lea ecx, [ebp - 0x48]
call fcn.00406e20
xor al, al
jmp 0x40e60b
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x40e5f5
mov eax, 0x435b04
lea ecx, [ebp - 0x64]
call fcn.00406de0
lea ecx, [ebp - 0x64]
mov esi, edi
mov dword [ebp - 4], 9
call fcn.0040eb20
lea ecx, [ebp - 0x64]
call fcn.00406e20
xor al, al
jmp 0x40e60b
mov edx, dword [ebp - 0x68]
mov eax, dword [edi + 0x60]
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp - 0x6c]
push eax
push ecx
mov ecx, dword [edi + 0x68]
call fcn.0040e630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041893d
mov esp, ebp
pop ebp
ret 4