Function at 0x4a8000
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
add esp, 0xfffffb7c
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x4a801e
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
test al, al
jne 0x4a8025
xor eax, eax
jmp 0x4a82bc
push 0xc
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.0066c86c
add esp, 0xc
mov dword [ebp - 0x84], 0xc
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], 1
push 0x400
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
push ecx
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x4a8072
xor eax, eax
jmp 0x4a82bc
push 0x10
push 0
lea edx, [ebp - 0x34]
push edx
call fcn.0066c86c
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x78]
push ecx
call fcn.0066c86c
add esp, 0xc
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x4c], 0x101
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
mov word [ebp - 0x48], 0
lea ecx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x4a80e5
xor eax, eax
jmp 0x4a82bc
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_CloseHandle
test eax, eax
push 0x1388
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
jne 0x4a82a1
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_PeekNamedPipe
test eax, eax
je 0x4a8284
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jbe 0x4a8284
push 0x400
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.0066c86c
add esp, 0xc
push 0
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x484]
push ecx
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x4a8284
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4a8275
mov edx, dword [ebp - 0x20]
movsx ecx, byte [ebp + edx - 0x484]
cmp ecx, 0x3a
jne 0x4a8272
inc dword [ebp - 0x20]
jmp 0x4a81b7
mov eax, dword [ebp - 0x20]
movsx edx, byte [ebp + eax - 0x484]
cmp edx, 0x21
jl 0x4a81b4
mov ecx, dword [ebp - 0x20]
movsx eax, byte [ebp + ecx - 0x484]
cmp eax, 0x7e
jle 0x4a81c2
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
dec edx
mov ecx, dword [ebp - 0x20]
cmp edx, ecx
ja 0x4a8194
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jae 0x4a8284
mov ecx, dword [ebp - 0x20]
movsx eax, byte [ebp + ecx - 0x484]
cmp eax, 0x30
jl 0x4a820c
mov edx, dword [ebp - 0x20]
movsx ecx, byte [ebp + edx - 0x484]
cmp ecx, 0x39
jg 0x4a820c
lea eax, [ebp - 0x484]
mov edx, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call fcn.006749dc
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x4a8284
mov ecx, dword [ebp - 0x20]
movsx eax, byte [ebp + ecx - 0x484]
cmp eax, 0x41
jl 0x4a823f
mov edx, dword [ebp - 0x20]
movsx ecx, byte [ebp + edx - 0x484]
cmp ecx, 0x5a
jg 0x4a823f
mov eax, dword [ebp - 0x20]
movsx edx, byte [ebp + eax - 0x484]
add edx, 0xffffffbf
mov dword [ebp - 0xc], edx
jmp 0x4a8284
mov ecx, dword [ebp - 0x20]
movsx eax, byte [ebp + ecx - 0x484]
cmp eax, 0x61
jl 0x4a8284
mov edx, dword [ebp - 0x20]
movsx ecx, byte [ebp + edx - 0x484]
cmp ecx, 0x7a
jg 0x4a8284
mov eax, dword [ebp - 0x20]
movsx edx, byte [ebp + eax - 0x484]
add edx, 0xffffff9f
mov dword [ebp - 0xc], edx
jmp 0x4a8284
inc dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
dec ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
ja 0x4a817b
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x4a82a1
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_GetExitCodeProcess
test eax, eax
je 0x4a82a1
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret