Function at 0x40b142
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413481
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403820
test eax, eax
je 0x40b19d
lea ecx, [ebp + 8]
call fcn.00401900
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x40b4b6
lea ecx, [ebp + 8]
call fcn.004037e0
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0040b8e0
movsx eax, al
cmp eax, 0x5c
je 0x40b1c3
push 0x5c
lea ecx, [ebp + 8]
call fcn.0041177e
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 1
push 0
push 0x4191a4
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x30]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
call fcn.00401900
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x10], 0
je 0x40b484
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
je 0x40b237
mov dword [ebp - 0x68], 0
jmp 0x40b299
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
or al, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x5c]
or edx, 2
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
push edx
push str.name:_s__path:_s__n
call fcn.00405000
add esp, 0xc
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x5c]
and eax, 2
test eax, eax
je 0x40b2b6
and dword [ebp - 0x5c], 0xfffffffd
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
and ecx, 1
test ecx, ecx
je 0x40b2d3
and dword [ebp - 0x5c], 0xfffffffe
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
push 0x4191bc
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00403840
and eax, 0xff
test eax, eax
jne 0x40b35e
push 0x4191c0
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00403840
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x44]
and edx, 0xff
test edx, edx
jne 0x40b35e
mov dword [ebp - 0x8c], 0
jmp 0x40b368
mov dword [ebp - 0x8c], 1
mov al, byte [ebp - 0x8c]
mov byte [ebp - 0x3c], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff
test ecx, ecx
je 0x40b38f
jmp 0x40b210
push 0x80
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x94]
call fcn.00401900
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
call fcn.0040b8a0
test eax, eax
je 0x40b43f
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x98], eax
call fcn.0040b142
add esp, 4
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xa0]
call fcn.00401900
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
jmp 0x40b47f
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xa8]
call fcn.00401900
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
jmp 0x40b210
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp + 8]
call fcn.00401900
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004116a6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret