Function at 0x404680
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 [0x41880c]
cmp eax, 3
je case.default.0x4046b4
mov edx, dword [ebp - 0x28]
or edx, 1
cmp eax, 3
mov dword [ebp - 0x28], edx
ja case.default.0x4046b4
jmp dword [eax*4 + 0x40494c]
mov word [ebp - 0x24], 5
jmp case.default.0x4046b4
mov word [ebp - 0x24], 0
jmp case.default.0x4046b4
mov word [ebp - 0x24], 6
jmp case.default.0x4046b4
mov word [ebp - 0x24], 3
mov eax, dword [0x4172cc]
test eax, eax
je 0x4046ea
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4188b8]
test eax, eax
je 0x4046fd
lea ecx, [ebp - 0x25c]
push eax
push ecx
jmp 0x40470b
mov edx, dword [0x418814]
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 [0x4187f8]
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 0x40476d
mov ecx, dword [0x4187f8]
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.00404600
add esp, 4
test eax, eax
jne 0x4047e9
mov edx, dword [ebp - 0x24]
mov ecx, dword [0x41888c]
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 0x40493f
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 0x4047cb
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 [0x418818]
add esp, 0xc
test eax, eax
je 0x40483c
lea ecx, [ebp - 0x158]
push 0x414280
push ecx
call edi
mov edx, dword [0x418818]
lea eax, [ebp - 0x158]
push edx
push eax
call edi
mov eax, dword [0x41888c]
test eax, eax
je 0x404863
lea ecx, [ebp - 0x158]
push 0x414284
push ecx
call edi
mov edx, dword [0x41888c]
lea eax, [ebp - 0x158]
push edx
push eax
call edi
mov ecx, dword [0x4188ac]
push 0
push 0x405aa0
push 0
push 0x7c
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x25c]
push eax
push ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x158]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4048e1
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call fcn.00401300
mov eax, dword [ebp - 0x10]
add esp, 4
push 0x64
push eax
call esi
cmp eax, 0x102
je 0x4048af
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x418810]
test eax, eax
je 0x404929
lea edx, [ebp - 0x2c0]
push 0x64
push edx
push 0x31
push 0x414288
call fcn.00401810
add esp, 0x10
test eax, eax
je 0x404929
lea eax, [ebp - 0x2c0]
push 0
lea ecx, [ebp - 0x158]
push eax
push ecx
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 edx, [ebp - 0x158]
push str.Unable_to_Execute_
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, 0xc
pop esi
mov esp, ebp
pop ebp
ret