Function at 0x401a02
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x203c]
mov eax, 0x203c
call fcn.0049fdd0
push 0xffffffffffffffff
push 0x4c0134
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x50e7dc]
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 edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
cmp edi, ebx
je 0x401c9c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x401a62
sub eax, edx
sar eax, 1
je 0x401c9c
push str.CSystemCommands::RunProgram___filename
lea ecx, [ebp - 0x34]
call fcn.00404bd0
xor esi, esi
inc esi
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], esi
call fcn.00404bd0
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004058b3
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.004058b3
mov edi, dword [ebp - 0x10]
cmp edi, ebx
jne 0x401ac6
mov edi, 0x4d51f0
push str.CSystemCommands::RunProgram___parameters
lea ecx, [ebp - 0x34]
call fcn.00404bd0
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 3
call fcn.00404bd0
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 4
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004058b3
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.004058b3
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.0049f650
movzx eax, byte [ebp + 0x204c]
add esp, 0xc
neg eax
mov dword [ebp - 0xc4], edi
sbb eax, eax
and eax, 5
mov edi, 0x4d53a4
push edi
lea ecx, [ebp]
mov dword [ebp - 0x98], esi
mov word [ebp - 0x94], ax
call fcn.00404bd0
push dword [ebp - 0x18]
lea ecx, [ebp]
mov dword [ebp - 4], 5
call fcn.004052dd
push edi
lea ecx, [ebp]
call fcn.004052dd
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00404bf2
mov byte [ebp - 4], 6
cmp dword [ebp - 0x10], ebx
je 0x401b9f
push 0x4d53a8
lea ecx, [ebp + 0x1c]
call fcn.004052dd
push dword [ebp - 0x10]
lea ecx, [ebp + 0x1c]
call fcn.004052dd
mov ecx, dword [ebp + 0x20]
xor eax, eax
cmp dword [ebp + 0x34], 8
mov word [ebp + 0x38], ax
jae 0x401bb1
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 0x401bb4
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 edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CSystemCommands::RunProgram___CreateProcess_last_error
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.00404bd0
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call fcn.004018c5
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.004058b3
cmp edi, esi
sete al
cmp al, bl
je 0x401c3f
cmp byte [ebp + 0x2048], bl
je 0x401c81
push dword [ebp + 0x2050]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp + 0x2048], bl
je 0x401c81
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401c81
push str.CSystemCommands::RunProgram___exit_code
lea ecx, [ebp - 0x80]
call fcn.00404bd0
mov byte [ebp - 4], 8
push dword [ebp - 0x14]
lea eax, [ebp - 0x80]
push eax
call fcn.004018c5
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.004058b3
mov edi, dword [ebp - 0x14]
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp]
call fcn.004058b3
mov eax, edi
jmp 0x401cc4
push str.CSystemCommands::RunProgram_szFileName_is_empty.
lea ecx, [ebp - 0x34]
call fcn.00404bd0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], ebx
call fcn.004017f5
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004058b3
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.0049f533
add ebp, 0x203c
leave
ret