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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [ebp - 0x148], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x18]
mov ecx, eax
lea eax, [ebp - 0x30]
mov edx, eax
mov eax, 1
call fcn.004041b0
call fcn.004042b0
push eax
test eax, eax
jne 0x40911c
mov eax, dword [ebp - 8]
lea eax, [eax + 0x10]
push eax
lea edx, [ebp - 0x38]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x38], 0
mov edx, dword [0x418f00]
mov eax, dword [ebp - 4]
call fcn.00412ad0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x408df1
mov eax, 0x41b580
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x408e04
jmp 0x408e09
jmp 0x40911c
lea esi, [esi]
mov ebx, 0x418f10
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 8]
lea eax, [eax + 0x3c]
call fcn.00412ce0
lea eax, [ebp - 0x138]
mov edx, ebx
call fcn.00412da0
test eax, eax
jne 0x408e38
jmp 0x4090ef
mov ebx, dword [0x418f20]
lea edx, [ebp - 0x13c]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp - 8]
lea eax, [eax + 0x3c]
call fcn.00404ab0
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov edx, ebx
call fcn.00404320
test eax, eax
jne 0x408e7c
jmp 0x4090ef
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
and eax, 0x10
test eax, eax
jne 0x408e8e
jmp 0x408f8b
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x15a]
cmp eax, 0
jg 0x408e9f
jmp 0x408edd
lea edx, [ebp - 0x13c]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x13c], 0
mov edx, 0x103
mov eax, dword [ebp - 8]
lea eax, [eax + 0x3c]
call fcn.00412e10
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00409190
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x158]
test eax, eax
je 0x408ef0
jmp 0x408f86
lea edx, [ebp - 0x13c]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x13c], 0
mov ebx, dword [0x418f30]
lea edx, [ebp - 0x140]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x140], 0
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x144], 0
mov edx, 0x103
mov eax, dword [ebp - 8]
lea eax, [eax + 0x3c]
call fcn.00412e10
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 4]
call fcn.00412ad0
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov edx, ebx
call fcn.00412ad0
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 8]
call fcn.00408d60
jmp 0x4090ef
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0xc]
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x144], 0
lea edx, [ebp - 0x140]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x140], 0
mov edx, 0x103
mov eax, dword [ebp - 8]
lea eax, [eax + 0x3c]
call fcn.00412e10
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
call fcn.0040bd50
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov edx, ebx
call fcn.00413660
test al, al
jne 0x408ff9
jmp 0x409053
mov eax, dword [ebp - 8]
inc dword [eax + 4]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x15a]
cmp eax, 1
jne 0x409010
jmp 0x40904e
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x144], 0
mov edx, 0x103
mov eax, dword [ebp - 8]
lea eax, [eax + 0x3c]
call fcn.00412e10
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00409190
jmp 0x4090ef
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x144], 0
lea edx, [ebp - 0x140]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x140], 0
mov edx, 0x103
mov eax, dword [ebp - 8]
lea eax, [eax + 0x3c]
call fcn.00412e10
mov dword [ebp - 0x140], eax
mov ebx, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x13c], 0
mov edx, dword [0x418f40]
mov eax, dword [ebp - 4]
call fcn.00412ad0
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov edx, ebx
call fcn.00412ad0
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 8]
lea eax, [eax + 0x18c]
call fcn.0040aec0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 8]
test eax, eax
jne 0x409114
jmp 0x4090fc
mov eax, dword [ebp - 8]
lea eax, [eax + 0x10]
push eax
push dword [ebp - 0xc]
call sub.kernel32.dll_FindNextFileA
test eax, eax
je 0x409114
jmp 0x408e0c
push dword [ebp - 0xc]
call sub.kernel32.dll_FindClose
call fcn.004043b0
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x144], 0
lea edx, [ebp - 0x140]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x140], 0
lea edx, [ebp - 0x13c]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x13c], 0
lea edx, [ebp - 0x38]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x38], 0
pop eax
test eax, eax
je 0x409181
call fcn.00404440
mov ebx, dword [ebp - 0x148]
leave
ret