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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415278
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x284], eax
mov edi, dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
mov ecx, esi
mov dword [ebp - 4], 0
call edi
test al, al
lea ecx, [ebp + 0xc]
je 0x41019c
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, eax
jmp 0x410734
call edi
test al, al
je 0x4101b9
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, eax
jmp 0x410734
push 1
lea ecx, [ebp - 0x280]
push ecx
mov ecx, esi
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_]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
add esp, 8
lea ecx, [ebp - 0x280]
mov bl, al
call edi
test bl, bl
je 0x4101f4
push 0x5c
mov ecx, esi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
mov ecx, esp
mov dword [ebp - 0x298], esp
push esi
call ebx
call fcn.00408820
add esp, 4
test eax, eax
mov dword [ebp - 0x27c], eax
jne 0x41022e
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call edi
mov eax, 1
jmp 0x410734
lea ecx, [ebp - 0x2a4]
mov edi, 1
call fcn.00410100
xor eax, eax
push 0x24c
push eax
lea edx, [ebp - 0x25c]
push edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x260], eax
call sub.MSVCR80.dll_memset
push 0x417bdc
lea eax, [ebp - 0x294]
push esi
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0x18
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x294]
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 - 0x280], eax
je 0x410682
cmp dword [ebp - 0x268], 0
je 0x41066b
test byte [ebp - 0x260], 0x10
je 0x410635
push 0x417bd4
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x410635
push 0x417bd0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x410635
lea ecx, [ebp - 0x290]
push ecx
lea edx, [ebp - 0x234]
push edx
mov dword [ebp - 0x290], 0
call dword [sym.imp.Common.dll_Ordinal_34]
add esp, 8
cmp dword [ebp - 0x290], 0
je 0x410635
mov ecx, dword [ebp - 0x288]
add dword [ebp - 0x270], 1
call fcn.00408c80
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x41036c
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [ebp - 0x28c]
push edx
mov edx, dword [ebp - 0x270]
push 0
push 3
push edx
mov edx, dword [ebp - 0x27c]
push edx
push 1
push 3
call eax
cmp dword [ebp - 0x28c], 0
jne 0x410654
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x264]
push esi
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
mov edi, dword [reloc.Common.dll___YCTXStringW__QAEAAV0_PB_W_Z]
push 0x417df0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call edi
push 0x417ddc
lea ecx, [ebp - 0x264]
call edi
lea ecx, [ebp - 0x264]
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 0x4104bf
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
push 0x417df0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call edi
push 0x417ddc
lea ecx, [ebp - 0x274]
call edi
push ecx
mov eax, esp
mov dword [ebp - 0x268], esp
lea ecx, [ebp - 0x234]
push ecx
push esi
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
call fcn.00408af0
add esp, 4
test eax, eax
push 1
push ecx
lea edx, [ebp - 0x274]
mov ecx, esp
je 0x410466
mov dword [ebp - 0x268], esp
push edx
call ebx
push ecx
lea eax, [ebp - 0x264]
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
mov byte [ebp - 4], 5
call ebx
mov byte [ebp - 4], 4
call fcn.00409850
jmp 0x41048e
mov dword [ebp - 0x278], esp
push edx
call ebx
push ecx
lea eax, [ebp - 0x264]
mov ecx, esp
mov dword [ebp - 0x268], esp
push eax
mov byte [ebp - 4], 6
call ebx
mov byte [ebp - 4], 4
call fcn.00409980
add esp, 0xc
cmp eax, 2
jne 0x4104af
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x2b0]
push edx
lea ecx, [ebp - 0x2a4]
call fcn.0040d980
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 0x270]
mov edx, dword [ebp - 0x27c]
push eax
push ecx
push edx
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x234]
push ecx
push ecx
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x278], esp
push edx
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x268], esp
push esi
mov byte [ebp - 4], 7
call ebx
mov ecx, dword [ebp - 0x288]
mov byte [ebp - 4], 3
call fcn.0040b9e0
mov edi, eax
cmp edi, 0xffffffff
je 0x41065b
cmp edi, 0xfffffffd
je 0x41065b
cmp edi, 3
je 0x41065b
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 0x270]
mov edx, dword [ebp - 0x27c]
push eax
push ecx
push edx
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x234]
push ecx
push ecx
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x278], esp
push edx
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x268], esp
push esi
mov byte [ebp - 4], 8
call ebx
mov ecx, dword [ebp - 0x288]
mov byte [ebp - 4], 3
call fcn.0040b2e0
mov edi, eax
cmp edi, 0xffffffff
je 0x41065b
cmp edi, 0xfffffffd
je 0x41065b
cmp edi, 3
je 0x41065b
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x298]
push esi
push ecx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
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]
test eax, eax
lea ecx, [ebp - 0x298]
sete byte [ebp - 0x269]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
cmp byte [ebp - 0x269], 0
je 0x410625
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, esp
mov dword [ebp - 0x278], esp
lea eax, [ebp - 0x234]
push eax
push esi
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
push 0x417e08
push str.StorageTool
push 2
push str.func
push 0x859
push str.file
call fcn.004097e0
add esp, 0x20
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov edx, dword [ebp - 0x280]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x268], eax
jmp 0x4102b1
mov edi, 3
jmp 0x41066b
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x4106cb
cmp edi, 0xfffffffd
je 0x4106cb
mov ecx, esi
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 0x4106cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push esi
call ebx
push 0x417e08
push str.StorageTool
push 2
push str.func
push 0x86e
push str.file
call fcn.004097e0
add esp, 0x20
cmp edi, 1
jne 0x4106de
cmp dword [ebp - 0x29c], 0
jbe 0x4106de
mov edi, 2
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x410705
mov eax, dword [ebp - 0x270]
mov edx, dword [ecx]
mov edx, dword [edx]
push 0
push 3
push 3
push eax
mov eax, dword [ebp - 0x27c]
push eax
push edi
push 3
call edx
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0
call fcn.004100c0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, edi
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 0xc