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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4200e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x40a5b8
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a5dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x20
jne 0x40a5dc
xor al, al
jmp 0x40a799
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
push 0x4276e8
push 0x4276ec
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::Replace
push 0x5c
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x4c]
call fcn.00401ab0
push eax
call fcn.00402bcf
add esp, 4
and eax, 0xff
test eax, eax
jne 0x40a67b
mov byte [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x5c]
jmp 0x40a799
mov edx, dword [ebp - 0x74]
push edx
push 0x40b539
lea ecx, [ebp - 0x48]
call fcn.00404f0d
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0
jmp 0x40a6a2
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x40a70b
mov ecx, dword [ebp + 8]
push ecx
push 0x4276f0
push 0x429fd8
lea edx, [ebp - 0x64]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x84]
call fcn.00401ab0
push eax
lea ecx, [ebp - 0x48]
call fcn.004050cc
mov byte [ebp - 0x60], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x60]
and ecx, 0xff
test ecx, ecx
je 0x40a701
jmp 0x40a70b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a699
cmp dword [ebp - 0x10], 3
jne 0x40a777
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x48]
call fcn.004108b0
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x8c]
call fcn.00401ab0
push eax
mov ecx, dword [ebp - 0x74]
call fcn.00410890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 0x6c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040500d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x6c]
jmp 0x40a799
mov byte [ebp - 0x70], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040500d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4