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

Disassembly:
mov eax, 0x108c8fa
call fcn.01027038
sub esp, 0x26c
mov eax, dword [0x10a1e18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
jne 0x101f1ce
cmp byte [esi + 0x41], 0
je 0x101f1ce
cmp byte [esi + 0x42], 0
jne 0x101f3eb
cmp byte [ebp + 8], 0
je 0x101f3eb
mov ecx, esi
call fcn.0101eb22
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x101f1e1
mov eax, 0x1001eb0
lea edi, [esi + 0x10]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x101f21c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101f207
call esi
mov edi, eax
jmp 0x101f3eb
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x101f3eb
test byte [edi], 0x10
mov byte [esi + 0x40], 1
je 0x101f3b9
xor edi, edi
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], edi
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], edi
call fcn.0101a55d
push 0x1002a80
lea ecx, [ebp - 0x278]
call fcn.0101a383
cmp ebx, edi
mov eax, ebx
jne 0x101f26a
mov eax, 0x1002af0
push eax
lea ecx, [ebp - 0x278]
call fcn.0101a383
mov eax, dword [ebp - 0x274]
cmp eax, edi
jne 0x101f285
mov eax, 0x1001eb0
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
jne 0x101f2d2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101f2b0
call esi
mov edi, eax
jmp 0x101f2c0
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
push 1
lea ecx, [ebp - 0x278]
call fcn.0101937d
jmp 0x101f3eb
mov ebx, dword [sym.imp.msvcrt.dll_wcscmp]
xor edi, edi
inc edi
test byte [ebp - 0x260], 0x10
je 0x101f314
lea eax, [ebp - 0x234]
push 0x1002aec
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x101f2fa
xor edi, edi
lea eax, [ebp - 0x234]
push 0x1002ae4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x101f310
xor edi, edi
test edi, edi
je 0x101f382
push 0x44
call fcn.0101d0fa
pop ecx
mov ecx, eax
mov dword [ebp - 0x264], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x101f33b
push esi
lea eax, [ebp - 0x260]
push eax
call fcn.0101f0e5
jmp 0x101f33d
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x264], eax
je 0x101f406
cmp byte [ebp + 8], 0
je 0x101f36c
push 0
push 0
push 1
mov ecx, eax
call fcn.0101f180
mov edi, eax
test edi, edi
jl 0x101f40b
lea eax, [ebp - 0x264]
push eax
lea ecx, [esi + 0x34]
call fcn.01064adb
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101f2d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x101f41e
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x278]
call fcn.0101937d
mov al, byte [ebp + 8]
mov byte [esi + 0x41], 1
mov byte [esi + 0x42], al
xor edi, edi
mov ecx, dword [ebp - 0x264]
test ecx, ecx
je 0x101f3d6
push 1
call fcn.0101eeac
cmp dword [ebp - 0x268], 0
je 0x101f3eb
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101cfd1
leave
ret 0xc
mov edi, 0x8007000e
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x278]
call fcn.0101937d
jmp 0x101f3c5
test eax, eax
jle 0x101f42c
and eax, 0xffff
or eax, 0x80070000
push 1
lea ecx, [ebp - 0x278]
mov edi, eax
call fcn.0101937d
jmp 0x101f3d6