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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x298
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x268]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040a4b8
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x270], eax
je 0x4065da
lea eax, [0x415b38]
lea ecx, [ebp - 0x268]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00405b8c
mov dword [ebp - 0x274], eax
jmp 0x4065f5
lea eax, [ebp - 0x268]
mov ecx, dword [ebp - 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00405b8c
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x164]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_FindFirstFileA
sub esp, 8
mov ecx, 0xffffffff
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], ecx
jne 0x40662f
mov dword [ebp - 0x10], 0
jmp 0x40681b
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0x164]
and eax, 0x10
cmp eax, 0
je 0x406736
cmp dword [ebp - 0x1c], 0
je 0x406731
lea eax, [0x415b3a]
lea ecx, [ebp - 0x164]
add ecx, 0x2c
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040a468
cmp eax, 0
je 0x406731
lea eax, [0x415b3c]
lea ecx, [ebp - 0x164]
add ecx, 0x2c
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040a468
cmp eax, 0
je 0x406731
lea eax, [ebp - 0x268]
mov ecx, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040a4b8
lea ecx, [ebp - 0x164]
lea edx, [ebp - 0x268]
add ecx, 0x2c
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x27c], eax
call fcn.00405b8c
mov ecx, 1
lea edx, [ebp - 0x268]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], 1
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x284], ecx
call fcn.0040656c
mov ecx, dword [ebp - 0x26c]
add ecx, eax
mov dword [ebp - 0x26c], ecx
jmp 0x4067d1
lea eax, [ebp - 0x164]
add eax, 0x2c
mov ecx, dword [ebp - 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00405898
cmp eax, 0
je 0x4067cf
lea eax, [ebp - 0x268]
mov ecx, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040a4b8
lea ecx, [ebp - 0x164]
lea edx, [ebp - 0x268]
add ecx, 0x2c
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x288], eax
call fcn.00405b8c
lea ecx, [ebp - 0x164]
lea edx, [ebp - 0x268]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [ebp - 0x28c], eax
call esi
cmp eax, 0
jne 0x4067be
jmp 0x4067fa
mov eax, dword [ebp - 0x26c]
add eax, 1
mov dword [ebp - 0x26c], eax
jmp 0x4067d1
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_FindNextFileA
sub esp, 8
cmp eax, 0
jne 0x4067f5
jmp 0x4067fa
jmp 0x406639
mov eax, dword [ebp - 0x168]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_FindClose
sub esp, 4
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x10]
add esp, 0x298
pop esi
pop edi
pop ebx
pop ebp
ret