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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58c
push ebx
push esi
push edi
or ebx, 0xffffffff
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x468], 0xffffffff
mov dword [ebp - 0x460], 0xffffffff
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x464], 0xffffffff
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 1
push 0
call fcn.004a6b30
pop ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4a459e
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4a459e
push 0
push 0
call fcn.004a6b50
add esp, 8
mov eax, ebx
jmp 0x4a4948
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a45d1
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4a45d1
push 0
push 0
call fcn.004a6b50
add esp, 8
jmp 0x4a4921
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4a461d
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x4a45f1
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4a461d
push 0
push 0
call fcn.004a6b50
add esp, 8
jmp 0x4a48fc
mov esi, dword [ebp + 8]
jmp 0x4a4623
inc esi
movsx eax, byte [esi]
test eax, eax
je 0x4a4634
cmp eax, 0x20
je 0x4a4634
cmp eax, 0x5c
jne 0x4a4622
mov eax, dword [ebp + 8]
mov edx, esi
sub edx, eax
mov eax, edx
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0xfe
ja 0x4a4654
cmp byte [esi], 0x5c
jne 0x4a4672
push 0x3ff
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00490a40
add esp, 0xc
mov byte [ebp - 0x5d], 0
jmp 0x4a46db
mov eax, dword [ebp - 0x46c]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0048ed60
add esp, 0xc
mov eax, dword [ebp - 0x46c]
inc eax
mov byte [ebp + eax - 0x580], 0
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x45c]
push eax
push 0x400
push 0
lea eax, [ebp - 0x580]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4a46db
push 0
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.0048fa10
add esp, 0xc
movsx eax, byte [esi]
test eax, eax
je 0x4a4744
cmp eax, 0x5c
je 0x4a4744
lea edx, [ebp - 0x45c]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4a46f0
mov dword [ebp - 0x58c], eax
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4a4702
mov edx, dword [ebp - 0x58c]
lea eax, [eax + edx + 2]
mov dword [ebp - 0x588], eax
push eax
call fcn.00455e40
pop ecx
mov edi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x45c]
push eax
push str._s__s
mov eax, dword [ebp - 0x588]
push eax
push edi
call fcn.004a2030
add esp, 0x14
jmp 0x4a4770
lea edx, [ebp - 0x45c]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4a474d
inc eax
push eax
call fcn.00455e40
pop ecx
mov edi, eax
push 0
lea eax, [ebp - 0x45c]
push eax
push edi
call fcn.0048fa10
add esp, 0xc
lea edx, [ebp - 0x44]
mov ecx, 0x44
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
mov dword [ebp - 0x44], 0x44
cmp dword [ebp + 0x18], 0
je 0x4a47b7
mov dword [ebp - 0x18], 0x101
mov word [ebp - 0x14], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
or dword [ebp - 0x480], 8
jmp 0x4a480c
mov dword [ebp - 0x18], 0x100
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4a47cd
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
jmp 0x4a47d8
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a47e7
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
jmp 0x4a47f2
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4a4801
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
jmp 0x4a480c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
mov eax, dword [ebp - 0x480]
push eax
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4a484d
push 0
push 0
call fcn.004a6b50
add esp, 8
push edi
call fcn.00455f20
pop ecx
jmp 0x4a48d7
push edi
call fcn.00455f20
pop ecx
push 0
call fcn.004a6b30
pop ecx
mov eax, dword [ebp - 0x47c]
mov ebx, eax
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x474]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4a488b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x468]
mov dword [edx], eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a48a7
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x460]
mov dword [edx], eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4a48c3
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x464]
mov dword [edx], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4a4948
mov eax, dword [ebp - 0x464]
cmp eax, 0xffffffff
je 0x4a48eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
cmp eax, 0xffffffff
je 0x4a48fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x460]
cmp eax, 0xffffffff
je 0x4a4910
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
cmp eax, 0xffffffff
je 0x4a4921
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
je 0x4a4932
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x468]
cmp eax, 0xffffffff
je 0x4a4946
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret