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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
push ebx
push esi
push edi
mov edi, 0x413488
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [ebp + 0xc]
mov ebx, 0x411d78
lea eax, [ebp - 0x294]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40c5bb
test byte [ebp - 0x190], 0x10
je 0x40c59a
lea eax, [ebp - 0x164]
push 0x413484
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x40c59a
lea eax, [ebp - 0x164]
push 0x413480
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x40c59a
mov eax, dword [ebp + 0x14]
mov byte [0x411e58], 1
dec eax
test eax, eax
jle 0x40c540
mov dword [ebp - 0xc], eax
push 0x413478
push dword [ebp + 8]
call fcn.0040c816
dec dword [ebp - 0xc]
pop ecx
pop ecx
jne 0x40c52c
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x294]
push dword [ebp + 0xc]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x164]
push eax
push str.____s_r_n
push dword [ebp + 8]
call fcn.0040c83e
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x40c59a
mov eax, dword [ebp + 0x14]
inc eax
push eax
lea eax, [ebp - 0x294]
push 1
push eax
push dword [ebp + 8]
call fcn.0040c48c
add esp, 0x10
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40c4d9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 4]
call fcn.0040cf9c
push 0xa
lea ecx, [ebp - 4]
call fcn.0040cfa2
push edi
lea eax, [ebp - 0x294]
push dword [ebp + 0xc]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c63e
test byte [ebp - 0x190], 0x10
jne 0x40c625
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [ebp - 0x164]
lea ecx, [ebp - 4]
push eax
call fcn.0040cfd8
mov byte [0x411e58], 1
lea eax, [ebp - 0x190]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40c5f9
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 4]
call fcn.0040d049
mov al, byte [0x414444]
push 0xc
mov byte [ebp - 0x50], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
and dword [ebp + 0x10], 0
stosb byte es:[edi], al
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jle 0x40c769
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
call fcn.0040d029
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
dec eax
test eax, eax
jle 0x40c693
mov edi, eax
push 0x413478
push dword [ebp + 8]
call fcn.0040c816
pop ecx
dec edi
pop ecx
jne 0x40c681
push dword [ebp - 8]
lea eax, [ebp - 0x294]
push dword [ebp + 0xc]
push ebx
push eax
call esi
lea eax, [ebp - 0x50]
push 0x411008
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.0040d3f1
add esp, 0x1c
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.DLL_FileTimeToSystemTime]
mov ecx, dword [ebp - 0x174]
mov edx, dword [ebp - 0x170]
xor edi, edi
xor eax, eax
or ecx, edi
or eax, edx
push ecx
push eax
movzx eax, word [ebp - 0x1c]
push 0x64
cdq
pop ecx
idiv ecx
movzx eax, word [ebp - 0x1a]
push edx
push eax
movzx eax, word [ebp - 0x16]
push eax
lea eax, [ebp - 0x694]
push dword [ebp - 8]
push str._____25s_02i._02i._02i_10u_b
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 0x20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x694]
push eax
call edi
lea eax, [ebp - 0x694]
push 0x412f30
push eax
call edi
lea eax, [ebp - 0x694]
push eax
push dword [ebp + 8]
call fcn.0040c816
inc dword [ebp + 0x10]
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax]
jl 0x40c669
lea ecx, [ebp - 4]
call fcn.0040cfbe
cmp byte [0x411e58], 0
je 0x40c7b3
mov esi, dword [ebp + 0x14]
lea eax, [esi - 2]
test eax, eax
jle 0x40c798
mov edi, eax
push 0x413478
push dword [ebp + 8]
call fcn.0040c816
pop ecx
dec edi
pop ecx
jne 0x40c786
cmp esi, 1
jle 0x40c7ac
push str.____r_n
push dword [ebp + 8]
call fcn.0040c816
pop ecx
pop ecx
and byte [0x411e58], 0
pop edi
pop esi
pop ebx
leave
ret