Function at 0x4a1be0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055b8
mov eax, dword [ebp + 0xc]
call fcn.004055b8
xor eax, eax
push ebp
push 0x4a1ff9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 9], 0
je 0x4a1c45
mov eax, dword [0x61b070]
mov eax, dword [eax]
call fcn.0048ab2c
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x3c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CreatePipe
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1e], al
xor eax, eax
push ebp
push 0x4a1f7d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x44
call fcn.0040345c
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], 0x101
mov word [ebp - 0x58], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0040ac24
mov edx, dword [ebp - 0x2c]
mov eax, 0x4a2014
call fcn.0040570c
test eax, eax
jle 0x4a1cf9
lea eax, [ebp - 0x2c]
mov edx, 0x4a2020
call fcn.004051a0
mov eax, dword [ebp + 0xc]
call fcn.004053c8
test eax, eax
jle 0x4a1d10
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
call fcn.004051a0
cmp byte [ebp - 0x1e], 0
je 0x4a1dc5
jmp 0x4a1db5
lea eax, [ebp - 0x198]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040345c
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
call fcn.004053c8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xff
jle 0x4a1d51
mov dword [ebp - 0x34], 0xff
lea eax, [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405628
mov eax, dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x198]
mov edx, 0xff
call fcn.0048e934
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x198]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_WriteFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1d], al
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x34]
mov edx, 1
call fcn.00405668
mov eax, dword [ebp - 4]
call fcn.004053c8
test eax, eax
jg 0x4a1d1f
lea edx, [ebp - 0x1a0]
mov eax, dword [ebp - 0x2c]
call fcn.00409b94
mov edx, dword [ebp - 0x1a0]
mov eax, 0x4a202c
call fcn.0040570c
test eax, eax
jg 0x4a1e15
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp - 0x2c]
call fcn.00409b94
mov edx, dword [ebp - 0x1a4]
mov eax, 0x4a203c
call fcn.0040570c
test eax, eax
jg 0x4a1e15
mov eax, dword [ebp + 0xc]
call fcn.004053c8
test eax, eax
jle 0x4a1e51
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004055c8
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004055c8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1f], al
jmp 0x4a1e84
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004055c8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp byte [ebp - 0x1f], 0
jne 0x4a1ea5
mov eax, dword [ebp + 8]
call fcn.00405108
call fcn.00404b30
jmp 0x4a1fbe
xor eax, eax
push ebp
push 0x4a1f54
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
call fcn.00405108
push 0
lea eax, [ebp - 0x28]
push eax
push 0xff
lea eax, [ebp - 0x198]
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 - 0x1f], al
cmp dword [ebp - 0x28], 0
jbe 0x4a1f14
mov eax, dword [ebp - 0x28]
mov byte [ebp + eax - 0x198], 0
lea eax, [ebp - 0x1a8]
lea edx, [ebp - 0x198]
mov ecx, pe_nt_image_headers32
call fcn.00405378
mov edx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x30]
call fcn.004053d0
cmp byte [ebp - 0x1f], 0
je 0x4a1f20
cmp dword [ebp - 0x28], 0
jne 0x4a1ebb
push 0xffffffffffffffff
mov eax, dword [ebp - 0x98]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1f5b
mov eax, dword [ebp - 0x94]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x98]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2000
lea eax, [ebp - 0x1a8]
mov edx, 4
call fcn.0040512c
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040512c
lea eax, [ebp - 4]
call fcn.00405108
lea eax, [ebp + 0xc]
call fcn.00405108
ret