Function at 0x408bce
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x203c]
mov eax, 0x203c
call fcn.00494e40
push 0xffffffffffffffff
push 0x49f7ff
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x2038], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2044]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
cmp ebx, edi
je 0x408e5e
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x408c2e
sub eax, edx
sar eax, 1
je 0x408e5e
push str.CSystemCommands::RunProgram___filename
lea esi, [ebp - 0x34]
call fcn.00404db2
xor edi, edi
inc edi
push ebx
lea esi, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.00404db2
lea ecx, [ebp - 0x34]
push ecx
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.00404975
pop ecx
push 0
push edi
call fcn.00404f5a
or dword [ebp - 4], 0xffffffff
push 0
push edi
lea esi, [ebp - 0x34]
call fcn.00404f5a
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x408c91
mov ebx, 0x4aec58
push str.CSystemCommands::RunProgram___parameters
lea esi, [ebp - 0x34]
call fcn.00404db2
push ebx
lea esi, [ebp - 0x64]
mov dword [ebp - 4], 3
call fcn.00404db2
lea ecx, [ebp - 0x34]
push ecx
mov ebx, eax
mov byte [ebp - 4], 4
call fcn.00404975
pop ecx
xor ebx, ebx
push ebx
push edi
call fcn.00404f5a
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea esi, [ebp - 0x34]
call fcn.00404f5a
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.004864e0
mov eax, dword [ebp + 0x204c]
add esp, 0xc
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0x98], 1
cmp eax, 0xffffffff
jne 0x408d0f
xor eax, eax
mov edi, 0x4b0d74
push edi
lea esi, [ebp]
mov word [ebp - 0x94], ax
call fcn.00404db2
push dword [ebp - 0x10]
mov eax, esi
push eax
mov dword [ebp - 4], 5
call fcn.004048a5
push edi
mov eax, esi
push eax
call fcn.004048a5
mov eax, esi
push eax
lea esi, [ebp + 0x1c]
call fcn.004047eb
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], ebx
je 0x408d6b
push 0x4ad5a4
mov eax, esi
push eax
call fcn.004048a5
push dword [ebp - 0x14]
mov eax, esi
push eax
call fcn.004048a5
mov ecx, dword [ebp + 0x20]
xor eax, eax
cmp dword [ebp + 0x34], 8
mov word [ebp + 0x38], ax
jae 0x408d7d
lea ecx, [ebp + 0x20]
lea edx, [ebp + 0x38]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, bx
jne 0x408d80
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc4]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp + 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4b0d78
lea esi, [ebp - 0x34]
mov edi, eax
call fcn.00404db2
push edi
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00408b56
pop ecx
xor edi, edi
push ebx
inc edi
push edi
mov byte [ebp - 4], 6
call fcn.00404f5a
cmp dword [ebp - 0x10], edi
sete al
cmp al, bl
je 0x408e03
cmp byte [ebp + 0x2048], bl
je 0x408e3f
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp + 0x2048], bl
je 0x408e3f
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x408e3f
push str.CSystemCommands::RunProgram___exit_code
lea esi, [ebp - 0x80]
call fcn.00404db2
mov byte [ebp - 4], 8
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00408b56
pop ecx
push ebx
push edi
call fcn.00404f5a
mov eax, dword [ebp - 0x18]
push ebx
push edi
lea esi, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp]
call fcn.00404f5a
mov eax, dword [ebp - 0x10]
jmp 0x408e7e
push str.CSystemCommands::RunProgram_szFileName_is_empty.
lea esi, [ebp - 0x34]
call fcn.00404db2
mov dword [ebp - 4], edi
call fcn.00404e64
push edi
push 1
call fcn.00404f5a
push 2
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2038]
xor ecx, ebp
call fcn.004812cc
add ebp, 0x203c
leave
ret