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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov dword [ebp - 4], 0
mov dword [ebp - 0x260], 0
push 0
push 0x10043f88
mov eax, dword [ebp + 8]
push eax
call fcn.100190c0
add esp, 0xc
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
jne 0x10021c35
push str.EnumFilesRecurW__:_ConcatStringsW___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 8
jmp 0x10021e11
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
je 0x10021e00
mov dword [ebp - 0x264], 0
cmp dword [ebp + 0x20], 0
je 0x10021c84
push 0
mov eax, dword [ebp + 0x20]
push eax
call dword [0x10052360]
cmp eax, 0x102
je 0x10021c84
jmp 0x10021df3
lea ecx, [ebp - 0x22c]
push ecx
call fcn.100219a0
add esp, 4
test eax, eax
jne 0x10021dd7
mov edx, dword [ebp - 0x258]
and edx, 0x10
je 0x10021cae
mov eax, dword [ebp + 0x14]
and eax, 2
jne 0x10021cc1
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
jne 0x10021d2f
mov edx, dword [ebp + 0x14]
and edx, 4
je 0x10021d2f
mov dword [ebp - 4], 0
jmp 0x10021cd3
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x10021d2f
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10021d2d
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x10021d21
cmp dword [ebp + 0x28], 0
je 0x10021d1f
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10021d2d
mov dword [ebp - 0x264], 1
jmp 0x10021d2f
jmp 0x10021cca
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
je 0x10021dd7
mov edx, dword [ebp + 0x14]
and edx, 1
je 0x10021dd7
push 0
lea eax, [ebp - 0x22c]
push eax
push 0x1003430c
mov ecx, dword [ebp + 8]
push ecx
call fcn.100190c0
add esp, 0x10
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
je 0x10021dd7
mov edx, dword [ebp - 0x268]
push edx
push str.EnumFilesRecurW__:_entering_subfolder__S
call fcn.10018570
add esp, 8
cmp dword [ebp + 0x24], 0
je 0x10021d97
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x268]
push eax
call fcn.10021be0
add esp, 0x24
push 0xfffffffffffffffe
lea ecx, [ebp - 0x268]
push ecx
call fcn.10019b10
add esp, 8
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10021c66
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [0x1005227c]
push 0xfffffffffffffffe
lea edx, [ebp - 0x260]
push edx
call fcn.10019b10
add esp, 8
mov esp, ebp
pop ebp
ret