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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41483e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x41d438]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x150], edi
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], edi
call fcn.00406f90
push 0x2e
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x148], 0x10000
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
inc eax
push eax
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push 0x5c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
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 - 0x14c]
mov dword [ebp - 4], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x409c0e
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edi
push edx
push eax
call fcn.00406840
lea ecx, [ebp - 0x140]
push ecx
mov esi, eax
push edi
push esi
call fcn.004048d0
add esp, 0x18
push 0x5c
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
inc eax
push eax
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
lea ecx, [ebp - 0x13c]
push ecx
push eax
lea edx, [ebp + 0x14]
push edx
mov byte [ebp - 4], 6
call fcn.00407eb0
add esp, 0xc
mov bl, 8
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x80
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x2e
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
inc eax
push eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid_1]
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 9
call dword [0x4162e0]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeUpper]
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.MSVCR71.dll__strupr]
add esp, 4
push 0x419164
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x409b3f
lea edx, [ebp + 0x10]
push edx
push ecx
lea eax, [ebp - 0x13c]
mov ecx, esp
mov dword [ebp - 0x154], esp
push eax
mov dword [ebp + 0x10], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, dword [ebp - 0x158]
call fcn.004071f0
cmp eax, edi
jne 0x409b2f
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x148], 0x1000b
call dword [0x4162e0]
push esi
call fcn.00406b70
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x148]
add esp, 4
lea eax, [ebp - 0x144]
mov dword [esi], edx
push eax
lea ecx, [esi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x409be6
cmp dword [ebp + 0x10], edi
je 0x409b3f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
je 0x409ba1
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x409ba1
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x144]
push 0x419168
push edx
mov dword [ebp - 0x148], 0x1000a
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x148]
add esp, 0xc
lea ecx, [ebp - 0x144]
mov dword [esi], eax
push ecx
jmp 0x409b18
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push edi
push esi
call fcn.00406860
push esi
call fcn.00406b70
add esp, 0x10
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 2
mov dword [esi], eax
push ecx
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]
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]
mov eax, esi
jmp 0x409e42
mov bl, 0xa
push 0x80
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
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]
cmp eax, edi
je 0x409c8a
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 0x409c8a
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 0x409bdd
push 0x1001
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x168]
call sub.MFC71.DLL_CFile::CFile
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xb
call sub.MFC71.DLL_CFile::Write
lea ecx, [ebp - 0x168]
call sub.MFC71.DLL_CFile::Close
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], bl
call fcn.004137b0
jmp 0x409bc4
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