Function at 0x40c7c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48bb6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4d0
lea eax, [esp + 4]
push edi
push eax
call fcn.0040cad0
add esp, 4
lea ecx, [esp + 8]
push 0x4b0d1c
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x4e8], 0
call sub.MFC42u.DLL_operator_2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x4e4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
setne al
test eax, eax
mov dword [esp + 0x30], eax
je 0x40ca82
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__wtoi]
push esi
mov ebx, 6
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x4b0b70
push eax
mov byte [esp + 0x4f0], 2
call esi
add esp, 8
test eax, eax
je 0x40ca54
mov ecx, dword [esp + 0x10]
push 0x4b0b7c
push ecx
call esi
add esp, 8
test eax, eax
je 0x40ca54
test byte [esp + 0x40], 0x10
je 0x40ca54
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], 8
jne 0x40ca54
xor edx, edx
mov cx, word [eax]
cmp cx, 0x30
jb 0x40ca54
cmp cx, 0x39
ja 0x40ca54
inc edx
add eax, 2
cmp edx, 8
jl 0x40c8ad
push 2
lea edx, [esp + 0x3c]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x38]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
push 2
lea eax, [esp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x24]
mov edi, eax
call sub.MFC42u.DLL_CString::CString
test esi, esi
je 0x40ca54
cmp esi, 0xc
jg 0x40ca54
test edi, edi
je 0x40ca54
cmp edi, 0x1f
jg 0x40ca54
lea ecx, [esp + 0x14]
push 0x4b00b0
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x4f4], 3
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x4e8], 5
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x18]
push 0x4b0d0c
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42u.DLL_operator_2
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x290]
push edx
push eax
mov byte [esp + 0x4f0], bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40ca20
mov ecx, dword [esp + 0x290]
and ecx, 0x10
cmp cl, 0x10
je 0x40ca0d
lea edx, [esp + 0x18]
push 0x4b00b0
lea eax, [esp + 0x30]
push edx
push eax
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x2bc]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x4f4], 7
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4e8], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c9ad
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4e8], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e8], 2
call sub.MFC42u.DLL_CString::CString
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x40]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x4e8], 1
call sub.MFC42u.DLL_CString::CString
test esi, esi
jne 0x40c848
pop esi
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x4dc], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x4dc], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x4d4]
pop edi
mov dword fs:[0], ecx
add esp, 0x4dc
ret