Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
mov eax, dword [0x44c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x528]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x50c], eax
mov eax, dword [ebp + 0x24]
test eax, eax
push edi
cmovne ecx, eax
mov dword [ebp - 0x518], ebx
push 0x44
lea eax, [ebp - 0x56c]
mov dword [ebp - 0x510], ecx
push 0
push eax
call fcn.00402510
mov ax, word [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x56c], 0x44
mov word [ebp - 0x53c], ax
test esi, esi
je 0x401081
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401070
sub ecx, edx
mov eax, 0
cmove esi, eax
test ebx, ebx
je 0x4010d1
test esi, esi
je 0x4010d1
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401090
sub ecx, edx
je 0x4010d1
cmp byte [esi], 0x20
je 0x4010d1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4010a5
sub ecx, edx
lea eax, [ecx + 2]
push eax
call fcn.0040c83b
mov edi, eax
add esp, 4
mov edx, esi
sub eax, esi
mov byte [edi], 0x20
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax + edx], cl
test cl, cl
jne 0x4010c3
jmp 0x4010ea
test esi, esi
mov eax, 0x4421d0
cmovne eax, esi
push eax
call fcn.0040c7cc
add esp, 4
mov edi, eax
test ebx, ebx
je 0x401121
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x401121
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040c67e
add esp, 0xc
push dword [ebp - 0x510]
lea eax, [ebp - 0x56c]
xor ecx, ecx
push eax
push 0
push 0
push dword [ebp + 0x1c]
test esi, esi
mov eax, edi
push 0
push 0
cmove eax, ecx
test ebx, ebx
push 0
push eax
lea eax, [ebp - 0x108]
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x401242
cmp byte [ebp + 0x14], al
je 0x401242
mov ecx, dword [ebp - 0x50c]
mov eax, str.application
test ecx, ecx
push edi
cmovne eax, ecx
mov ecx, dword [ebp - 0x518]
test ecx, ecx
je 0x4011a7
push ecx
push eax
push str.Cannot_start__s_:_n_n_s__s_n_n
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.00401350
add esp, 0x18
jmp 0x4011c1
push eax
push str.Cannot_start__s_:_n_n_s_n_n
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.00401350
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x50c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x50c]
test eax, eax
je 0x401225
push str.Reason_:
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0040c741
push dword [ebp - 0x50c]
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0040c741
mov eax, dword [ebp - 0x50c]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x50010
push 0
lea eax, [ebp - 0x508]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0040c820
mov edi, dword [ebp + 0x20]
add esp, 4
test edi, edi
je 0x4012a6
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x50c]
mov dword [ebp - 0x50c], 0
push eax
mov eax, dword [ebp - 0x510]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4012a6
cmp dword [ebp - 0x50c], 0x103
jne 0x4012a6
push 0x3e8
call fcn.004012c0
add esi, 0x3e8
add esp, 4
cmp edi, esi
ja 0x401260
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401471
mov esp, ebp
pop ebp
ret