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

Disassembly:
push 0x26c
mov eax, 0x101c491
call fcn.01019fd8
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.01019552
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.01008944
test eax, eax
lea ecx, [ebp - 0x26c]
setne bl
call fcn.01019576
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.01019576
test bl, bl
je 0x10132fc
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.01019576
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.01019552
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.01019576
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 0x10133be
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.01019576
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.01019576
lea eax, [ebp - 0x260]
push eax
push edi
call ebx
test eax, eax
jne 0x1013351
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.01019552
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 7
call fcn.01019576
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.01019576
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call esi
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x101352a
test byte [ebp - 0x260], 0x10
je 0x1013511
mov ecx, 0x1002588
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101346e
test dx, dx
je 0x101346a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101346e
add eax, 4
add ecx, 4
test dx, dx
jne 0x1013448
xor eax, eax
jmp 0x1013472
sbb eax, eax
sbb eax, edi
test eax, eax
je 0x1013511
mov ecx, 0x1007210
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10134ab
test dx, dx
je 0x10134a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10134ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x1013485
xor eax, eax
jmp 0x10134af
sbb eax, eax
sbb eax, edi
test eax, eax
je 0x1013511
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.01013227
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 9
call fcn.01019576
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.01019576
lea eax, [ebp - 0x260]
push eax
push esi
call ebx
test eax, eax
jne 0x1013430
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call fcn.01019576
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], edi
call fcn.01019576
call fcn.0101a06a
ret 0xc