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

Disassembly:
sub esp, 0x18
and dword [esp + 0xc], 0
push ebx
push ebp
mov ebp, 0x104
push 0x250
mov dword [esp + 0xc], ebp
call fcn.100012ea
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
je 0x10010f2f
push dword [esp + 0x24]
call fcn.10010997
test eax, eax
mov dword [esp + 0x1c], eax
je 0x10010c87
mov dword [esp + 0x24], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [esp + 0x2c]
call esi
push dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x24], edi
call esi
cmp dword [esp + 0x3c], 0
jne 0x10010cac
mov dword [esp + 0x3c], edi
lea eax, [eax + edi + 2]
cmp eax, ebp
jbe 0x10010cc9
add eax, 0xfffffefb
xor edx, edx
div ebp
inc eax
inc eax
imul eax, eax, 0x104
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add eax, eax
push eax
call fcn.100012ea
mov ebp, eax
test ebp, ebp
je 0x10010f17
push 0x140
push 0
push ebx
call sub.ntdll.dll_memset
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
call edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x10010e34
cmp dword [ebx + 0x1c], 0
jne 0x10010e02
cmp dword [ebx + 0x20], 0x10000000
ja 0x10010e02
lea eax, [ebx + 0x2c]
cmp word [eax], 0x2e
je 0x10010e02
push eax
call esi
push dword [esp + 0x30]
mov ebx, eax
call esi
add ebx, dword [esp + 0x20]
add eax, ebx
lea eax, [eax + eax + 0x20]
lea ebx, [eax + 0x1c]
push ebx
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x10010df8
push ebx
push 0
push esi
call sub.ntdll.dll_memset
push dword [esp + 0x38]
lea ebx, [esi + 0x1c]
push ebx
mov dword [esi + 4], esi
mov dword [esi], esi
call sub.ntdll.dll_wcscpy
add esp, 0x14
push 0x5c
push 0
push dword [esp + 0x38]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x10010dab
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
call edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
and word [eax], 0
mov ecx, ebx
jmp 0x10010daf
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add eax, 0x2c
push eax
push ecx
push ebx
call edi
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
test ebx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
je 0x10010dd8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [ecx + 4], esi
je 0x10010df4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10010e2a
push 0
push dword [0x1003e270]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10010d15
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x10038554
push dword [esp + 0x30]
push ebp
call edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x10010f0d
lea eax, [ebx + 0x2c]
cmp word [eax], 0x2e
je 0x10010ed5
test byte [ebx], 0x10
je 0x10010ed5
push eax
call esi
mov ebx, eax
mov eax, dword [esp + 0x20]
lea eax, [ebx + eax + 2]
cmp eax, dword [esp + 0x10]
jbe 0x10010ea4
push ebp
call fcn.100012ff
mov eax, dword [esp + 0x20]
lea eax, [ebx + eax + 2]
add dword [esp + 0x10], 0x104
cmp dword [esp + 0x10], eax
jb 0x10010e84
mov eax, dword [esp + 0x10]
add eax, eax
push eax
call fcn.100012ea
mov ebp, eax
test ebp, ebp
je 0x10010eff
mov eax, dword [esp + 0x14]
add eax, 0x2c
push eax
push dword [esp + 0x30]
push ebp
call edi
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push ebp
call fcn.10010c47
add dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x14]
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10010f03
push 0
push dword [0x1003e270]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10010e55
jmp 0x10010f03
mov ebx, dword [esp + 0x14]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
je 0x10010f17
push ebp
call fcn.100012ff
cmp dword [esp + 0x24], 0
pop edi
pop esi
je 0x10010f29
push dword [esp + 0x1c]
call fcn.100012ff
push ebx
call fcn.100012ff
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
add esp, 0x18
ret 0x18