Function at 0x10008e10
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
mov eax, dword [0x10038654]
xor eax, esp
mov dword [esp + 0x660], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x250
mov ebx, ecx
lea ecx, [esp + 0x1c]
push 0
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
call fcn.1001caf0
push 0x100
lea edx, [esp + 0x478]
push 0
push edx
call fcn.1001caf0
push 0x100
lea eax, [esp + 0x284]
push 0
push eax
call fcn.1001caf0
add esp, 0x24
push esi
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x468]
push edx
call edi
cmp word [esp + eax*2 + 0x466], 0x5c
je 0x10008eb6
push 0x10033c94
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10033cc0
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
jmp 0x10008ee6
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x268]
push edx
call edi
cmp word [esp + eax*2 + 0x266], 0x5c
je 0x10008f1d
push 0x10033c94
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
test byte [esp + 0x18], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
je 0x10008f82
push 0x10033ca4
lea eax, [esp + 0x48]
push eax
call esi
test eax, eax
je 0x10008f82
push 0x10033ca8
lea ecx, [esp + 0x48]
push ecx
call esi
test eax, eax
je 0x10008f82
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10009087
mov edx, dword [esp + 0xc]
push eax
push edx
lea eax, [esp + 0x270]
push eax
mov ecx, ebx
call fcn.10008e10
jmp 0x10009087
push 0x10033ca4
lea ecx, [esp + 0x48]
push ecx
call esi
test eax, eax
je 0x10009087
push 0x10033ca8
lea edx, [esp + 0x48]
push edx
call esi
test eax, eax
je 0x10009087
lea eax, [esp + 0x44]
push eax
call edi
inc eax
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.10019310
mov esi, dword [esp + 0x14]
add esp, 8
push esi
call edi
inc eax
push eax
push esi
call fcn.10019310
lea edx, [esp + 0x4c]
push esi
push edx
call fcn.10019327
add esp, 0x10
test eax, eax
je 0x10009087
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov al, byte [esp + 0x18]
lea ecx, [esp + 0x268]
and al, 0x10
push ecx
mov byte [esi + 1], al
call edi
lea edi, [eax + eax + 2]
push edi
lea edx, [esp + 0x26c]
push edx
lea eax, [esi + 2]
push eax
call fcn.1001add0
mov ecx, dword [esp + 0x40]
lea eax, [edi + 2]
mov dword [esi + eax], ecx
mov edx, dword [esp + 0x44]
mov dword [esi + eax + 4], edx
mov ecx, dword [esp + 0x38]
mov dword [esi + eax + 8], ecx
mov edx, dword [esp + 0x3c]
mov dword [esi + eax + 0xc], edx
add eax, 0x10
add esp, 0xc
cmp eax, 1
jbe 0x10009081
push 0x42
push eax
push esi
mov byte [esi], 0x1f
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp dword [ebx + 8], 0
jne 0x10009072
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
push esi
call eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x100090a8
cmp dword [ebx + 0x254], 0
je 0x10008ee2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100180fb
mov esp, ebp
pop ebp
ret 0xc