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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414836
mov eax, dword fs:[0]
push eax
sub esp, 0x274
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 ebx, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
mov esi, 1
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a11d
push 0
lea ecx, [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x24c
lea eax, [ebp - 0x25c]
push 0
push eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], 0
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
push 0x417bdc
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x280]
push edx
call edi
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
mov dword [ebp - 0x278], eax
je 0x40a3a5
lea ebx, [ebx]
cmp dword [ebp - 0x264], 0
je 0x40a390
test byte [ebp - 0x260], 0x10
lea ecx, [ebp - 0x234]
jne 0x40a242
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x270]
push eax
call edi
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 3
call edi
add esp, 0x18
push 1
push ecx
lea edx, [ebp - 0x274]
mov ecx, esp
mov dword [ebp - 0x264], esp
push edx
mov byte [ebp - 4], 4
call ebx
push ecx
lea eax, [ebp - 0x270]
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
mov byte [ebp - 4], 5
call ebx
mov byte [ebp - 4], 4
call fcn.00409850
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40a345
cmp esi, 0xfffffffd
je 0x40a345
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x270]
jmp 0x40a31c
push 0x417bd4
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40a326
push 0x417bd0
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40a326
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x26c]
push edx
call edi
add esp, 0xc
mov esi, dword [reloc.Common.dll___YCTXStringW__QAEAAV0_PB_W_Z]
push 0x417df0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call esi
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x268]
push edx
call edi
add esp, 0xc
push 0x417df0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 7
call esi
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
call ebx
push ecx
lea edx, [ebp - 0x26c]
mov ecx, esp
mov dword [ebp - 0x264], esp
push edx
mov byte [ebp - 4], 8
call ebx
mov byte [ebp - 4], 7
call fcn.0040a0c0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40a372
cmp esi, 0xfffffffd
je 0x40a372
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x264], eax
jmp 0x40a190
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call edi
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
call edi
mov edx, dword [ebp - 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40a3ab
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call edi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call edi
mov edx, dword [ebp - 0x278]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40a3ab
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
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 0x40a3f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
call ebx
push 0x417e08
push str.StorageTool
push 2
push str.func
push 0x288
push str.file
call fcn.004097e0
add esp, 0x20
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call edi
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call edi
mov eax, 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