Function at 0x1001b610
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
sub esp, 0x248
push ebx
push esi
push edi
xor esi, esi
mov word [esp + 0xe], si
push ebp
mov word [esp + 0x10], si
mov ebp, 0xffffffff
mov eax, dword [esp + 0x25c]
mov ebx, dword [esp + 0x260]
push eax
mov edi, ebx
push ebx
mov ecx, ebp
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
xor eax, eax
mov al, byte [ecx + ebx - 2]
push eax
push 0x10030854
call fcn.10020368
add esp, 8
test eax, eax
mov eax, 0x10030858
jne 0x1001b667
mov eax, 0x10030860
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x24]
add esp, 0x10
push 0
push eax
call fcn.10021a83
add esp, 8
test eax, eax
jne 0x1001b70f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x1001b70f
cmp dword [esp + 0x264], 0
mov eax, 1
je 0x1001b6c0
push 0x208
call fcn.1001c8a0
add esp, 4
mov esi, eax
cmp esi, 1
sbb eax, eax
inc eax
test eax, eax
je 0x1001b70f
cmp dword [esp + 0x264], 0
mov eax, 1
je 0x1001b6ef
lea eax, [esp + 0x14]
push esi
push eax
call fcn.10018b50
add esp, 8
push eax
call dword [esp + 0x268]
movsx eax, ax
add esp, 4
test eax, eax
je 0x1001b70f
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x14]
mov word [esp + 0x12], 1
push eax
push ecx
call fcn.10018b50
add esp, 8
test esi, esi
je 0x1001b71c
push esi
call fcn.1001c930
add esp, 4
cmp word [esp + 0x12], 0
jne 0x1001b877
cmp word [esp + 0x10], 0
jne 0x1001b877
cmp ebp, 0xffffffff
jne 0x1001b7a3
push 0x10030868
mov edi, ebx
push ebx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
xor eax, eax
mov al, byte [ecx + ebx - 2]
push eax
push 0x1003086c
call fcn.10020368
add esp, 8
test eax, eax
mov eax, 0x10030870
jne 0x1001b76e
mov eax, 0x10030878
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x128]
lea ecx, [esp + 0x24]
add esp, 0x10
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebp, eax
jne 0x1001b7c2
mov word [esp + 0x10], 1
jmp 0x1001b86b
lea eax, [esp + 0x118]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001b7c2
mov word [esp + 0x10], 1
jmp 0x1001b86b
lea esi, [esp + 0x144]
mov edi, 0x10030880
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x1001b86b
lea esi, [esp + 0x144]
mov edi, 0x10030884
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
je 0x1001b86b
test byte [esp + 0x118], 0x10
je 0x1001b86b
lea eax, [esp + 0x144]
mov edi, ebx
push eax
mov ecx, 0xffffffff
push ebx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
xor eax, eax
mov al, byte [ecx + ebx - 2]
push eax
push 0x10030888
call fcn.10020368
add esp, 8
test eax, eax
mov eax, 0x1003088c
jne 0x1001b832
mov eax, str._s_s
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0x274]
lea edx, [esp + 0x24]
add esp, 0x10
push eax
push ecx
mov eax, dword [esp + 0x264]
push edx
push eax
call fcn.1001b610
mov word [esp + 0x22], ax
add esp, 0x10
cmp word [esp + 0x12], 0
je 0x1001b728
cmp ebp, 0xffffffff
je 0x1001b883
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ax, word [esp + 0x12]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x248
ret