Function at 0x401220
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x40492f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x68], 2
call sub.MFC42.DLL_CFileFind::CFileFind
push 0x4074a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 3
call fcn.004042c2
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x74]
push str..
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x74], 5
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40150f
mov ebp, dword [esp + 0x7c]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 0xd
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x7c]
mov dword [esp + 0x38], eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 7
call dword [eax + 0x40]
test eax, eax
je 0x40143d
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40143d
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::GetFileName
lea edx, [esp + 0x28]
lea ecx, [esp + 0x44]
push edx
mov byte [esp + 0x6c], 8
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 8
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40158d
push ebp
push ecx
lea eax, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x78], 0xa
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x38]
mov ecx, esi
push eax
mov byte [esp + 0x78], 8
call fcn.00401220
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 8
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4015b0
mov edx, dword [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40142f
cmp ebp, 1
jne 0x401420
push ebp
push ecx
lea eax, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004015f0
mov byte [esp + 0x68], 7
lea ecx, [esp + 0x18]
jmp 0x4014f0
mov ecx, dword [esp + 0x7c]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov byte [esp + 0x68], 7
lea ecx, [esp + 0x18]
jmp 0x4014f0
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4014f5
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xc
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x30]
lea ecx, [esp + 0x44]
push edx
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0xe
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x34]
lea ecx, [esp + 0x44]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xf
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], bl
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00401980
push 0xa
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xc
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x68], 7
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4012d2
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::Close
mov esi, dword [esp + 0x70]
push 0x4074a0
mov ecx, esi
call fcn.004042c2
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 2
call fcn.004042e0
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 0x10
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::Close
mov esi, dword [esp + 0x70]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], 1
jmp 0x4015c8
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString
jmp 0x401530