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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
mov ecx, 4
push ebx
push esi
push edi
lea edi, [ebp - 0x34]
mov esi, 0x4e91ac
lea ebx, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
mov edi, ebx
mov ecx, 0x11
mov esi, 0x4e91bc
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4e9200]
xor edx, edx
mov dword [ebp - 0x84], eax
mov eax, dword [0x4e9204]
mov dword [ebp - 0x80], eax
mov eax, dword [0x4e9208]
mov dword [ebp - 0x7c], eax
mov eax, 0xc
mov byte [ebp - 0x22], 0
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], 1
lea ecx, [ebp - 0x84]
push 0
push ecx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push edx
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
je 0x4c8632
mov dword [ebx], 0x44
xor ecx, ecx
mov dword [ebx + 0x2c], 0x101
mov dword [ebx + 4], ecx
xor eax, eax
mov dword [ebx + 8], eax
xor edx, edx
mov dword [ebx + 0xc], edx
xor ecx, ecx
mov word [ebx + 0x32], 0
mov dword [ebx + 0x34], ecx
lea ecx, [ebp - 0x188]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x3c], eax
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x40], edx
mov word [ebx + 0x30], 0
push 0x104
push ecx
push str.Comspec
call sub.KERNEL32.DLL_GetEnvironmentVariableA
cmp dword [ebp + 0xc], 0
je 0x4c848e
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 5
push edx
call fcn.0049b898
pop ecx
mov esi, eax
push 0x4e9214
push esi
call sub.KERNEL32.DLL_lstrcpyA
mov eax, dword [ebp + 0xc]
push eax
push esi
call sub.KERNEL32.DLL_lstrcatA
jmp 0x4c8495
xor edx, edx
xor esi, esi
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x84]
push eax
push ebx
push 0
push 0
push 0x20
push 1
push edx
lea ecx, [ebp - 0x84]
push ecx
push esi
lea eax, [ebp - 0x188]
push eax
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 0x22], dl
push esi
call fcn.0049b6d4
pop ecx
mov ecx, dword [ebp - 0x18]
push ecx
call sub.KERNEL32.DLL_CloseHandle
cmp byte [ebp - 0x22], 0
je 0x4c8629
cmp word [ebp + 0x12], 0
je 0x4c84fe
mov eax, dword [ebp - 0x10]
inc eax
push eax
mov edx, dword [ebp + 0xc]
push edx
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call dword [ebp + 0x10]
add esp, 0x10
xor eax, eax
xor ebx, ebx
mov dword [ebp - 8], eax
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x1c]
push 0
push eax
lea edx, [ebp - 1]
push 1
push edx
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4c858e
movsx eax, byte [ebp - 1]
cmp eax, 0xd
jne 0x4c854e
lea edx, [ebp - 0x1c]
push 0
push edx
lea ecx, [ebp - 1]
push 1
push ecx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], 1
jmp 0x4c858e
lea edx, [ebx + 1]
push edx
call fcn.0049b898
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
mov esi, edx
mov edx, dword [ebp - 8]
cmp ebx, eax
jle 0x4c8574
mov cl, byte [edx]
mov byte [esi], cl
inc eax
inc esi
inc edx
cmp ebx, eax
jg 0x4c8569
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 1]
mov byte [eax + ebx], dl
mov eax, dword [ebp - 8]
push eax
call fcn.0049b6d4
pop ecx
inc ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x20], 0
je 0x4c859a
cmp byte [ebp - 0x21], 0
je 0x4c85f1
lea eax, [ebx + 1]
push eax
call fcn.0049b898
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
mov esi, edx
mov edx, dword [ebp - 8]
cmp ebx, eax
jle 0x4c85c0
mov cl, byte [edx]
mov byte [esi], cl
inc eax
inc esi
inc edx
cmp ebx, eax
jg 0x4c85b5
mov eax, dword [ebp - 0xc]
mov byte [eax + ebx], 0
cmp word [ebp + 0x12], 0
je 0x4c85e0
inc ebx
push ebx
mov eax, dword [ebp - 0xc]
push eax
push 2
mov edx, dword [ebp + 0x14]
push edx
call dword [ebp + 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049b6d4
pop ecx
xor eax, eax
mov dword [ebp - 8], eax
xor ebx, ebx
cmp dword [ebp - 0x20], 0
jne 0x4c8505
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x30]
push edx
call sub.KERNEL32.DLL_CloseHandle
cmp word [ebp + 0x12], 0
je 0x4c8629
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov edx, dword [ebp + 0x14]
push edx
call dword [ebp + 0x10]
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov al, byte [ebp - 0x22]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret