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

Disassembly:
push 0x288
mov eax, 0x411b7c
call fcn.0040f8eb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x284], eax
mov esi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
mov edi, str.All_Users_
push edi
lea eax, [ebp + 8]
push eax
xor ebx, ebx
lea eax, [ebp - 0x278]
inc ebx
push eax
mov dword [ebp - 4], ebx
call esi
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x268]
push eax
mov byte [ebp - 4], 2
call esi
add esp, 0x18
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cbd3
push 0
lea ecx, [ebp - 0x268]
call edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
and dword [ebp - 0x260], 0
push 0x24c
lea eax, [ebp - 0x25c]
push 0
push eax
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x27c], ebx
call sub.MSVCR100.dll_memset
push 0x414b20
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x288]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 4
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov dword [ebp - 0x28c], eax
cmp eax, 0xffffffff
je 0x40ce9e
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
cmp dword [ebp - 0x27c], 0
je 0x40ce92
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
je 0x40cd75
push 0x414b18
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40ce48
push 0x414b14
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40ce48
lea eax, [ebp - 0x234]
push eax
push 0x414ae8
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40ce48
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x270]
push eax
call esi
add esp, 0xc
push 0x414d30
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 5
call dword [0x41307c]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x274]
push eax
call esi
add esp, 0xc
push 0x414d30
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 6
call dword [0x41307c]
push dword [ebp - 0x284]
lea eax, [ebp - 0x274]
push ecx
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
call ebx
push ecx
lea eax, [ebp - 0x270]
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
mov byte [ebp - 4], 7
call ebx
mov byte [ebp - 4], 6
call fcn.0040c092
add esp, 0xc
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x40ce66
cmp eax, 0xfffffffd
je 0x40ce66
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
call edi
lea ecx, [ebp - 0x270]
jmp 0x40ce42
push eax
push str.Registry.db
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40ce48
push str.Registry.db
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x26c]
push eax
call esi
push str.Registry.db
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 8
call esi
add esp, 0x18
push 1
push ecx
lea eax, [ebp - 0x280]
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
mov byte [ebp - 4], 9
call ebx
push ecx
lea eax, [ebp - 0x26c]
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
mov byte [ebp - 4], 0xa
call ebx
mov byte [ebp - 4], 9
call fcn.00407c92
add esp, 0xc
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x40ce7a
cmp eax, 0xfffffffd
je 0x40ce7a
cmp eax, 2
jne 0x40ce30
mov ecx, dword [ebp - 0x284]
push 0
lea eax, [ebp - 0x26c]
push eax
call fcn.0040afd4
mov ecx, dword [ebp - 0x284]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.0040b2f2
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 8
call edi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call edi
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x27c], eax
jmp 0x40cc46
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
call edi
lea ecx, [ebp - 0x270]
jmp 0x40ce8c
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 8
call edi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call edi
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 3
call edi
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call edi
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call edi
mov eax, dword [ebp - 0x264]
call fcn.0040f935
ret