Function at 0x40a600
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a7014
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x17c], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x10]
push eax
mov ebx, 1
push str._s
push ecx
mov byte [esp + 0x188], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40a819
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [esp + 0x34], 0x10
je 0x40a757
mov esi, 0x4dff30
lea eax, [esp + 0x60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a6be
test cl, cl
je 0x40a6ba
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a6be
add eax, 2
add esi, 2
test cl, cl
jne 0x40a69a
xor eax, eax
jmp 0x40a6c3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a74c
mov esi, 0x4dff2c
lea eax, [esp + 0x60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a6f8
test cl, cl
je 0x40a6f4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a6f8
add eax, 2
add esi, 2
test cl, cl
jne 0x40a6d4
xor eax, eax
jmp 0x40a6fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a74c
lea eax, [esp + 0x184]
push 0x4df2e0
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push ecx
lea ecx, [esp + 0x64]
mov edx, esp
mov dword [esp + 0x34], esp
push ecx
push eax
push edx
mov byte [esp + 0x18c], 2
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x30]
call fcn.0040a600
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], bl
call sub.MFC42.DLL_CString::CString
test byte [esp + 0x34], 0x10
jne 0x40a7f6
lea edx, [esp + 0x184]
push 0x4df2e0
lea eax, [esp + 0x2c]
push edx
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x60]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x188], 3
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0x80
push eax
call edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x184]
push 0x4df2e0
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x60]
mov byte [esp + 0x17c], 4
push edx
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a686
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40a85d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x184]
mov dword [esp + 0x17c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40a887
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x184]
mov dword [esp + 0x17c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x170
ret 4