Function at 0x403d20
Capabilities:
Delete directory
Delete file
Get file attributes
Print debug messages
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x404ecc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
mov dword [esp + 0xc], ecx
push ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ebp, dword [esp + 0x47c]
lea eax, [esp + 0x3a4]
push ebp
push str._s.
push eax
mov dword [esp + 0x480], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x3a4]
push 0
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x403f7b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x403f6c
lea edx, [esp + 0x18]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x484], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1d0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x480], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00404476
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [edx + 0x40]
test eax, eax
je 0x403ebf
lea eax, [esp + 0x1d0]
lea ecx, [esp + 0x40]
push eax
push ebp
push str._s_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push ebp
lea edx, [esp + 0x14]
push 0x4079f0
push edx
mov byte [esp + 0x48c], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call ebx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push 0x4079c8
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call ebx
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea edx, [esp + 0x40]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
call fcn.00403d20
mov byte [esp + 0x480], 0
lea ecx, [esp + 0x10]
jmp 0x403f67
lea ecx, [esp + 0x1d0]
lea edx, [esp + 0x108]
push ecx
push ebp
push str._s_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x108]
lea ecx, [esp + 0x14]
push eax
push 0x40799c
push ecx
mov byte [esp + 0x48c], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call ebx
lea eax, [esp + 0x298]
lea ecx, [esp + 0x108]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
mov al, byte [esp + 0x2a8]
test al, al
je 0x403f4d
lea edx, [esp + 0x298]
lea eax, [esp + 0x108]
push edx
push eax
mov byte [esp + 0x2b0], 0
call sub.MFC42.DLL_CFile::SetStatus
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x480], 0
lea ecx, [esp + 0x14]
call fcn.00404476
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x403d96
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x470], 0xffffffff
lea ecx, [esp + 0x14]
jne 0x403fbd
call fcn.004046f8
xor eax, eax
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
add esp, 0x474
ret 4
call fcn.004046f8
mov ecx, dword [esp + 0x468]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x474
ret 4