Function at 0x402160
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x403817
push eax
mov dword fs:[0], esp
sub esp, 0x540
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
push edi
mov edi, 0x4065c4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, 0x40649c
push 0x40649c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4065c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x564]
mov edx, ecx
mov esi, edi
mov edi, 0x406398
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x344]
lea edx, [esp + 0x448]
push ecx
lea eax, [esp + 0x244]
push edx
push eax
push 0x40649c
call fcn.00401130
lea edi, [esp + 0x250]
or ecx, 0xffffffff
xor eax, eax
push 0x406294
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x406398
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004012d0
push 0x40649c
call fcn.00401de0
add esp, 0x18
test eax, eax
je 0x40246d
push 0x40649c
call fcn.004018b0
add esp, 4
test eax, eax
jne 0x4023ed
lea ecx, [esp + 0x14]
call fcn.00403018
push 0xf006
lea ecx, [esp + 0x18]
mov dword [esp + 0x558], 0
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x14]
push 0x30
push str.Presto__Wrapper
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call fcn.00403018
push 0x406294
lea ecx, [esp + 0x14]
push str._s.
push ecx
mov byte [esp + 0x560], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00403054
lea ecx, [esp + 0xc]
mov byte [esp + 0x554], 2
call fcn.00403018
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x55c], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x402375
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov bl, 4
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x20]
mov ebp, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x402370
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x40]
test eax, eax
jne 0x402370
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x55c], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x558], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0x80
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call edi
test ebp, ebp
jne 0x402304
pop ebp
push 0x406294
lea ecx, [esp + 0x140]
push 0x406044
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x148]
push 0
push edx
call fcn.00402800
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x554], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x554], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov byte [esp + 0x554], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x554], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40246d
mov eax, dword [0x406290]
test eax, eax
je 0x402468
lea eax, [esp + 0x38]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__getcwd]
movsx ecx, byte [0x406294]
mov esi, dword [sym.imp.MSVCRT.dll_toupper]
push ecx
call esi
mov edi, dword [sym.imp.MSVCRT.dll__chdrive]
sub eax, 0x40
push eax
call edi
mov ebx, dword [sym.imp.MSVCRT.dll__chdir]
push 0x406294
call ebx
add esp, 0x14
call fcn.00401d30
mov edx, dword [0x40628c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x40628c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
movsx ecx, byte [esp + 0x38]
push ecx
call esi
sub eax, 0x40
push eax
call edi
lea edx, [esp + 0x40]
push edx
call ebx
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x54c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54c
ret