Function at 0x408ea9
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 0x104
push dword [ebp + 0x7c]
lea eax, [ebp - 0x1f0]
push eax
mov dword [ebp + 0x58], ecx
call fcn.00438c79
lea eax, [ebp - 0x1f0]
push 0x5c
push eax
call fcn.00456490
add esp, 0x14
test eax, eax
je 0x408f0a
lea esi, [eax + 1]
lea eax, [ebp - 0x2f4]
push esi
push eax
call fcn.00455a20
lea eax, [ebp - 0x1f0]
push eax
mov byte [esi], 0
call fcn.00455c50
add esp, 0xc
mov dword [ebp + 0x5c], eax
jmp 0x408f2a
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.00455a20
and dword [ebp + 0x5c], 0
pop ecx
pop ecx
mov byte [ebp - 0x1f0], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call edi
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov esi, eax
test esi, esi
je 0x409024
push dword [ebp + 0x5c]
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0xec]
push eax
call fcn.0042379a
add esp, 0x10
test al, al
je 0x40901c
lea eax, [ebp - 0xec]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
test esi, esi
jne 0x408f50
jmp 0x40901c
mov esi, dword [ebp + 0x58]
lea eax, [ebp - 0xec]
mov dword [0x465148], eax
mov ecx, dword [esi + 0x14]
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x68]
push 3
call fcn.00402338
cmp eax, 5
je 0x409086
cmp eax, 7
je 0x409086
cmp eax, 8
je 0x409086
test eax, eax
je 0x409086
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x409073
lea eax, [ebp - 0xec]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
test esi, esi
je 0x40900e
push dword [ebp + 0x5c]
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0xec]
push eax
call fcn.0042379a
add esp, 0x10
test al, al
jne 0x408fda
add dword [0x465140], 1
adc dword [0x465144], 0
test esi, esi
jne 0x408f8d
cmp ebx, 0xffffffff
je 0x409030
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x78], 0
je 0x40906b
mov eax, dword [ebp + 0x5c]
cmp eax, 0x100
ja 0x40906b
lea esi, [ebp + eax - 0x1f0]
push 0x45aab8
push esi
call fcn.00455a20
pop ecx
pop ecx
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x1f0]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40908d
xor eax, eax
inc eax
jmp 0x409181
cmp eax, esi
jne 0x40907f
mov eax, dword [ebp + 0x6c]
mov byte [eax], 1
jmp 0x409024
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
jmp 0x409024
mov esi, eax
jmp 0x409178
lea eax, [ebp - 0x2f4]
push eax
call fcn.00455c50
mov edi, eax
add edi, dword [ebp + 0x5c]
pop ecx
mov dword [ebp + 0x7c], edi
test byte [ebp - 0xec], 0x10
je 0x40915f
cmp byte [ebp - 0xc0], 0x2e
jne 0x4090db
cmp byte [ebp - 0xbf], 0
je 0x40915f
cmp byte [ebp - 0xbf], 0x2e
jne 0x4090db
cmp byte [ebp - 0xbe], 0
je 0x40915f
lea eax, [ebp - 0xc0]
push eax
call fcn.00455c50
add eax, edi
cmp eax, 0x102
pop ecx
ja 0x40915f
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0xc0]
push eax
push 0x45a4a4
push esi
call fcn.00409d3b
mov edi, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x58]
add esp, 0x10
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push edi
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
call fcn.00408ea9
cmp eax, 5
je 0x409086
cmp eax, 7
je 0x409086
cmp eax, 8
je 0x409086
test eax, eax
je 0x409086
mov eax, dword [ebp + 0x6c]
cmp byte [eax], 0
jne 0x409175
cmp dword [edi], 0
jne 0x409175
mov edi, dword [ebp + 0x7c]
lea eax, [ebp - 0xec]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4090a2
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret 0x18