Function at 0x4ae6e0
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, 0x588
push ebx
push esi
push edi
mov dword [ebp - 0x480], 0
or dword [ebp - 0x5c], 0xffffffff
or dword [ebp - 0x468], 0xffffffff
or dword [ebp - 0x460], 0xffffffff
or dword [ebp - 0x54], 0xffffffff
or dword [ebp - 0x464], 0xffffffff
or dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 1
push 0
call fcn.004be030
pop ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ae76a
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 0x4ae76a
push 0
push 0
call fcn.004be070
add esp, 8
or eax, 0xffffffff
jmp 0x4aeb04
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ae7a0
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 0x4ae7a0
push 0
push 0
call fcn.004be070
add esp, 8
or ebx, 0xffffffff
jmp 0x4aeadd
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4ae7ef
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x4ae7c0
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 0x4ae7ef
push 0
push 0
call fcn.004be070
add esp, 8
or ebx, 0xffffffff
jmp 0x4aeab8
mov esi, dword [ebp + 8]
jmp 0x4ae7f5
inc esi
movsx eax, byte [esi]
test eax, eax
je 0x4ae806
cmp eax, 0x20
je 0x4ae806
cmp eax, 0x5c
jne 0x4ae7f4
mov eax, esi
mov edx, dword [ebp + 8]
sub eax, edx
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0xfe
ja 0x4ae827
movsx eax, byte [esi]
cmp eax, 0x5c
jne 0x4ae845
push 0x3ff
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00532800
add esp, 0xc
mov byte [ebp - 0x5d], 0
jmp 0x4ae8ac
mov eax, dword [ebp - 0x46c]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.00531d20
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 0x4ae8ac
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00531ba0
add esp, 8
movsx eax, byte [esi]
test eax, eax
je 0x4ae908
cmp eax, 0x5c
je 0x4ae908
lea eax, [ebp - 0x45c]
mov edx, eax
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4ae8c3
mov dword [ebp - 0x588], eax
or eax, 0xffffffff
inc eax
cmp byte [esi + eax], 0
jne 0x4ae8d3
mov edx, dword [ebp - 0x588]
lea eax, [eax + edx + 2]
push eax
call fcn.0049b580
pop ecx
mov edi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x45c]
push eax
push str._s__s
push edi
call fcn.00531da0
add esp, 0x10
jmp 0x4ae934
lea eax, [ebp - 0x45c]
mov edx, eax
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4ae913
inc eax
push eax
call fcn.0049b580
pop ecx
mov edi, eax
lea eax, [ebp - 0x45c]
push eax
push edi
call fcn.00531ba0
add esp, 8
push edi
lea edi, [ebp - 0x44]
push edi
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
pop eax
pop edi
mov dword [ebp - 0x44], 0x44
cmp dword [ebp + 0x18], 0
je 0x4ae979
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 0x4ae9ce
mov dword [ebp - 0x18], 0x100
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ae98f
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
jmp 0x4ae99a
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ae9a9
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
jmp 0x4ae9b4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4ae9c3
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
jmp 0x4ae9ce
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 0x4aea12
push 0
push 0
call fcn.004be070
add esp, 8
or ebx, 0xffffffff
push edi
call fcn.0049b640
pop ecx
jmp 0x4aea93
push edi
call fcn.0049b640
pop ecx
push 0
call fcn.004be030
pop ecx
mov eax, dword [ebp - 0x47c]
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x474]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4aea4d
mov edx, dword [ebp - 0x468]
mov dword [eax], edx
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4aea66
mov edx, dword [ebp - 0x460]
mov dword [eax], edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4aea7f
mov edx, dword [ebp - 0x464]
mov dword [eax], edx
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 0x4aeb04
mov eax, dword [ebp - 0x464]
cmp eax, 0xffffffff
je 0x4aeaa7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
cmp eax, 0xffffffff
je 0x4aeab8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x460]
cmp eax, 0xffffffff
je 0x4aeacc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
cmp eax, 0xffffffff
je 0x4aeadd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
je 0x4aeaee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x468]
cmp eax, 0xffffffff
je 0x4aeb02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret