Function at 0x404480
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ae003
mov eax, dword fs:[0]
push eax
mov eax, 0x20f8
call fcn.004a5f50
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x20f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x210c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x211c]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x38], eax
cmp edi, ebx
je 0x40494b
mov eax, edi
lea edx, [eax + 2]
jmp 0x4044e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4044e0
sub eax, edx
sar eax, 1
je 0x40494b
xor ecx, ecx
mov ebp, 7
push 0x26
mov eax, str.CSystemCommands::RunProgram___filename
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
call fcn.00401f30
mov dword [esp + 0x2114], 1
xor edx, edx
mov eax, edi
mov word [esp + 0x40], dx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
lea edx, [eax + 2]
jmp 0x404540
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404540
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x40]
call fcn.00401f30
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x2118], 2
call fcn.004035d0
mov esi, 8
add esp, 4
cmp dword [esp + 0x54], esi
jb 0x40458a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [esp + 0x2114], 0xffffffff
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], dx
cmp dword [esp + 0x34], esi
jb 0x4045b7
mov eax, dword [esp + 0x20]
push eax
call fcn.00491101
add esp, 4
mov ebp, dword [esp + 0x38]
cmp ebp, ebx
jne 0x4045c4
mov ebp, 0x4b49f8
xor ecx, ecx
push 0x28
mov eax, str.CSystemCommands::RunProgram___parameters
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
call fcn.00401f30
mov dword [esp + 0x2114], 3
xor edx, edx
mov eax, ebp
mov word [esp + 0x40], dx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404610
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x40]
call fcn.00401f30
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x2118], 4
call fcn.004035d0
mov esi, 8
add esp, 4
cmp dword [esp + 0x54], esi
jb 0x40465a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov ebp, 7
mov dword [esp + 0x2114], 0xffffffff
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], dx
cmp dword [esp + 0x34], esi
jb 0x40468c
mov eax, dword [esp + 0x20]
push eax
call fcn.00491101
add esp, 4
xor eax, eax
push 0x44
lea ecx, [esp + 0x88]
push ebx
push ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call fcn.004957a0
xor eax, eax
add esp, 0xc
xor edx, edx
mov word [esp + 0xec], ax
push 1
mov eax, 0x4b5664
lea esi, [esp + 0xec]
mov dword [esp + 0x88], 0x44
mov dword [esp + 0xb4], 1
mov word [esp + 0xb8], dx
mov dword [esp + 0x104], ebp
mov dword [esp + 0x100], ebx
call fcn.00401f30
mov eax, edi
mov dword [esp + 0x2114], 5
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404710
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0xec]
call fcn.00403430
push 1
mov eax, 0x4b5664
lea ecx, [esp + 0xec]
call fcn.00403430
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0xd4], cx
push ebx
lea eax, [esp + 0xf0]
lea ecx, [esp + 0xd4]
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
call fcn.00401c20
mov esi, dword [esp + 0x38]
mov byte [esp + 0x2114], 6
cmp esi, ebx
je 0x4047b5
push 1
mov eax, 0x4b5668
lea ecx, [esp + 0xd0]
call fcn.00403430
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404797
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0xd0]
call fcn.00403430
mov ecx, dword [esp + 0xd0]
xor edx, edx
cmp dword [esp + 0xe4], 8
mov word [esp + 0x104], dx
jae 0x4047d7
lea ecx, [esp + 0xd0]
lea edx, [esp + 0x104]
mov edi, edi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x4047e0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x88]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea edx, [esp + 0x124]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov word [esp + 0x20], ax
push 0x36
mov eax, str.CSystemCommands::RunProgram___CreateProcess_last_error
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
call fcn.00401f30
mov ecx, edi
mov byte [esp + 0x2114], 7
call fcn.00403270
mov edi, 8
mov byte [esp + 0x2114], 6
cmp dword [esp + 0x34], edi
jb 0x404877
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00491101
add esp, 4
cmp ebp, 1
sete al
mov byte [esp + 0x17], al
cmp al, bl
je 0x404892
mov edx, dword [esp + 0x58]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x1e], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4048e0
mov eax, str.CSystemCommands::RunProgram___exit_code
lea ecx, [esp + 0x68]
call fcn.00401fe0
mov byte [esp + 0x2114], 8
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x68]
call fcn.00403270
call fcn.0040a810
cmp dword [esp + 0x18], ebx
sete al
jmp 0x4048e4
mov al, byte [esp + 0x16]
cmp byte [esp + 0x17], bl
je 0x4048f3
mov byte [esp + 0x16], 1
cmp al, bl
jne 0x4048f7
mov byte [esp + 0x16], bl
cmp dword [esp + 0xe4], edi
jb 0x404910
mov edx, dword [esp + 0xd0]
push edx
call fcn.00491101
add esp, 4
xor eax, eax
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], ax
cmp dword [esp + 0x100], edi
jb 0x404945
mov ecx, dword [esp + 0xec]
push ecx
call fcn.00491101
add esp, 4
mov al, byte [esp + 0x16]
jmp 0x404996
xor edx, edx
push 0x30
mov eax, str.CSystemCommands::RunProgram_szFileName_is_empty.
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
call fcn.00401f30
mov eax, esi
push eax
mov dword [esp + 0x2118], ebx
call fcn.00403780
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x404994
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00491101
add esp, 4
xor al, al
mov ecx, dword [esp + 0x210c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20f0]
xor ecx, esp
call fcn.0049110c
add esp, 0x2104
ret