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

Disassembly:
push 0x26c
mov eax, 0x101c3b3
call fcn.01019f0c
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.01019486
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.010194aa
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.010194aa
test bl, bl
je 0x101324a
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.010194aa
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.01019486
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.010194aa
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 0x101330c
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.010194aa
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.010194aa
lea eax, [ebp - 0x260]
push eax
push edi
call ebx
test eax, eax
jne 0x101329f
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.01019486
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 7
call fcn.010194aa
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.010194aa
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call esi
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x1013478
test byte [ebp - 0x260], 0x10
je 0x101345f
mov ecx, 0x1002588
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10133bc
test dx, dx
je 0x10133b8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10133bc
add eax, 4
add ecx, 4
test dx, dx
jne 0x1013396
xor eax, eax
jmp 0x10133c0
sbb eax, eax
sbb eax, edi
test eax, eax
je 0x101345f
mov ecx, 0x10071d8
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10133f9
test dx, dx
je 0x10133f5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10133f9
add eax, 4
add ecx, 4
test dx, dx
jne 0x10133d3
xor eax, eax
jmp 0x10133fd
sbb eax, eax
sbb eax, edi
test eax, eax
je 0x101345f
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.01013175
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 9
call fcn.010194aa
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.010194aa
lea eax, [ebp - 0x260]
push eax
push esi
call ebx
test eax, eax
jne 0x101337e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call fcn.010194aa
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], edi
call fcn.010194aa
call fcn.01019f9e
ret 0xc