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

Disassembly:
push 0x26c
mov eax, 0x101c3c1
call fcn.01019f16
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x274], eax
call sub.MFC42u.dll_CString::CString
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
call sub.MFC42u.dll_CString::CString
push esi
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.01019490
push dword [0x1024374]
lea ecx, [ebp - 0x264]
call sub.MFC42u.dll_CString::CString_1
mov esi, eax
push 1
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::Right
push dword [esi]
mov ecx, eax
call fcn.01008914
test eax, eax
lea ecx, [ebp - 0x26c]
setne bl
call fcn.010194b4
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.010194b4
test bl, bl
je 0x101323a
push dword [0x1024374]
lea ecx, [ebp - 0x264]
call sub.MFC42u.dll_CString::CString_1
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::operator
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.010194b4
push edi
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x264]
push eax
call sub.MFC42u.dll_operator
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 4
call fcn.01019490
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.010194b4
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10132fc
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
call sub.MFC42u.dll_CString::CString_1
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.dll_operator
mov ecx, dword [ebp - 0x274]
push eax
mov byte [ebp - 4], 6
call sub.MFC42u.dll_CStringList::AddHead
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
call fcn.010194b4
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.010194b4
lea eax, [ebp - 0x260]
push eax
push edi
call ebx
test eax, eax
jne 0x101328f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x1002518
lea ecx, [ebp - 0x26c]
call sub.MFC42u.dll_CString::CString_1
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 7
call sub.MFC42u.dll_operator
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 8
call fcn.01019490
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 7
call fcn.010194b4
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.010194b4
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call esi
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x1013468
test byte [ebp - 0x260], 0x10
je 0x101344f
mov ecx, 0x1002588
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10133ac
test dx, dx
je 0x10133a8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10133ac
add eax, 4
add ecx, 4
test dx, dx
jne 0x1013386
xor eax, eax
jmp 0x10133b0
sbb eax, eax
sbb eax, edi
test eax, eax
je 0x101344f
mov ecx, 0x10071d8
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10133e9
test dx, dx
je 0x10133e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10133e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x10133c3
xor eax, eax
jmp 0x10133ed
sbb eax, eax
sbb eax, edi
test eax, eax
je 0x101344f
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
call sub.MFC42u.dll_CString::CString_1
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 9
call sub.MFC42u.dll_operator
push dword [ebp - 0x274]
mov byte [ebp - 4], 0xa
push eax
push dword [ebp - 0x278]
call fcn.01013165
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 9
call fcn.010194b4
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.010194b4
lea eax, [ebp - 0x260]
push eax
push esi
call ebx
test eax, eax
jne 0x101336e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call fcn.010194b4
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], edi
call fcn.010194b4
call fcn.01019fa8
ret 0xc