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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2306
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x40
mov esi, edx
mov dword [ebp - 0x70], eax
xor eax, eax
lea edx, [ebp - 0xc4]
push ebx
push edx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
call fcn.004a2b10
movzx eax, byte [ebp + 0xc]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 5
mov word [ebp - 0x98], ax
mov eax, dword [esi + 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0xc8], 0x44
mov dword [ebp - 0x9c], 1
neg ecx
or ecx, eax
push ecx
call fcn.0049aac8
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x47f742
lea eax, [ebp - 0x160]
push eax
call fcn.00410ff0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x160]
push str.szCmd_new_FAILED.
push ecx
call fcn.00418890
add esp, 8
push 0x22
mov esi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004159b0
mov byte [ebp - 4], 1
push esi
push str.ProcUtility.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004159b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x160]
push eax
call fcn.004110f0
mov byte [ebp - 4], 3
push eax
push 0x101
push ebx
call fcn.004117f0
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.0047acf0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x47f6d9
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 1
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jb 0x47f703
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], edi
jb 0x47f720
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.004039f0
xor al, al
jmp 0x47f932
mov eax, dword [esi + 0x10]
inc eax
push eax
push ebx
push edi
call fcn.004a2b10
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x47f75b
mov eax, dword [esi]
jmp 0x47f75d
mov eax, esi
push eax
push 0x4d9278
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov byte [ebp - 0x65], 1
cmp dword [eax + 0x10], ebx
ja 0x47f77e
mov dword [ebp - 0x6c], ebx
jmp 0x47f786
call fcn.00410cd0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x10], ebx
ja 0x47f792
xor eax, eax
jmp 0x47f797
call fcn.00410cd0
lea edx, [ebp - 0x80]
push edx
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0xc8]
push ecx
push edx
push ebx
push 0x20
push 1
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x47f90e
lea eax, [ebp - 0x160]
push eax
call fcn.00410ff0
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
push ecx
push str.__appName:
push ecx
push esi
push ecx
push str.__cmd:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x160]
push str.CreateProcessW_FAILED._GetLastError:
push edx
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
add esp, 4
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 0xc
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 8
push 0x22
mov esi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004159b0
mov byte [ebp - 4], 5
push esi
push str.ProcUtility.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004159b0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.004110f0
mov byte [ebp - 4], 7
push eax
push 0x115
push 1
call fcn.004117f0
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.0047acf0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x50], 8
jb 0x47f8ab
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 0x10
jb 0x47f8d1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 0x10
jb 0x47f8f0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.004039f0
mov byte [ebp - 0x65], bl
mov eax, dword [ebp - 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x7c]
push ecx
mov dword [ebp - 0x80], ebx
call esi
push edi
mov dword [ebp - 0x7c], ebx
call fcn.0049b58d
mov al, byte [ebp - 0x65]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret