Function at 0x1004b7c
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1884
call fcn.010055f0
mov eax, dword [0x1007030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
inc dword [0x10070a0]
cmp dword [0x10070a0], 0xa
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1874], ebx
mov dword [ebp - 0x187c], eax
jne 0x1004bbe
xor eax, eax
jmp 0x1004eb0
push esi
push edi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x414]
push ecx
xor edi, edi
push eax
mov dword [ebp - 0x1878], edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, edi
je 0x1004be4
cmp eax, esi
jb 0x1004bed
xor eax, eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1004ea2
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1004e95
lea eax, [ebp - 0x186c]
push eax
push 0x10028c0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1880], eax
cmp eax, 0xffffffff
je 0x1004d7a
lea eax, [ebp - 0x1870]
push eax
push 0x1002878
push 1
push edi
push 0x1002bf0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1004d6e
mov eax, dword [ebp - 0x1870]
mov ecx, dword [eax]
lea edx, [ebp - 0x1884]
push edx
push 0x1002be0
push eax
call dword [ecx]
test eax, eax
jl 0x1004d62
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov eax, dword [ebp - 0x1884]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x1840]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x1004d3b
mov eax, dword [ebp - 0x1870]
mov ecx, dword [eax]
push edi
push edi
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x1004d3b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x187c]
call ebx
test eax, eax
je 0x1004cdb
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
jne 0x1004d3b
mov eax, dword [ebp - 0x1870]
mov ecx, dword [eax]
push 0x800
lea edx, [ebp - 0x161c]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x1004d3b
lea eax, [ebp - 0x161c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
cmp word [ebp - 0x161c], di
je 0x1004d29
push 0x1002220
push dword [ebp - 0x187c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
jne 0x1004d3b
lea eax, [ebp - 0x1840]
push eax
push dword [ebp - 0x1874]
call fcn.01004aae
lea eax, [ebp - 0x186c]
push eax
push dword [ebp - 0x1880]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004c7a
mov eax, dword [ebp - 0x1884]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1870]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x1880]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], edi
je 0x1004e95
push dword [ebp - 0x1874]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100492e
push 0x10028b8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01004965
test eax, eax
jl 0x1004e95
push edi
push edi
push 1
lea eax, [ebp - 0x186c]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004e95
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x10028b4
lea eax, [ebp - 0x1840]
push eax
call ebx
test eax, eax
je 0x1004e5a
push 0x10028ac
lea eax, [ebp - 0x1840]
push eax
call ebx
test eax, eax
je 0x1004e5a
push dword [ebp - 0x1874]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100492e
push 0x10028a8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01004965
test eax, eax
jl 0x1004e5a
lea eax, [ebp - 0x1840]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01004965
test eax, eax
jl 0x1004e5a
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x187c]
push eax
call fcn.01004b7c
add dword [ebp - 0x1878], eax
lea eax, [ebp - 0x186c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004dda
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x1878], 0
je 0x1004e95
push 0
push dword [ebp - 0x1874]
push 1
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
dec dword [0x10070a0]
mov eax, dword [ebp - 0x1878]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010055d3
leave
ret 0xc