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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + 0x1000]
mov edx, ecx
or ecx, 0xffffffff
add edx, ebx
mov dword [esp + 0x10], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x20], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40b864]
test eax, eax
jne 0x4012dc
push ebx
push str._nProcessing:__s_n
push 0x408858
call fcn.00402480
add esp, 0xc
lea ebp, [ebx + 0x1400]
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x4013c6
test byte [ebp], 0x10
je 0x401334
mov eax, dword [0x40b868]
test eax, eax
je 0x40139e
lea esi, [ebx + 0x142c]
push 0x408128
push esi
call fcn.00402640
add esp, 8
test eax, eax
je 0x40139e
push 0x408124
push esi
call fcn.00402640
add esp, 8
test eax, eax
je 0x40139e
mov eax, dword [0x40b85c]
test eax, eax
jne 0x401343
test byte [ebp], 6
jne 0x40139e
mov ecx, dword [esp + 0x18]
lea edx, [ebx + 0x142c]
inc ecx
mov edi, edx
mov dword [esp + 0x18], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x40b860], 1
jne 0x40138a
push edx
push ebx
call fcn.00401530
add esp, 8
test eax, eax
je 0x40139e
push ebp
push ebx
call fcn.00402120
mov ecx, dword [esp + 0x18]
add esp, 8
and ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [0x40b838]
test eax, eax
jne 0x4013bb
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4012f7
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push esi
push ebx
mov byte [eax], 0
call fcn.00402150
mov ecx, dword [esp + 0x18]
add esp, 8
and ecx, eax
test esi, esi
mov dword [esp + 0x10], ecx
jne 0x401404
mov eax, dword [0x40b864]
test eax, eax
jne 0x401404
push str.Warning:_No_matching_files_found._n
push 0x408858
call fcn.00402480
add esp, 8
mov eax, dword [0x40b858]
test eax, eax
je 0x401522
mov eax, dword [0x40b838]
test eax, eax
jne 0x401522
mov edi, 0x4080f8
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x401522
mov eax, dword [ebp]
test al, 0x10
je 0x401502
mov ecx, dword [0x40b85c]
test ecx, ecx
jne 0x401476
test al, 6
jne 0x401502
lea edi, [ebx + 0x142c]
push 0x408128
push edi
call fcn.00402640
add esp, 8
test eax, eax
je 0x401502
push 0x408124
push edi
call fcn.00402640
add esp, 8
test eax, eax
je 0x401502
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, dword [esp + 0x24]
mov eax, ecx
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4080fc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401270
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 4
and ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [0x40b838]
test eax, eax
jne 0x40151b
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x401459
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret