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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
xor ebx, ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004055b8
xor eax, eax
push ebp
push 0x4a1b83
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x4a1881
mov eax, dword [0x61b070]
mov eax, dword [eax]
call fcn.0048ab2c
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], 0xffffffff
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CreatePipe
xor eax, eax
push ebp
push 0x4a1b49
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x44
call fcn.0040345c
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 0x101
mov word [ebp - 0x44], 0
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040ac24
mov edx, dword [ebp - 0x20]
mov eax, 0x4a1b9c
call fcn.0040570c
test eax, eax
jle 0x4a1917
lea eax, [ebp - 0x20]
mov edx, 0x4a1ba8
call fcn.004051a0
mov eax, dword [ebp - 0xc]
call fcn.004053c8
test eax, eax
jle 0x4a192e
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.004051a0
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 0x20]
call fcn.00409b94
mov edx, dword [ebp - 0x188]
mov eax, 0x4a1bb4
call fcn.0040570c
test eax, eax
jg 0x4a197e
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 0x20]
call fcn.00409b94
mov edx, dword [ebp - 0x18c]
mov eax, 0x4a1bc4
call fcn.0040570c
test eax, eax
jg 0x4a197e
mov eax, dword [ebp - 0xc]
call fcn.004053c8
test eax, eax
jle 0x4a19ba
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x20]
call fcn.004055c8
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055c8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
jmp 0x4a1a53
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 4]
call fcn.00409b94
mov edx, dword [ebp - 0x190]
mov eax, 0x4a1bd4
call fcn.0040570c
test eax, eax
jle 0x4a1a23
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x194]
call fcn.0048cedc
mov eax, dword [ebp - 0x194]
call fcn.004055c8
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055c8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
jmp 0x4a1a53
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055c8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp byte [ebp - 0x15], 0
jne 0x4a1a74
mov eax, dword [ebp + 8]
call fcn.00405108
call fcn.00404b30
jmp 0x4a1b50
xor eax, eax
push ebp
push 0x4a1b20
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
call fcn.00405108
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xff
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp dword [ebp - 0x1c], 0
jbe 0x4a1ae3
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x184], 0
lea eax, [ebp - 0x198]
lea edx, [ebp - 0x184]
mov ecx, pe_nt_image_headers32
call fcn.00405378
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0x24]
call fcn.004053d0
cmp byte [ebp - 0x15], 0
je 0x4a1aef
cmp dword [ebp - 0x1c], 0
jne 0x4a1a8a
push 0xffffffffffffffff
mov eax, dword [ebp - 0x84]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1b27
mov eax, dword [ebp - 0x80]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x84]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1b8a
lea eax, [ebp - 0x198]
mov edx, 5
call fcn.0040512c
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040512c
lea eax, [ebp - 0xc]
call fcn.00405108
ret