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

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x354
push ebx
push esi
push edi
push dword [ebp + 0x7c]
mov eax, 0x104
lea edi, [ebp - 0x1f0]
mov dword [ebp + 0x54], ecx
call fcn.00438a10
mov eax, edi
push 0x5c
push eax
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 0xc
test eax, eax
je 0x40a0eb
lea esi, [eax + 1]
lea eax, [ebp - 0x2f4]
push esi
push eax
call sub.MSVCR71.dll_strcpy
mov eax, edi
push eax
mov byte [esi], 0
call sub.MSVCR71.dll_strlen
add esp, 0xc
mov ebx, eax
jmp 0x40a109
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x2f4]
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
mov byte [ebp - 0x1f0], 0
xor ebx, ebx
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp + 0x7c], eax
test ecx, ecx
mov dword [ebp + 0x5c], ecx
je 0x40a159
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x74]
lea esi, [ebp - 0xec]
call fcn.00423389
test al, al
pop ecx
pop ecx
je 0x40a159
mov eax, esi
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov dword [ebp + 0x5c], eax
jne 0x40a12b
mov edi, dword [0x45b170]
jmp 0x40a1ec
mov esi, dword [ebp + 0x54]
lea eax, [ebp - 0xec]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x14]
cmp byte [ecx], 0x6c
jne 0x40a193
mov ecx, dword [ecx + 0x14]
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
push 2
call fcn.004029a9
mov ecx, dword [esi + 0x14]
cmp dword [ebp + 0x58], ecx
je 0x40a178
jmp 0x40a1a1
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
push 3
call fcn.004029a9
cmp eax, 1
je 0x40a1ab
cmp eax, 6
jne 0x40a1f8
mov eax, dword [ebp + 0x58]
test eax, eax
jne 0x40a1ff
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov dword [ebp + 0x5c], eax
je 0x40a1e4
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x74]
lea esi, [ebp - 0xec]
call fcn.00423389
test al, al
pop ecx
pop ecx
jne 0x40a1b2
add dword [edi + 8], 1
adc dword [edi + 0xc], 0
cmp dword [ebp + 0x5c], 0
jne 0x40a164
jmp 0x40a210
mov esi, eax
jmp 0x40a32f
cmp eax, esi
jne 0x40a20b
mov eax, dword [ebp + 0x6c]
mov byte [eax], 1
jmp 0x40a210
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
cmp dword [ebp + 0x7c], 0xffffffff
je 0x40a21f
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x78], 0
je 0x40a25d
cmp ebx, 0x100
ja 0x40a25d
lea esi, [ebp + ebx - 0x1f0]
push 0x454a74
push esi
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x7c], eax
jne 0x40a265
xor eax, eax
inc eax
jmp 0x40a33a
lea eax, [ebp - 0x2f4]
push eax
call sub.MSVCR71.dll_strlen
mov edi, eax
pop ecx
add edi, ebx
test byte [ebp - 0xec], 0x10
je 0x40a314
cmp byte [ebp - 0xc0], 0x2e
jne 0x40a2a7
cmp byte [ebp - 0xbf], 0
je 0x40a314
cmp byte [ebp - 0xbf], 0x2e
jne 0x40a2a7
cmp byte [ebp - 0xbe], 0
je 0x40a314
lea eax, [ebp - 0xc0]
push eax
call sub.MSVCR71.dll_strlen
add eax, edi
cmp eax, 0x102
pop ecx
ja 0x40a314
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0xc0]
push eax
push str._s_s
push esi
call dword [sym.imp.MSVCR71.dll_sprintf]
mov ebx, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x54]
add esp, 0x10
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push ebx
push dword [ebp + 0x68]
call fcn.0040a093
cmp eax, 1
je 0x40a307
cmp eax, 6
jne 0x40a1f8
cmp byte [ebx], 0
jne 0x40a32c
mov eax, dword [ebp + 0x70]
cmp dword [eax], 0
jne 0x40a32c
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a276
xor esi, esi
inc esi
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret 0x18