Function at 0x406a10
Capabilities:
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x414cf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov esi, ecx
push ecx
lea eax, [esp + 0x5c]
xor ebp, ebp
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x58], ebp
call fcn.00413b2c
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040e0f0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 1
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x18]
push 4
push edx
lea ecx, [esp + 0x60]
call sub.MFC42u.DLL_CString::Left
mov eax, dword [eax]
push 0x41b030
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x18]
setne bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x406ad2
lea ecx, [esp + 0x58]
lea edx, [esp + 0x18]
push ecx
push 0x41b030
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 2
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call sub.MFC42u.DLL_CString::CString
push 1
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00413b2c
mov ecx, esi
call fcn.0040dd30
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebp
call sub.MFC42u.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x58]
push 0x41b020
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x5c], 3
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 4
call sub.MFC42u.DLL_CFileFind::FindFile
lea ecx, [esp + 0x14]
mov edi, eax
mov byte [esp + 0x50], 3
call sub.MFC42u.DLL_CString::CString
test edi, edi
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileExW]
je 0x406c76
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
mov ebp, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CFileFind::GetFilePath
mov edx, dword [esp + 0x2c]
push 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 5
call dword [edx + 0x40]
test eax, eax
je 0x406b9f
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
jne 0x406c5c
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00413b2c
mov ecx, esi
call fcn.00406a10
jmp 0x406c5c
mov ebx, 1
lea edx, [esp + 0x14]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00413b2c
mov ecx, esi
call fcn.0040dd30
mov eax, dword [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
mov eax, dword [esi + 0x60]
jne 0x406c2b
cmp eax, ebx
push 4
jne 0x406c18
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push 4
push 0
push eax
call edi
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x406c5c
mov dword [esp + 0x18], 1
jmp 0x406c5c
mov eax, dword [esp + 0x18]
push 0
push eax
call edi
test eax, eax
jne 0x406c5c
mov dword [esp + 0x18], ebx
jmp 0x406c5c
cmp eax, ebx
push 4
jne 0x406c53
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push 4
push 0
push eax
call edi
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString
jmp 0x406c5c
mov edx, dword [esp + 0x18]
push 0
push edx
call edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 3
call sub.MFC42u.DLL_CString::CString
test ebp, ebp
jne 0x406b42
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CFileFind::Close
lea eax, [esp + 0x24]
push 4
push eax
lea ecx, [esp + 0x60]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x20]
push 0x41b724
push ecx
mov byte [esp + 0x5c], 6
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 8
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea ebx, [esi + 0x7c]
push edx
push 0
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov eax, dword [esp + 0x58]
push 0
push eax
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CFileFind::FindFile
test eax, eax
je 0x406da1
mov ecx, dword [esp + 0x58]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
mov eax, dword [esi + 0x60]
jne 0x406d63
cmp eax, 1
push 4
jne 0x406d3f
lea eax, [esp + 0x24]
lea ecx, [esp + 0x5c]
push eax
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push 4
push 0
push eax
call edi
test eax, eax
lea ecx, [esp + 0x20]
sete byte [esp + 0x13]
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
jne 0x406d5c
jmp 0x406d4c
mov ecx, dword [esp + 0x5c]
push 0
push ecx
call edi
test eax, eax
je 0x406d5c
test ebp, ebp
jne 0x406d57
push str._T_Rd
jmp 0x406da6
cmp ebp, 1
jne 0x406db1
push 0x41b924
jmp 0x406da6
cmp eax, 1
push 4
jne 0x406d91
lea edx, [esp + 0x24]
lea ecx, [esp + 0x5c]
push edx
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push 4
push 0
push eax
call edi
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString
push 0x41b91c
jmp 0x406da6
mov eax, dword [esp + 0x5c]
push 0
push eax
call edi
push 0x41b91c
jmp 0x406da6
push 0x41bba8
push 1
push 0
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CFileFind::Close
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 0
call fcn.00413b32
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 4