Function at 0x40db81
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push 0x28c
mov eax, 0x411cfe
call fcn.0040f8eb
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x278], eax
mov esi, dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call esi
lea ecx, [ebp + 0xc]
test al, al
je 0x40dbcc
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, eax
call fcn.0040f935
ret 0xc
call esi
test al, al
je 0x40dbe3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, ebx
jmp 0x40dbc4
push 1
lea eax, [ebp - 0x264]
push eax
mov ecx, edi
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
push 0x5c
push eax
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_]
pop ecx
pop ecx
lea ecx, [ebp - 0x264]
mov bl, al
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
test bl, bl
je 0x40dc1b
push 0x5c
mov ecx, edi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
mov ecx, esp
mov dword [ebp - 0x264], esp
push edi
call esi
call fcn.00407010
xor ebx, ebx
inc ebx
pop ecx
mov dword [ebp - 0x264], eax
test eax, eax
je 0x40dbd2
push ecx
mov dword [ebp - 0x26c], esp
lea eax, [ebp - 0x271]
mov dword [ebp - 0x26c], esp
push eax
lea ecx, [ebp - 0x298]
call fcn.0040ae3b
xor eax, eax
push 0x24c
push eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x25c]
push eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x270], ebx
call sub.MSVCR100.dll_memset
push 0x414b20
lea eax, [ebp - 0x280]
push edi
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x40ddd1
cmp dword [ebp - 0x270], 0
je 0x40ddbb
test byte [ebp - 0x260], 0x10
je 0x40dd9d
push 0x414b18
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40dd9d
push 0x414b14
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40dd9d
and dword [ebp - 0x27c], 0
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.Common.dll_Ordinal_34]
cmp dword [ebp - 0x27c], 0
pop ecx
pop ecx
je 0x40dd9d
push dword [ebp - 0x278]
inc dword [ebp - 0x268]
push dword [ebp - 0x268]
lea eax, [ebp - 0x234]
push dword [ebp - 0x264]
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push edi
mov byte [ebp - 4], 3
call esi
mov ecx, dword [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.004085ab
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ddbb
cmp ebx, 0xfffffffd
je 0x40ddbb
cmp ebx, 3
je 0x40ddbb
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x270], eax
jmp 0x40dccb
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x40de1a
cmp ebx, 0xfffffffd
je 0x40de1a
mov ecx, edi
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40de1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push edi
call esi
push 0x414d48
push str.StorageTool
push 2
push str.func
push 0xaa6
push str.file
call fcn.00407b33
add esp, 0x20
cmp ebx, 1
jne 0x40de2b
cmp dword [ebp - 0x290], 0
jbe 0x40de2b
push 2
pop ebx
mov ecx, dword [ebp - 0x278]
test ecx, ecx
je 0x40de4e
mov eax, dword [ecx]
push 0
push 0x64
push 0x64
push dword [ebp - 0x268]
push dword [ebp - 0x264]
push ebx
push 4
call dword [eax]
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 0
call fcn.0040d548
jmp 0x40dbd2