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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaf0
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x2ff
push ebx
mov dword [ebp - 0xae8], eax
xor esi, esi
lea eax, [ebp - 0x99b]
push esi
push eax
mov dword [ebp - 0xaec], edi
mov byte [ebp - 0x99c], 0
call fcn.0055bfc0
add esp, 0xc
push ebx
lea eax, [ebp - 0x69b]
push esi
push eax
mov byte [ebp - 0x69c], 0
call fcn.0055bfc0
add esp, 0xc
push dword [ebp - 0xae8]
lea eax, [ebp - 0x69c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5d3850
push dword [ebp - 0xae8]
lea eax, [ebp - 0x99c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0xadc]
push eax
lea eax, [ebp - 0x99c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xae4], eax
cmp eax, 0xffffffff
jne 0x405ed2
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
leave
ret
inc dword [0x5ea910]
mov eax, dword [0x5ea910]
cmp eax, dword [ebp + 0x10]
jg 0x4060e4
cmp dword [0x5ea2e4], 0xab1e40
jg 0x4060d8
lea eax, [ebp - 0xadc]
push eax
push dword [ebp - 0xae4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4060bf
push 0x5d3854
lea eax, [ebp - 0xab0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405ee6
push 0x5d3858
lea eax, [ebp - 0xab0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405ee6
push ebx
lea eax, [ebp - 0x39b]
push esi
push eax
mov byte [ebp - 0x39c], 0
call fcn.0055bfc0
add esp, 0xc
test byte [ebp - 0xadc], 0x10
lea eax, [ebp - 0xab0]
push eax
je 0x405f91
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push dword [ebp + 0x10]
lea eax, [ebp - 0x39c]
push edi
push eax
call fcn.00405e18
add esp, 0xc
jmp 0x405ee6
push dword [ebp - 0xae8]
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov dword [ebp - 0xae0], edi
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7f
stosb byte es:[edi], al
lea eax, [ebp - 0x9b]
push esi
push eax
mov byte [ebp - 0x9c], 0
call fcn.0055bfc0
add esp, 0xc
lea esi, [ebp - 0x9c]
call fcn.00404c8d
mov edi, dword [ebp - 0xae0]
push 0x3b
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov esi, eax
mov dword [ebp - 0xae0], esi
test esi, esi
jne 0x406001
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x406005
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0055bc50
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrA]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x39c]
push eax
call edi
test eax, eax
je 0x40608e
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x39c]
push eax
call edi
test eax, eax
jne 0x40608e
lea eax, [ebp - 0x39c]
push eax
call fcn.00403a48
pop ecx
test edx, edx
jg 0x40608e
jl 0x406058
cmp eax, 0x80000
ja 0x40608e
push 2
push dword [0x5ea914]
lea edi, [ebp - 0x39c]
lea esi, [ebp - 0xab0]
call fcn.004616d1
inc dword [0x5ea2b4]
mov eax, edi
push eax
call fcn.00403a48
mov esi, dword [ebp - 0xae0]
add esp, 0xc
add dword [0x5ea2e4], eax
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test esi, esi
je 0x4060b2
lea eax, [esi + 1]
push 0x3b
push eax
mov dword [ebp - 0xae0], eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
jmp 0x405fdd
mov edi, dword [ebp - 0xaec]
xor esi, esi
jmp 0x405ee6
push dword [ebp - 0xae4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
dec dword [0x5ea910]
jmp 0x405ec3
push dword [ebp - 0xae4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x4060cd