Function at 0x1020e4f
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, 0x1a94
call fcn.010233d0
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x414]
push ecx
push eax
mov dword [ebp - 0x1a7c], edi
mov dword [ebp - 0x1a84], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor ebx, ebx
cmp eax, ebx
je 0x1020e9b
cmp eax, esi
jb 0x1020ea2
mov word [ebp - 0x414], bx
lea eax, [ebp - 0x824]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1021234
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1021227
lea eax, [ebp - 0x1a74]
push eax
push 0x1002430
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1a8c], eax
je 0x1021130
lea eax, [ebp - 0x1a78]
push eax
push 0x1002834
push 1
push ebx
push 0x1002844
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1021124
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
lea edx, [ebp - 0x1a90]
push edx
push 0x1002824
push eax
call dword [ecx]
test eax, eax
jl 0x1021118
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov eax, dword [ebp - 0x1a90]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x1a48]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x10210f1
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
push ebx
push ebx
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x1021009
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x1a84]
call edi
test eax, eax
je 0x1020f90
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x1021009
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
push 0x800
lea edx, [ebp - 0x1824]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x1021009
lea eax, [ebp - 0x1824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
cmp word [ebp - 0x1824], bx
je 0x1020ff2
push 0x1002420
lea eax, [ebp - 0x1824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
je 0x1020ff2
push 0x1002410
lea eax, [ebp - 0x1824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
jne 0x10210f1
lea eax, [ebp - 0x1a48]
push eax
push dword [ebp - 0x1a7c]
call fcn.010207a2
jmp 0x10210f1
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
lea edx, [ebp - 0x1a80]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x10210f1
push dword [ebp - 0x1a80]
push 0x1001e50
call fcn.01020810
test eax, eax
je 0x102104a
lea eax, [ebp - 0x1a48]
push eax
push dword [ebp - 0x1a7c]
call fcn.010207a2
push dword [ebp - 0x1a80]
push 0x1001eb0
call fcn.01020810
test eax, eax
je 0x10210e5
lea eax, [ebp - 0x1a88]
push eax
push 0x20019
push ebx
push 0x1001c48
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10210e5
lea eax, [ebp - 0x1a94]
push eax
lea eax, [ebp - 0x61c]
push eax
push ebx
push ebx
push dword [ebp - 0x1a88]
mov dword [ebp - 0x1a94], 0x208
call fcn.0102037f
test eax, eax
jne 0x10210d9
cmp word [ebp - 0x61c], bx
je 0x10210c7
lea eax, [ebp - 0x61c]
push eax
push 0x1001bb4
call edi
test eax, eax
jne 0x10210d9
lea eax, [ebp - 0x1a48]
push eax
push dword [ebp - 0x1a7c]
call fcn.010207a2
push dword [ebp - 0x1a88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1a80]
call dword [sym.imp.SHELL32.dll_ILFree]
lea eax, [ebp - 0x1a74]
push eax
push dword [ebp - 0x1a8c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1020f2f
mov eax, dword [ebp - 0x1a90]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x1a8c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 1
jne 0x1021227
push dword [ebp - 0x1a7c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0101f655
push 0x1002408
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01020c15
test eax, eax
jl 0x1021227
push ebx
push ebx
push 1
lea eax, [ebp - 0x1a74]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1021227
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1002404
lea eax, [ebp - 0x1a48]
push eax
call ebx
test eax, eax
je 0x102120a
push 0x10023fc
lea eax, [ebp - 0x1a48]
push eax
call ebx
test eax, eax
je 0x102120a
push dword [ebp - 0x1a7c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0101f655
push 0x10023f8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01020c15
test eax, eax
jl 0x102120a
lea eax, [ebp - 0x1a48]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01020c15
test eax, eax
jl 0x102120a
push 1
push dword [ebp - 0x1a84]
lea eax, [ebp - 0x20c]
push eax
call fcn.01020e4f
lea eax, [ebp - 0x1a74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1021191
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret 0xc