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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414fe1
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x41e130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], ecx
push eax
lea eax, [ebp + 8]
mov dword [ecx], 1
push eax
lea ecx, [ebp - 0x270]
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push 0x417df0
lea ecx, [ebp + 8]
call dword [0x416078]
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x284], esp
push edx
call ebx
call fcn.00408940
push 0x24c
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x25c]
push 0
push eax
mov esi, 1
mov dword [ebp - 0x260], 0
call sub.MSVCR80.dll_memset
push 0x417bdc
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x280]
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0x1c
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]
cmp eax, 0xffffffff
mov dword [ebp - 0x270], eax
je 0x40ee7f
test esi, esi
je 0x40ee72
test byte [ebp - 0x260], 0x10
je 0x40ec63
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x417bd4
lea ecx, [ebp - 0x234]
push ecx
call esi
test eax, eax
je 0x40ee57
push 0x417bd0
lea edx, [ebp - 0x234]
push edx
call esi
test eax, eax
je 0x40ee57
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [ebp - 0x234]
push eax
push 0x417ba0
call esi
test eax, eax
jne 0x40eb32
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
push 0x417df0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call dword [0x416078]
push edi
push ecx
lea edx, [ebp - 0x278]
mov ecx, esp
mov dword [ebp - 0x274], esp
push edx
call ebx
call fcn.0040dae0
add esp, 8
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x40ee57
lea eax, [ebp - 0x234]
push eax
push str.Backup
call esi
test eax, eax
jne 0x40eba4
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
push 0x417df0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 4
call dword [0x416078]
push edi
push ecx
lea edx, [ebp - 0x27c]
mov ecx, esp
mov dword [ebp - 0x274], esp
push edx
call ebx
call fcn.0040dae0
add esp, 8
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x40ee57
lea eax, [ebp - 0x234]
push eax
push 0x417df4
call esi
test eax, eax
jne 0x40ec52
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
push 0x417df0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 5
call dword [0x416078]
lea ecx, [ebp - 0x26c]
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 0x40ec3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x26c]
mov ecx, esp
mov dword [ebp - 0x274], esp
push edx
call ebx
push 0x417e08
push str.StorageTool
push 2
push str.func
push 0x617
push str.file
call fcn.004097e0
add esp, 0x20
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x40ee57
mov eax, dword [ebp - 0x264]
mov dword [eax], 0
jmp 0x40ee57
cmp dword [ebp - 0x284], 0
je 0x40ee4b
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea ecx, [ebp - 0x234]
push ecx
push 0x417dc0
call esi
test eax, eax
je 0x40ed31
lea edx, [ebp - 0x234]
push edx
push str.CustomFace.dbc
call esi
test eax, eax
je 0x40ed31
lea eax, [ebp - 0x234]
push eax
push str.CustomFaceRecv.db
call esi
test eax, eax
je 0x40ed31
lea ecx, [ebp - 0x234]
push ecx
push str.Info.db
call esi
test eax, eax
je 0x40ed31
lea edx, [ebp - 0x234]
push edx
push str.Misc.db
call esi
test eax, eax
je 0x40ed31
lea eax, [ebp - 0x234]
push eax
push str.Msg2.0.db
call esi
test eax, eax
je 0x40ed31
lea ecx, [ebp - 0x234]
push ecx
push str.Infocenter.db
call esi
test eax, eax
je 0x40ed31
lea edx, [ebp - 0x234]
push edx
push str.Registry.db
call esi
test eax, eax
je 0x40ed31
lea eax, [ebp - 0x234]
push eax
push str.MicroBlogMsg.db
call esi
test eax, eax
je 0x40ed31
mov ecx, dword [ebp - 0x264]
mov dword [ecx], 0
jmp 0x40ee57
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x268]
push ecx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
mov edx, dword [edi + 4]
lea eax, [ebp - 0x268]
push eax
mov ecx, edi
mov byte [ebp - 4], 6
mov dword [ebp - 0x298], edx
call fcn.00409640
cmp eax, dword [edi + 4]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x294], edi
je 0x40ed98
add eax, 0xc
push eax
lea ecx, [ebp - 0x268]
push ecx
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___class_CTXStringW_const__]
add esp, 8
test al, al
jne 0x40ed98
lea eax, [ebp - 0x294]
jmp 0x40edad
mov edx, dword [edi + 4]
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x28c], edi
lea eax, [ebp - 0x28c]
mov ecx, dword [eax]
test ecx, ecx
mov esi, dword [eax + 4]
je 0x40edba
cmp ecx, edi
je 0x40edc0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebp - 0x298]
jne 0x40ee2d
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 0x40ee39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x274], esp
push eax
call ebx
push 0x418004
push str.StorageTool
push 2
push str.func
push 0x639
push str.file
call fcn.004097e0
add esp, 0x20
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x40ee57
mov ecx, dword [ebp - 0x264]
mov dword [ecx], 0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x40ee57
mov edx, dword [ebp - 0x264]
mov dword [edx], 0
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x40ea73
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
cmp dword [eax], 0
je 0x40eed7
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 0x40eed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x274], esp
push edx
call ebx
push 0x417e08
push str.StorageTool
push 2
push str.func
push 0x65b
push str.file
call fcn.004097e0
add esp, 0x20
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret