Function at 0x4090c3
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, 0x1a98
call fcn.0041d620
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x41c]
push edi
push 0x104
mov ebx, edx
mov edi, ecx
push eax
push ebx
mov dword [ebp - 0x1a90], edi
call esi
test eax, eax
je 0x409109
cmp eax, 0x104
jb 0x40916b
xor eax, eax
lea ecx, [ebp - 0x214]
push ebx
mov edx, 0x104
mov word [ebp - 0x41c], ax
call fcn.00407605
test eax, eax
js 0x40916b
lea ecx, [ebp - 0x214]
call fcn.0040cfd0
push 0x104
lea eax, [ebp - 0x41c]
push eax
push ebx
call esi
test eax, eax
je 0x40916b
mov esi, 0x104
cmp eax, esi
jae 0x40916b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ecx
push eax
lea eax, [ebp - 0x214]
mov edx, esi
push eax
lea ecx, [ebp - 0x41c]
call fcn.0040d512
lea eax, [ebp - 0x82c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x409532
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x409525
lea eax, [ebp - 0x1a7c]
push eax
push 0x4020a4
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x1a94], esi
cmp esi, 0xffffffff
je 0x409428
lea eax, [ebp - 0x1a80]
push eax
push 0x402e34
push 1
push 0
push 0x401074
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x409421
mov eax, dword [ebp - 0x1a80]
lea edx, [ebp - 0x1a8c]
push edx
push 0x4010b4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x409415
mov eax, dword [ebp - 0x1a8c]
lea edx, [ebp - 0x1a50]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x4093f3
mov eax, dword [ebp - 0x1a80]
lea edx, [ebp - 0x214]
push 0
push 0
push 0x104
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4092e7
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x409272
cmp word [ebp - 0x41c], 0
je 0x4092e7
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4092e7
mov eax, dword [ebp - 0x1a80]
lea edx, [ebp - 0x182c]
push 0x800
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
js 0x4092e7
lea eax, [ebp - 0x182c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
cmp word [ebp - 0x182c], 0
je 0x4092d5
push 0x4020b0
lea eax, [ebp - 0x182c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
je 0x4092d5
push 0x4020c0
lea eax, [ebp - 0x182c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
jne 0x4093f3
lea edx, [ebp - 0x1a50]
mov ecx, edi
call fcn.00408ff4
jmp 0x4093f3
mov eax, dword [ebp - 0x1a80]
lea edx, [ebp - 0x1a84]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
js 0x4093f3
mov esi, dword [ebp - 0x1a84]
push 0x402908
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
test eax, eax
je 0x409322
mov edx, eax
mov ecx, esi
call fcn.00409073
jmp 0x409324
xor eax, eax
test eax, eax
je 0x409335
lea edx, [ebp - 0x1a50]
mov ecx, edi
call fcn.00408ff4
mov esi, dword [ebp - 0x1a84]
push 0x402968
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
test eax, eax
je 0x409355
mov edx, eax
mov ecx, esi
call fcn.00409073
jmp 0x409357
xor eax, eax
test eax, eax
je 0x4093e1
lea eax, [ebp - 0x1a88]
push eax
push 0x20019
push 0
push 0x402508
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4093e1
lea eax, [ebp - 0x1a98]
mov dword [ebp - 0x1a98], 0x208
push eax
lea eax, [ebp - 0x624]
push eax
push ecx
mov ecx, dword [ebp - 0x1a88]
call fcn.00408ac0
test eax, eax
jne 0x4093d5
cmp ax, word [ebp - 0x624]
je 0x4093c8
lea eax, [ebp - 0x624]
push eax
push 0x402aec
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4093d5
lea edx, [ebp - 0x1a50]
mov ecx, edi
call fcn.00408ff4
push dword [ebp - 0x1a88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1a84]
call dword [sym.imp.SHELL32.dll_ILFree]
mov esi, dword [ebp - 0x1a94]
lea eax, [ebp - 0x1a7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4091f9
mov eax, dword [ebp - 0x1a8c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1a80]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 1
jne 0x409525
mov esi, 0x104
lea ecx, [ebp - 0x214]
push edi
mov edx, esi
call fcn.00407605
push 0x4020d0
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.0040875f
test eax, eax
js 0x409525
xor ecx, ecx
lea eax, [ebp - 0x1a7c]
push ecx
push ecx
push 1
push eax
push ecx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409525
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x4020d8
lea eax, [ebp - 0x1a50]
push eax
call edi
test eax, eax
je 0x409508
push 0x4020dc
lea eax, [ebp - 0x1a50]
push eax
call edi
test eax, eax
je 0x409508
push dword [ebp - 0x1a90]
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.00407605
push 0x4020e4
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.0040875f
test eax, eax
js 0x409508
lea eax, [ebp - 0x1a50]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x214]
call fcn.0040875f
test eax, eax
js 0x409508
push 1
mov edx, ebx
lea ecx, [ebp - 0x214]
call fcn.004090c3
lea eax, [ebp - 0x1a7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40948b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 4