Function at 0x40a7a9
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42012a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov dword [ebp - 0x84], ecx
push 0x427704
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00401ab0
push eax
push 0
mov ecx, dword [ebp - 0x84]
call fcn.0040a3b2
mov eax, dword [ebp - 0x84]
push eax
push 0x40b539
lea ecx, [ebp - 0x48]
call fcn.00404f0d
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x84]
mov ecx, dword [edx + 0x2c]
call fcn.00408f40
mov ecx, eax
add ecx, 4
call fcn.00408fe0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40ab65
mov eax, dword [ebp - 0x4c]
add eax, 0xc
push eax
push 0x429fe0
lea ecx, [ebp - 0x58]
push ecx
call sub.MFC42.DLL_operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00401ab0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x40a885
push 0x80
lea ecx, [ebp - 0x58]
call fcn.00401ab0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x58]
call fcn.00401ab0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a8ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x20
jne 0x40a8ea
push 0x427724
mov ecx, dword [ebp - 0x4c]
add ecx, 0x1c
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 0x6c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040500d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x6c]
jmp 0x40ab87
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x60]
call fcn.0041ea7c
mov byte [ebp - 4], 3
push 0x42772c
push 0x427730
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::Replace
push 0x5c
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
add eax, 1
push eax
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x60]
call fcn.00401ab0
push eax
call fcn.00402bcf
add esp, 4
and eax, 0xff
test eax, eax
jne 0x40a9c6
push 0x427734
mov ecx, dword [ebp - 0x4c]
add ecx, 0x1c
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040500d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x74]
jmp 0x40ab87
mov ecx, dword [ebp - 0x4c]
add ecx, 0xc
push ecx
push 0x429fd8
lea edx, [ebp - 0x5c]
push edx
call sub.MFC42.DLL_operator_1
mov byte [ebp - 4], 5
push 0x42773c
push 0x427740
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::Replace
lea ecx, [ebp - 0x58]
call fcn.00401ab0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401ab0
push eax
lea ecx, [ebp - 0x48]
call fcn.004050cc
and eax, 0xff
test eax, eax
jne 0x40aab8
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x48]
call fcn.004108b0
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x94]
call fcn.00401ab0
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00410890
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
push 0x427744
mov ecx, dword [ebp - 0x4c]
add ecx, 0x1c
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 0x7c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040500d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x7c]
jmp 0x40ab87
push 0x42774c
mov ecx, dword [ebp - 0x4c]
add ecx, 0x1c
call sub.MFC42.DLL_CString::operator_1
push 0x64
push 0x42a0a8
push 1
mov ecx, dword [ebp - 0x84]
call fcn.0040a3b2
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov esi, dword [ebp - 0x54]
imul esi, esi, 0x64
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x2c]
call fcn.00408f40
mov ecx, eax
add ecx, 4
call fcn.00404660
mov ecx, eax
mov eax, esi
cdq
idiv ecx
push eax
push 0x42a0ac
push 0
mov ecx, dword [ebp - 0x84]
call fcn.0040a3b2
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x2c]
call fcn.00408f40
mov ecx, eax
add ecx, 4
call fcn.00409020
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
jmp 0x40a838
mov byte [ebp - 0x80], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040500d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret