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

Disassembly:
push 0x2a8
mov eax, 0x411caa
call fcn.0040f8eb
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 0x40d5d3
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
xor esi, esi
test al, al
je 0x40d5ec
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 0x40d5cb
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 0x40d624
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.00407010
pop ecx
mov dword [ebp - 0x288], eax
test eax, eax
je 0x40d5db
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.0040ae3b
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 0x414b20
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 0x40dac1
test ebx, ebx
je 0x40daa3
test byte [ebp - 0x260], 0x10
je 0x40da71
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x414b18
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x40da71
push 0x414b14
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x40da71
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 0x40da71
mov ecx, dword [ebp - 0x28c]
inc dword [ebp - 0x270]
call fcn.004073b6
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x40d78e
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 0x40da8b
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 0x414d30
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call ebx
push 0x414d1c
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 0x40d8ef
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x274]
push eax
call esi
add esp, 0xc
push 0x414d30
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call ebx
push 0x414d1c
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.00407269
pop ecx
push 1
push ecx
test eax, eax
mov ecx, esp
lea eax, [ebp - 0x274]
je 0x40d884
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.00407b9f
jmp 0x40d8ac
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.00407c92
add esp, 0xc
cmp eax, 2
jne 0x40d8db
push 0
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040afd4
push eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040b2f2
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 0x40d8f5
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.0040981d
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x40da97
cmp eax, 0xfffffffd
je 0x40da97
cmp eax, 3
je 0x40da97
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.00409224
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x40da97
cmp eax, 0xfffffffd
je 0x40da97
cmp eax, 3
je 0x40da97
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 0x40da61
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 0x414d48
push str.StorageTool
push 2
push str.func
push 0x85f
push str.file
call fcn.00407b33
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 0x40d6e3
mov dword [ebp - 0x264], 3
jmp 0x40daa3
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 0x40db13
cmp dword [ebp - 0x264], 0xfffffffd
je 0x40db13
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 0x40db13
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 0x414d48
push str.StorageTool
push 2
push str.func
push 0x874
push str.file
call fcn.00407b33
add esp, 0x20
cmp dword [ebp - 0x264], 1
jne 0x40db2f
cmp dword [ebp - 0x2a4], 0
jbe 0x40db2f
mov dword [ebp - 0x264], 2
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x40db57
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.0040d548
mov esi, dword [ebp - 0x264]
jmp 0x40d5db