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

Disassembly:
push 0x274
mov eax, 0x4118bf
call fcn.0040f8eb
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x27c], eax
xor ebx, ebx
push str.All_Users_
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call dword [0x41307c]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call esi
call fcn.004070fa
mov dword [ebp - 0x270], eax
xor eax, eax
inc eax
mov dword [edi], eax
mov dword [ebp - 0x264], eax
mov dword [esp], 0x24c
lea eax, [ebp - 0x25c]
push ebx
push eax
mov dword [ebp - 0x260], ebx
call sub.MSVCR100.dll_memset
mov ebx, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
push 0x414b20
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x278]
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
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 - 0x274], eax
cmp eax, 0xffffffff
je 0x40be05
xor eax, eax
cmp dword [ebp - 0x264], eax
je 0x40bdf9
test byte [ebp - 0x260], 0x10
je 0x40bd06
push 0x414b18
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40bddb
push 0x414b14
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40bddb
lea eax, [ebp - 0x234]
push eax
push 0x414ae8
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40bdd4
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x26c]
push eax
call ebx
add esp, 0xc
push 0x414d30
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call dword [0x41307c]
push dword [ebp - 0x27c]
lea eax, [ebp - 0x26c]
push ecx
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
call esi
call fcn.0040b3c3
pop ecx
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x40bddb
cmp dword [ebp - 0x270], eax
je 0x40bdd9
lea eax, [ebp - 0x234]
push eax
push str.Registry.db
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40bdd4
push str.Registry.db
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call ebx
add esp, 0xc
mov ecx, dword [ebp - 0x27c]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 3
call fcn.0040b01c
mov ecx, dword [ebp - 0x264]
cmp dword [eax], ecx
jne 0x40bdc6
lea ecx, [ebp - 0x268]
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_DeleteFileW]
test eax, eax
jne 0x40bdc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
call esi
push 0x414f44
push str.StorageTool
push 2
push str.func
push 0x69c
push str.file
call fcn.00407b33
add esp, 0x20
jmp 0x40bdc9
and dword [edi], 0
lea ecx, [ebp - 0x268]
jmp 0x40bcf7
and dword [edi], 0
jmp 0x40bddb
mov dword [edi], eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x264], eax
jmp 0x40bc3d
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi], 0
je 0x40be57
lea ecx, [ebp + 8]
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 0x40be57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call esi
push 0x414d48
push str.StorageTool
push 2
push str.func
push 0x6bd
push str.file
call fcn.00407b33
add esp, 0x20
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call esi
call fcn.0040f935
ret