Function at 0x40d5b5
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Get file attributes

Disassembly:
push 0x2a8
mov eax, 0x411c5a
call fcn.0040f8dd
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x284], eax
mov esi, dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
and dword [ebp - 4], 0
mov ecx, edi
call esi
lea ecx, [ebp + 0xc]
test al, al
je 0x40d605
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, eax
call fcn.0040f927
ret 0xc
call esi
xor esi, esi
test al, al
je 0x40d61e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, esi
jmp 0x40d5fd
inc esi
push esi
lea eax, [ebp - 0x27c]
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 - 0x27c]
mov bl, al
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
test bl, bl
je 0x40d656
push 0x5c
mov ecx, edi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
push ecx
mov ecx, esp
mov dword [ebp - 0x280], esp
push edi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
call edi
call fcn.00407042
pop ecx
mov dword [ebp - 0x288], eax
test eax, eax
je 0x40d60d
push ecx
mov dword [ebp - 0x280], esp
lea eax, [ebp - 0x28d]
mov dword [ebp - 0x280], esp
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x264], esi
call fcn.0040ae70
and dword [ebp - 0x270], 0
and dword [ebp - 0x294], 0
and dword [ebp - 0x260], 0
push 0x24c
lea eax, [ebp - 0x25c]
push 0
push eax
mov byte [ebp - 4], 1
mov ebx, esi
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
push 0x414960
push dword [ebp - 0x26c]
lea eax, [ebp - 0x298]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x298]
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 - 0x27c], eax
cmp eax, 0xffffffff
je 0x40daf3
test ebx, ebx
je 0x40dad5
test byte [ebp - 0x260], 0x10
je 0x40daa3
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x414958
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x40daa3
push 0x414954
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x40daa3
and dword [ebp - 0x29c], 0
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.Common.dll_Ordinal_34]
cmp dword [ebp - 0x29c], 0
pop ecx
pop ecx
je 0x40daa3
mov ecx, dword [ebp - 0x28c]
inc dword [ebp - 0x270]
call fcn.004073e8
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x40d7c0
mov eax, dword [ecx]
lea edx, [ebp - 0x294]
push edx
push 0
push 3
push dword [ebp - 0x270]
push dword [ebp - 0x288]
push 1
push 3
call dword [eax]
cmp dword [ebp - 0x294], 0
jne 0x40dabd
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
call esi
add esp, 0xc
mov ebx, dword [reloc.Common.dll___YCTXStringW__QAEAAV0_PB_W_Z]
push 0x414b70
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call ebx
push 0x414b5c
lea ecx, [ebp - 0x268]
call ebx
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_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d921
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x274]
push eax
call esi
add esp, 0xc
push 0x414b70
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call ebx
push 0x414b5c
lea ecx, [ebp - 0x274]
call ebx
push ecx
mov eax, esp
mov dword [ebp - 0x264], esp
lea ecx, [ebp - 0x234]
push ecx
push dword [ebp - 0x26c]
push eax
call esi
add esp, 0xc
call fcn.0040729b
pop ecx
push 1
push ecx
test eax, eax
mov ecx, esp
lea eax, [ebp - 0x274]
je 0x40d8b6
mov dword [ebp - 0x264], esp
push eax
call edi
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
mov byte [ebp - 4], 5
call edi
mov byte [ebp - 4], 4
call fcn.00407bd1
jmp 0x40d8de
mov dword [ebp - 0x278], esp
push eax
call edi
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
mov byte [ebp - 4], 6
call edi
mov byte [ebp - 4], 4
call fcn.00407cc4
add esp, 0xc
cmp eax, 2
jne 0x40d90d
push 0
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040b009
push eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040b327
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call ebx
jmp 0x40d927
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push dword [ebp - 0x284]
lea eax, [ebp - 0x2ac]
push dword [ebp - 0x270]
push dword [ebp - 0x288]
push eax
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x264], esp
push dword [ebp - 0x26c]
mov byte [ebp - 4], 7
call edi
mov ecx, dword [ebp - 0x28c]
mov byte [ebp - 4], 3
call fcn.00409852
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x40dac9
cmp eax, 0xfffffffd
je 0x40dac9
cmp eax, 3
je 0x40dac9
push dword [ebp - 0x284]
lea eax, [ebp - 0x2ac]
push dword [ebp - 0x270]
push dword [ebp - 0x288]
push eax
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x264], esp
push dword [ebp - 0x26c]
mov byte [ebp - 4], 8
call edi
mov ecx, dword [ebp - 0x28c]
mov byte [ebp - 4], 3
call fcn.00409259
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x40dac9
cmp eax, 0xfffffffd
je 0x40dac9
cmp eax, 3
je 0x40dac9
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp - 0x280]
push eax
call esi
add esp, 0xc
mov ecx, eax
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]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x280]
sbb bl, bl
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
inc bl
je 0x40da93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x278], esp
lea ecx, [ebp - 0x234]
push ecx
push dword [ebp - 0x26c]
push eax
call esi
add esp, 0xc
push 0x414b88
push str.StorageTool
push 2
push str.func
push 0x85f
push str.file
call fcn.00407b65
add esp, 0x20
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x40d715
mov dword [ebp - 0x264], 3
jmp 0x40dad5
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call ebx
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x264], 0xffffffff
je 0x40db45
cmp dword [ebp - 0x264], 0xfffffffd
je 0x40db45
mov ecx, dword [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 0x40db45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push dword [ebp - 0x26c]
call edi
push 0x414b88
push str.StorageTool
push 2
push str.func
push 0x874
push str.file
call fcn.00407b65
add esp, 0x20
cmp dword [ebp - 0x264], 1
jne 0x40db61
cmp dword [ebp - 0x2a4], 0
jbe 0x40db61
mov dword [ebp - 0x264], 2
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x40db89
mov eax, dword [ecx]
push 0
push 3
push 3
push dword [ebp - 0x270]
push dword [ebp - 0x288]
push dword [ebp - 0x264]
push 3
call dword [eax]
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0
call fcn.0040d57a
mov esi, dword [ebp - 0x264]
jmp 0x40d60d