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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5e2c
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x2c]
xor ebx, ebx
push 0x40
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
xor eax, eax
lea ecx, [esp + 0xdc]
push ebx
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.004911e0
movzx edx, byte [ebp + 0x14]
mov eax, dword [esi + 0x10]
add esp, 0xc
neg edx
sbb edx, edx
and edx, 5
mov word [esp + 0x104], dx
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0xd4], 0x44
mov dword [esp + 0x100], 1
neg ecx
or ecx, eax
push ecx
call fcn.00490047
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x42861a
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00413cc0
mov dword [esp + 0x180], ebx
lea eax, [esp + 0x3c]
push str.szCmd_new_FAILED.
push eax
call fcn.00416b90
add esp, 8
push 0x22
mov edi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x140]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.0040ebe0
mov byte [esp + 0x180], 1
push edi
push str.ProcUtility.cpp
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
call fcn.0040ebe0
mov byte [esp + 0x180], 2
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0x40]
call fcn.00413de0
mov byte [esp + 0x180], 3
push eax
lea edx, [esp + 0x13c]
push edx
push 0x101
lea eax, [esp + 0x128]
push eax
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x180], 2
cmp dword [esp + 0x168], 8
jb 0x428573
mov ecx, dword [esp + 0x154]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], dx
mov byte [esp + 0x180], 1
mov esi, 0x10
cmp dword [esp + 0x130], esi
jb 0x4285b5
mov eax, dword [esp + 0x11c]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov byte [esp + 0x180], bl
cmp dword [esp + 0x14c], esi
jb 0x4285ea
mov ecx, dword [esp + 0x138]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00412cc0
xor al, al
jmp 0x428c9e
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
push ebx
push eax
call fcn.004911e0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x428633
mov eax, dword [esi]
jmp 0x428635
mov eax, esi
mov edx, dword [esp + 0x14]
push eax
push 0x4c5ea8
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov byte [esp + 0x13], 1
cmp dword [edi + 0x10], ebx
ja 0x428659
mov dword [esp + 0x28], ebx
jmp 0x428664
mov ecx, edi
call fcn.0040f1e0
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x38]
cmp dword [edi + 0x10], ebx
ja 0x428671
xor eax, eax
jmp 0x428678
mov ecx, edi
call fcn.0040f1e0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xd8]
push edx
xor edx, edx
cmp byte [ebp + 0x18], bl
push ecx
mov ecx, dword [esp + 0x20]
push ebx
setne dl
push 0x20
push edx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x428888
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00413cc0
mov dword [esp + 0x180], 4
push edi
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, [esp + 0x64]
push str.CreateProcessW_FAILED._GetLastError:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x22
mov edi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
call fcn.0040ebe0
mov byte [esp + 0x180], 5
push edi
push str.ProcUtility.cpp
lea ecx, [esp + 0x140]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.0040ebe0
mov byte [esp + 0x180], 6
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x40]
call fcn.00413de0
mov byte [esp + 0x180], 7
push eax
lea ecx, [esp + 0x120]
push ecx
push 0x115
lea edx, [esp + 0x144]
push edx
push 1
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x180], 6
cmp dword [esp + 0x168], 8
jb 0x4287de
mov eax, dword [esp + 0x154]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], cx
mov byte [esp + 0x180], 5
mov esi, 0x10
cmp dword [esp + 0x14c], esi
jb 0x428820
mov edx, dword [esp + 0x138]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov byte [esp + 0x180], 4
cmp dword [esp + 0x130], esi
jb 0x428856
mov eax, dword [esp + 0x11c]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00412cc0
mov byte [esp + 0x13], bl
jmp 0x428c71
cmp byte [ebp + 0x1c], bl
je 0x428a70
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x428a70
mov ecx, dword [ebp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, ebx
je 0x428a70
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00413cc0
mov dword [esp + 0x180], 8
push esi
push ecx
push str.__dwSingleRet:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x54]
push str.::WaitForSingleObject_FAILED._GetLastError:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
push 0x22
mov edi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
call fcn.0040ebe0
mov byte [esp + 0x180], 9
push edi
push str.ProcUtility.cpp
lea ecx, [esp + 0x140]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.0040ebe0
mov byte [esp + 0x180], 0xa
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x40]
call fcn.00413de0
mov byte [esp + 0x180], 0xb
push eax
lea ecx, [esp + 0x120]
push ecx
push 0x122
lea edx, [esp + 0x144]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x180], 0xa
cmp dword [esp + 0x168], 8
jb 0x4289c6
mov eax, dword [esp + 0x154]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], cx
mov byte [esp + 0x180], 9
mov esi, 0x10
cmp dword [esp + 0x14c], esi
jb 0x428a08
mov edx, dword [esp + 0x138]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov byte [esp + 0x180], 8
cmp dword [esp + 0x130], esi
jb 0x428a3e
mov eax, dword [esp + 0x11c]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00412cc0
mov byte [esp + 0x13], bl
jmp 0x428c71
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x428c55
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x428c55
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x428c55
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00413cc0
mov dword [esp + 0x180], 0xc
mov ecx, dword [esi]
push ecx
push ecx
push str.__pExitCode:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x54]
push str.GetExitCodeProcess_FAILED._GetLastError:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
push 0x22
mov edi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
call fcn.0040ebe0
mov byte [esp + 0x180], 0xd
push edi
push str.ProcUtility.cpp
lea ecx, [esp + 0x140]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.0040ebe0
mov byte [esp + 0x180], 0xe
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x40]
call fcn.00413de0
mov byte [esp + 0x180], 0xf
push eax
lea ecx, [esp + 0x120]
push ecx
push 0x12f
lea edx, [esp + 0x144]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x180], 0xe
cmp dword [esp + 0x168], 8
jb 0x428bae
mov eax, dword [esp + 0x154]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], cx
mov byte [esp + 0x180], 0xd
mov esi, 0x10
cmp dword [esp + 0x14c], esi
jb 0x428bf0
mov edx, dword [esp + 0x138]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov byte [esp + 0x180], 0xc
cmp dword [esp + 0x130], esi
jb 0x428c26
mov eax, dword [esp + 0x11c]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00412cc0
mov byte [esp + 0x13], bl
jmp 0x428c71
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x428c63
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x428c71
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], ebx
call esi
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x20], ebx
call fcn.004913ca
mov al, byte [esp + 0x17]
add esp, 4
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret