Function at 0x408f60
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42c335
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c01c]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
push str.ParseCmdLine
push 0xd1
push str..StarterApp.cpp
call fcn.0041cc90
add esp, 0xc
call fcn.0040b330
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x84], ebx
mov eax, dword [sym.imp.MSVCR80.dll___argc]
mov ecx, dword [eax]
mov eax, dword [sym.imp.MSVCR80.dll___wargv]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
call fcn.0040b050
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x24]
push ecx
push str.rename
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x90], 1
call fcn.0040b1e0
test eax, eax
jne 0x40903d
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x88], 0xffffffff
call fcn.00409400
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebx + 1]
jmp 0x4092ee
lea edi, [esp + 0x14]
lea esi, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0040b270
test eax, eax
jne 0x40908d
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, esi
push edx
mov dword [esp + 0x88], 0xffffffff
call fcn.00409400
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
jmp 0x4092ee
push 0x430130
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x430128
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x5c]
push ecx
lea edi, [esp + 0x44]
lea ebx, [esp + 0x28]
mov byte [esp + 0x88], 3
call fcn.00409800
add esp, 4
mov ecx, edi
mov byte [esp + 0x84], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [esp + 0x14]
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, 8
cmp dword [esp + 0x3c], ebx
mov esi, eax
mov eax, dword [esp + 0x28]
jae 0x409116
lea eax, [esp + 0x28]
push edi
push esi
push eax
push str.ParseCmdLine_strRenameFile_s_hProcess_08x_nProcessId_d
push 0xd1
push str..StarterApp.cpp
call fcn.0041cc90
add esp, 0x18
test esi, esi
je 0x409167
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x28]
jae 0x409180
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4092a1
test al, 0x10
jne 0x4092a1
push str.ParseCmdLine_rename
push 0xd1
push str..StarterApp.cpp
call fcn.0041cc90
lea esi, [esp + 0x30]
lea ecx, [esp + 0x4c]
call fcn.00409f50
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
mov byte [esp + 0x94], 4
call fcn.0040a000
add esp, 0x10
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 5
call dword [0x42e238]
push str..exe
lea ecx, [esp + 0x44]
call dword [0x42e234]
cmp dword [esp + 0x58], ebx
mov esi, dword [esp + 0x44]
jae 0x409204
lea esi, [esp + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
jne 0x40922c
push 4
push 0
push esi
call ebx
cmp dword [esp + 0x58], 8
mov ecx, dword [esp + 0x44]
jae 0x40923b
lea ecx, [esp + 0x44]
push eax
push ecx
push str.ParseCmdLine_delete_Old_EXE_strFilePath_s_bDel_d
push 0xd1
push str..StarterApp.cpp
call fcn.0041cc90
add esp, 0x14
lea eax, [esp + 0x40]
lea ecx, [esp + 0x24]
call fcn.00409df0
mov eax, dword [sym.imp.MSVCR80.dll__wpgmptr]
mov esi, dword [eax]
push 0x80
push esi
call edi
push esi
call ebp
test eax, eax
jne 0x40927d
push 4
push eax
push esi
call ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.ParseCmdLine_End
push 0xd1
push str..StarterApp.cpp
call fcn.0041cc90
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x88], 0xffffffff
call fcn.00409400
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00422218
add esp, 0x74
ret