Function at 0x401af0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x406507
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_3
push 0x14
lea eax, [esp + 0x94]
mov esi, ecx
push 4
push eax
mov dword [esp + 0x3c], esi
call fcn.00404934
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_3
push 0x14
lea ecx, [esp + 0x44]
xor ebx, ebx
push 4
push ecx
mov dword [esp + 0xf4], ebx
call fcn.00404934
add esi, 0x14
push 1
lea edx, [esp + 0x8c]
push 0x14
push edx
mov ecx, esi
mov byte [esp + 0xec], 1
call fcn.004028a0
push ebx
lea eax, [esp + 0x3c]
push 0x14
push eax
mov ecx, esi
call fcn.004028a0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xe0], 2
lea esi, [esp + ebx + 0x88]
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 3
call fcn.004046fa
lea ecx, [esp + 0x34]
mov byte [esp + 0xe0], 2
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x30]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 4
call fcn.004046fa
lea ecx, [esp + 0x30]
mov byte [esp + 0xe0], 2
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00402b70
add esp, 4
lea ecx, [esp + 0x10]
push 0x40904c
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401c68
mov edx, dword [esp + 0x10]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 0x14
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
dec ebp
test edi, edi
jne 0x401c9d
test ebp, ebp
jg 0x401c7b
lea esi, [esp + ebx + 0x38]
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
inc eax
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 5
call fcn.004046fa
lea ecx, [esp + 0x20]
mov byte [esp + 0xe0], 2
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 6
call fcn.004046fa
lea ecx, [esp + 0x24]
mov byte [esp + 0xe0], 2
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402b70
add esp, 4
lea ecx, [esp + 0x10]
push 0x40904c
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401d73
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 0x14
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec ebp
test edi, edi
jne 0x401da6
test ebp, ebp
jg 0x401d86
add ebx, 4
cmp ebx, 0x50
jl 0x401b8f
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 7
call sub.MFC42.DLL_CString::CString_3
mov ebx, dword [esp + 0x28]
push 0x5c
mov byte [esp + 0xe4], 8
lea esi, [ebx + 4]
mov ecx, esi
mov dword [esp + 0x24], esi
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov eax, dword [ebx + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push eax
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0xe8], 9
xor edi, edi
call esi
add esp, 8
test eax, eax
je 0x401e48
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call esi
add esp, 8
test eax, eax
jne 0x401e31
mov edi, 1
jmp 0x401e48
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push edx
call esi
add esp, 8
test eax, eax
jne 0x401e48
mov edi, 2
xor ebp, ebp
mov esi, str.dolfcejczc
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov eax, ebp
mov ecx, 3
cdq
idiv ecx
cmp edx, edi
jne 0x401eb9
lea edx, [esp + 0x14]
lea eax, [ebx + edi*4 + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0xa
call fcn.004046fa
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
add eax, 0xfffffffc
push eax
push edx
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0xb
call fcn.004046fa
lea ecx, [esp + 0x24]
mov byte [esp + 0xe0], 9
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00402b70
add esp, 4
add esi, 0x19
inc ebp
cmp esi, 0x483190
jl 0x401e4f
mov ecx, dword [esp + 0x20]
push 0x82
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe0], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xe0], 1
call sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString
push 0x14
lea edx, [esp + 0x40]
push 4
push edx
mov byte [esp + 0xf0], 0
call fcn.00404840
push sub.MFC42.DLL_CString::CString
push 0x14
lea eax, [esp + 0x90]
push 4
push eax
mov dword [esp + 0xf0], 0xffffffff
call fcn.00404840
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd4
ret