Function at 0x4092d0
Capabilities:
Check if file exists
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4147d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [0x41d438]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 1
call fcn.00406f90
push 0x2e
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ebp - 0x148], 0x10000
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
inc eax
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push 0x5c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push ecx
mov ecx, esp
mov dword [ebp - 0x154], esp
push eax
push ecx
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
mov ecx, esi
call fcn.00408bc0
push 0x4191c8
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
lea ecx, [ebp + 0xc]
push 0x80
jne 0x40967a
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40941e
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40941e
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x144]
push 0x419168
push eax
mov dword [ebp - 0x148], 0x1000a
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x148]
add esp, 0xc
lea edx, [ebp - 0x144]
mov dword [esi], ecx
push edx
jmp 0x409825
push 2
push 0
push 0
push 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.00406820
mov esi, eax
lea eax, [ebp - 0x140]
push eax
push 0
push esi
call fcn.004048d0
add esp, 0x14
push 0x5c
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
inc eax
push eax
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
lea edx, [ebp - 0x13c]
push edx
push eax
lea eax, [ebp - 0x14c]
push eax
mov byte [ebp - 4], 7
call fcn.00407eb0
add esp, 0xc
mov bl, 9
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x80
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
push 0x2e
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
inc eax
push eax
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xa
call dword [0x4162e0]
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x150]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeUpper]
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.MSVCR71.dll__strupr]
add esp, 4
push 0x419164
lea ecx, [ebp - 0x150]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x4095d0
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x154]
push eax
push ecx
lea edx, [ebp - 0x13c]
mov ecx, esp
mov dword [ebp - 0x15c], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, dword [ebp - 0x160]
call fcn.004071f0
test eax, eax
jne 0x4095bb
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x148], 0x1000b
call dword [0x4162e0]
push esi
call fcn.00406b70
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x148]
add esp, 4
lea edx, [ebp - 0x144]
mov dword [esi], ecx
push edx
lea ecx, [esi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40982e
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x4095d0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40963b
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40963b
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x144]
push 0x419168
push ecx
mov dword [ebp - 0x148], 0x1000a
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x148]
add esp, 0xc
lea eax, [ebp - 0x144]
mov dword [esi], edx
push eax
jmp 0x4095a1
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
push esi
call fcn.00406860
push esi
call fcn.00406b70
add esp, 0x10
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40980c
mov byte [ebp - 4], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4097ea
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4097ea
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x144]
push 0x419168
push edx
mov dword [ebp - 0x148], 0x1000a
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
jmp 0x409813
push 2
push 0
push 0
push 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov dword [ebp - 4], 3
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x144]
mov dword [esi], eax
push ecx
lea ecx, [esi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x150]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x144]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, esi
jmp 0x4098d9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00413841
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10