Function at 0x404270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c4
push esi
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [0x417730]
cmp eax, 3
je case.default.0x4042a4
mov edx, dword [ebp - 0x28]
or edx, 1
cmp eax, 3
mov dword [ebp - 0x28], edx
ja case.default.0x4042a4
jmp dword [eax*4 + 0x40451c]
mov word [ebp - 0x24], 5
jmp case.default.0x4042a4
mov word [ebp - 0x24], 0
jmp case.default.0x4042a4
mov word [ebp - 0x24], 6
jmp case.default.0x4042a4
mov word [ebp - 0x24], 3
mov eax, dword [0x416224]
test eax, eax
je 0x4042da
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4177d4]
test eax, eax
je 0x4042ed
lea ecx, [ebp - 0x25c]
push eax
push ecx
jmp 0x4042fb
mov edx, dword [0x417738]
lea eax, [ebp - 0x25c]
push edx
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
lea ecx, [ebp - 0x25c]
lea edx, [ebp - 0x158]
push ecx
push edx
call esi
lea eax, [ebp - 0x158]
push eax
call fcn.00401380
mov ecx, dword [0x41771c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
lea edx, [ebp - 0x158]
push ecx
push edx
call edi
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.00401220
add esp, 8
test eax, eax
jne 0x40435d
mov ecx, dword [0x41771c]
lea edx, [ebp - 0x158]
push ecx
push edx
call esi
lea eax, [ebp - 0x25c]
push eax
call fcn.004012e0
add esp, 4
lea ecx, [ebp - 0x158]
push ecx
call fcn.004041f0
add esp, 4
test eax, eax
jne 0x4043d9
mov edx, dword [ebp - 0x24]
mov ecx, dword [0x4177ac]
and edx, 0xffff
lea eax, [ebp - 0x25c]
push edx
push eax
lea edx, [ebp - 0x158]
push ecx
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
test esi, esi
je 0x40450e
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call fcn.00401300
add esp, 4
push 0x64
push esi
call edi
cmp eax, 0x102
je 0x4043bb
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x3c4]
push eax
push ecx
call esi
lea edx, [ebp - 0x3c4]
lea eax, [ebp - 0x158]
push edx
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x4177ac]
add esp, 0xc
test eax, eax
je 0x40442c
lea ecx, [ebp - 0x158]
push 0x41328c
push ecx
call edi
mov edx, dword [0x4177ac]
lea eax, [ebp - 0x158]
push edx
push eax
call edi
mov eax, dword [0x41773c]
test eax, eax
je 0x404453
lea ecx, [ebp - 0x158]
push 0x413290
push ecx
call edi
mov edx, dword [0x41773c]
lea eax, [ebp - 0x158]
push edx
push eax
call edi
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x54]
push ecx
lea eax, [ebp - 0x25c]
push edx
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x158]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4044b0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call fcn.00401300
mov edx, dword [ebp - 0x10]
add esp, 4
push 0x64
push edx
call esi
cmp eax, 0x102
je 0x404485
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x417734]
test eax, eax
je 0x4044f8
lea ecx, [ebp - 0x2c0]
push 0x64
push ecx
push 0x31
push str.Strings
call fcn.004017f0
add esp, 0x10
test eax, eax
je 0x4044f8
lea edx, [ebp - 0x2c0]
push 0
lea eax, [ebp - 0x158]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x158]
push str.Unable_to_Execute_
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, 0xc
pop esi
mov esp, ebp
pop ebp
ret