Function at 0x405a53
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x40dac0]
push ebx
push esi
push edi
mov dword [ebp - 0x85c], eax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x858]
and byte [ebp - 0x45c], al
push dword [ebp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [ebp - 0x45b]
rep stosd dword es:[edi], eax
push dword [0x47eec8]
xor ebx, ebx
stosw word es:[edi], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
call dword [0x47f148]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
pop ecx
pop ecx
mov esi, eax
push esi
call edi
add eax, 0x10
push eax
call fcn.00408d7b
push esi
push str.__s_ki
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
push dword [0x47eec8]
call dword [0x47d7a0]
add esp, 0x18
push ebx
push dword [0x47d4e8]
push 0xa
push dword [0x47eee0]
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, 0x40d0cc
lea eax, [ebp - 0x85c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x405b27
push 0x40dd00
lea eax, [ebp - 0x85c]
push esi
push eax
mov dword [ebp - 0x10], 1
call fcn.00409d20
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x405b4a
xor eax, eax
jmp 0x405ce9
lea eax, [ebp - 0x228]
push 0x40d86c
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x405b7a
mov eax, dword [ebp - 0x254]
and eax, 0x10
cmp al, 0x10
jne 0x405b7a
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
je 0x405b92
mov eax, dword [ebp - 0x254]
and eax, 0x10
cmp al, 0x10
jne 0x405bdb
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
lea eax, [ebp + eax - 0x228]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [0x47d740]
add esp, 0x14
test eax, eax
je 0x405bdb
mov eax, dword [0x47eed4]
lea ecx, [ebp - 0x228]
push ecx
push eax
mov dword [ebp - 4], 1
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x405c9c
cmp dword [ebp - 4], 1
jne 0x405c11
lea eax, [ebp - 0x228]
push 0x40dab4
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x405c8d
mov eax, dword [ebp - 0x254]
and eax, 0x10
cmp al, 0x10
jne 0x405c2b
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
cmp dword [ebp - 0x10], 0
je 0x405c3e
mov eax, dword [ebp - 0x254]
and eax, 0x10
cmp al, 0x10
jne 0x405c8d
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
lea eax, [ebp + eax - 0x228]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [0x47d740]
add esp, 0x14
test eax, eax
je 0x405c8d
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x228]
imul eax, eax, 0x210
add eax, dword [0x47eed4]
inc dword [ebp - 4]
push ecx
push eax
call esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0xc]
jmp 0x405beb
cmp dword [ebp - 8], 0
je 0x405cac
push dword [ebp - 8]
call dword [0x47d738]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0x40d86c
push dword [0x47eed4]
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x405cd7
push 0x47da04
push dword [0x47eed4]
call esi
cmp dword [ebp + 8], 0
je 0x405ce6
push dword [ebp + 8]
call fcn.00408d95
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret