Function at 0x1000d2b4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x698
lea ebp, [esp - 4]
mov eax, dword [0x1002b1f0]
xor eax, ebp
mov dword [ebp + 0x698], eax
push 0x10
mov eax, 0x1001a282
call fcn.10018de1
mov ecx, dword [ebp + 0x6a8]
mov eax, dword [ebp + 0x6a4]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp]
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x1000d511
mov edi, dword [sym.imp.MSVCR90.dll_wcscpy]
mov ebx, 0x206
mov esi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea eax, [ebp + 0x2c]
push eax
push 0x1001ffe8
call esi
pop ecx
pop ecx
test eax, eax
je 0x1000d4f3
lea eax, [ebp + 0x2c]
push eax
push 0x1001ffe0
call esi
pop ecx
pop ecx
test eax, eax
je 0x1000d4f3
test byte [ebp], 0x10
jne 0x1000d4f3
xor eax, eax
push ebx
mov word [ebp + 0x490], ax
xor esi, esi
lea eax, [ebp + 0x492]
push esi
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push ebx
mov word [ebp + 0x288], ax
lea eax, [ebp + 0x28a]
push esi
push eax
call sub.MSVCR90.dll_memset
push dword [ebp - 0x18]
lea eax, [ebp + 0x490]
push eax
call edi
add esp, 0x20
lea eax, [ebp + 0x490]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x490]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x490]
push eax
lea eax, [ebp + 0x288]
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp + 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..lua
lea eax, [ebp + 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push 0x20
call fcn.10018fc4
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1000d3ef
mov ecx, eax
call fcn.10004355
mov esi, eax
or dword [ebp - 4], 0xffffffff
push 0x20
push 0
push esi
mov dword [ebp - 0x10], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp + 0x490]
push eax
mov ecx, esi
call fcn.10005321
lea ecx, [ebp + 0x26c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp + 0x288]
push eax
lea ecx, [ebp + 0x250]
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp + 0x26c]
mov byte [ebp - 4], 2
call fcn.1000437e
pop ecx
lea eax, [ebp + 0x26c]
lea ecx, [esi + 4]
push eax
call dword [0x1001b268]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.10007f14
push str.GetAllPlaylistsFiles
call fcn.10005425
pop ecx
test eax, eax
jne 0x1000d4d3
push 1
sub esp, 0x1c
lea eax, [esi + 4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, dword [esi]
push str.__strLuaPath_:
push esi
push str.bstrPath_:
push 0
push str.GetAllPlaylistsFiles
mov byte [ebp - 4], 3
call fcn.10009855
pop ecx
pop ecx
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.100016a4
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1000be49
mov ecx, eax
call fcn.1000a33f
lea ecx, [ebp + 0x250]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x26c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000d30c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x698]
xor ecx, ebp
call fcn.10018dd2
add ebp, 0x69c
leave
ret