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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x1001c050]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
call esi
mov edi, 0x100
cmp eax, edi
jg 0x10002ed3
push dword [esp + 0x18]
call esi
cmp eax, edi
jg 0x10002ed3
push ebx
add edi, 4
push edi
lea ecx, [esp + 0x280]
call fcn.100023fc
push str..
lea ebx, [esp + 0x27c]
call fcn.1000242c
lea eax, [esp + 0x28]
push eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x10002d26
xor eax, eax
inc eax
jmp 0x10002ed5
cmp word [esp + 0x54], 0x2e
jne 0x10002d4e
cmp word [esp + 0x56], 0
je 0x10002eac
cmp word [esp + 0x56], 0x2e
jne 0x10002d4e
cmp word [esp + 0x58], 0
je 0x10002eac
test byte [esp + 0x28], 0x10
push dword [esp + 0x1c]
je 0x10002df2
call esi
mov edi, eax
lea eax, [esp + 0x54]
push eax
call esi
lea edi, [edi + eax + 0x20]
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [esp + 0x1c]
mov ebx, eax
push edi
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.100023fc
push 0x100198d0
call fcn.1000242c
lea eax, [esp + 0x54]
push eax
call fcn.1000242c
push dword [esp + 0x18]
call esi
mov edi, eax
lea eax, [esp + 0x54]
push eax
call esi
lea edi, [edi + eax + 0x20]
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [esp + 0x18]
mov ebx, eax
push edi
mov ecx, ebx
call fcn.100023fc
push 0x100198d0
call fcn.1000242c
lea eax, [esp + 0x54]
push eax
call fcn.1000242c
push ebx
push dword [esp + 0x14]
push dword [esp + 0x2c]
call fcn.10002c87
jmp 0x10002e82
call esi
mov edi, eax
lea eax, [esp + 0x54]
push eax
call esi
lea edi, [edi + eax + 0x20]
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [esp + 0x1c]
mov ebx, eax
push edi
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.100023fc
push 0x100198d0
call fcn.1000242c
lea eax, [esp + 0x54]
push eax
call fcn.1000242c
push dword [esp + 0x18]
call esi
mov edi, eax
lea eax, [esp + 0x54]
push eax
call esi
lea edi, [edi + eax + 0x20]
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [esp + 0x18]
mov ebx, eax
push edi
mov ecx, ebx
call fcn.100023fc
push 0x100198d0
call fcn.1000242c
lea eax, [esp + 0x54]
push eax
call fcn.1000242c
push ebx
push dword [esp + 0x14]
push dword [esp + 0x2c]
call fcn.10002916
add esp, 0xc
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
je 0x10002e9a
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x10002ea5
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x14], 0
je 0x10002ec3
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002d26
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
jmp 0x10002ed5
xor eax, eax
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10008f62
mov esp, ebp
pop ebp
ret