Function at 0x402870
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4042c4
mov eax, dword fs:[0]
push eax
sub esp, 0xc54
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0xc50]
mov dword [ebp - 0xc4c], 0
call fcn.004020e0
mov esi, eax
mov ecx, esi
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xc44]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov ecx, esi
mov dword [ebp - 0xc4c], 1
call dword [sym.imp.mfc140u.dll_Ordinal_5884]
push 0xc
push str.Kernel32.dll
push eax
push dword [esi]
lea eax, [ebp - 0xc44]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
push dword [ebp - 0xc44]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0xc44]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xc50]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x40294e
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402947
push 0x800
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0xc60]
mov dword [ebp - 0xc60], 8
push eax
mov dword [ebp - 0xc5c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_CWinApp::InitInstance]
lea ecx, [ebp - 0xc4c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0xc4c]
mov dword [ebp - 4], 2
push eax
push 0
call dword [sym.imp.mfc140u.dll_AfxGetModuleFileName]
lea ecx, [ebp - 0xc44]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc50]
mov edx, dword [ebp - 0xc4c]
call fcn.00401cb0
mov byte [ebp - 4], 4
push dword [eax]
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
lea eax, [ebp - 0xc44]
push str.ExCommand._s
push eax
call esi
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc50]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0xc44]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402a09
push eax
call ebx
jmp 0x402a1e
push dword [ebp - 0xc44]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x408550], eax
call fcn.00401770
lea ecx, [ebp - 0xc44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xc4c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x4056d8
push 0x405614
push str._s_s
push 0x408554
call esi
add esp, 0x10
lea ecx, [ebp - 0xc4c]
call fcn.00401430
lea eax, [ebp - 0xc4c]
mov dword [ebp - 4], 5
push eax
mov ecx, 0x408694
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
lea ecx, [ebp - 0xc4c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [0x4085f0]
cmp word [eax], 0
je 0x402e19
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x402e19
mov dword [ebp - 0xc48], eax
lea eax, [ebp - 0xc48]
push eax
push 0x405390
push 0x15
push 0
push 0x4053a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x402e13
lea eax, [ebp - 0xc58]
push eax
push dword [0x4085f0]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov dword [ebp - 0xc44], eax
cmp dword [ebp - 0xc58], edi
jle 0x402e00
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
nop dword [eax]
push str._CascadeWindows
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402b2f
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._Help
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402b54
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x64]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._SetTime
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402b79
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._TrayProperties
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402b9e
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._MinimizeAll
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402bc3
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._UndoMinimizeALL
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402be8
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._TileHorizontally
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402c0d
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._TileVertically
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402c32
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._ShutdownWindows
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402c57
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._Suspend
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402c7c
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._EjectPC
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402ca1
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._FileRun
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402cc6
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._FindComputer
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402ceb
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x6c]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._FindFiles
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402d10
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._RmHardware
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402d89
push 0x208
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x208
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc40]
push str._s_rundll32.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x830]
push 1
push eax
push str.shell32.dll_Control_RunDLL_hotplug.dll
lea eax, [ebp - 0xc40]
push eax
push str.open
call ebx
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x402de7
mov eax, dword [ebp - 0xc44]
push str._ScreenSaver
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x402de7
push 1
mov dword [ebp - 0xc54], eax
lea eax, [ebp - 0xc54]
push eax
push 0
push 0x10
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x402de7
cmp dword [ebp - 0xc54], 0
push 0
je 0x402dda
push 0xf140
push 0x112
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402de7
push 0
push str.Setting_the_screen_saver_is_disabled.
call dword [sym.imp.mfc140u.dll_AfxMessageBox]
mov eax, dword [ebp - 0xc44]
inc edi
cmp edi, dword [ebp - 0xc58]
jl 0x402b10
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x408550]
test eax, eax
je 0x402e2f
push eax
call ebx
mov dword [0x408550], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040329d
mov esp, ebp
pop ebp
ret