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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a07f5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a07c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00402a84
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x10]
call fcn.00409450
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00409450
lea edx, [ebp - 0x84]
mov eax, ebx
call fcn.00409484
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x14]
call fcn.00409540
cmp dword [ebp - 0x80], 0
jne 0x4a05ff
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00404638
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0xc
call fcn.0040309c
mov dword [ebp - 0x24], 0xc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x18]
mov edx, 0x4a080c
call fcn.00404638
push 0
push 0x80000100
push 2
lea eax, [ebp - 0x24]
push eax
push 3
push 0xc0000000
mov eax, dword [ebp - 0x18]
call fcn.00404a60
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4a0697
mov eax, 0x4a0824
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x88], 0xb
lea eax, [ebp - 0x94]
push eax
push 1
mov ecx, 0x4a083c
mov dl, 1
mov eax, dword [0x407acc]
call fcn.0040c78c
call fcn.00403fdc
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.0040309c
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404a60
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, ebx
call fcn.00404a60
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4a0717
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x78]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xc], eax
jmp 0x4a0755
mov eax, 0x4a0824
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x88], 0xb
lea eax, [ebp - 0x94]
push eax
push 1
mov ecx, 0x4a0870
mov dl, 1
mov eax, dword [0x407acc]
call fcn.0040c78c
call fcn.00403fdc
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esi]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a07ca
cmp dword [ebp - 4], 0
je 0x4a0790
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 8], 0
je 0x4a079f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0xc], 0
je 0x4a07ae
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
call fcn.00409394
test al, al
je 0x4a07c2
mov eax, dword [ebp - 0x18]
call fcn.004093b8
ret