Function at 0x403e90
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x18]
push 1
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x408124
push eax
call edi
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne bl
call fcn.004050bc
test bl, bl
je 0x403f15
push 0x408124
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push eax
add eax, 0x617
pop eax
push 0x41022c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x14]
push 0
push edx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40413c
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x40]
test eax, eax
je 0x403f86
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x403f86
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push ecx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, esi
call fcn.00403e90
jmp 0x404131
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x404131
mov edx, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [edx + 0x40]
test eax, eax
jne 0x404131
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [0x418664]
mov ecx, dword [ebp - 0x10]
and al, 0xfe
push eax
push ecx
mov dword [0x418664], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x1c]
push 4
push edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Right
mov eax, dword [0x410240]
mov byte [ebp - 4], 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call edi
add esp, 8
test eax, eax
jne 0x404013
mov ecx, dword [ebp - 0x10]
push ecx
call ebx
mov edx, dword [ebp - 0x10]
push 0
lea eax, [esi + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp byte [0x41865c], 1
jne 0x40405e
mov eax, dword [0x410234]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call edi
add esp, 8
test eax, eax
jne 0x40405e
mov edx, dword [ebp - 0x10]
push edx
call ebx
lea eax, [ebp - 0x10]
push 0x410244
lea ecx, [ebp - 0x40]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
lea edx, [esi + 0x60]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x40]
call fcn.004050bc
mov eax, dword [0x410244]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call edi
add esp, 8
test eax, eax
je 0x404088
mov eax, dword [0x41023c]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call edi
add esp, 8
test eax, eax
jne 0x404119
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x410238]
mov ecx, dword [0x410244]
push eax
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::Replace
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x170]
push edx
push eax
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
jne 0x404101
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x44], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00403d10
push eax
sub eax, 0x454
pop eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.004051be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004050bc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004050bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004050bc
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x403f45
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004050bc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00405224
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004050bc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4