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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
mov eax, dword [0x422840]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x37c], ecx
push 0x140
push 0
lea eax, [ebp - 0x250]
push eax
call fcn.0040bc40
add esp, 0xc
mov dword [ebp - 0x254], 0
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040bc40
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0040bcc0
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040c670
add esp, 4
movsx edx, byte [ebp + eax - 0x111]
cmp edx, 0x5c
je 0x4089e2
push 0x41b58c
lea eax, [ebp - 0x110]
push eax
call fcn.0040bcd0
add esp, 8
push 0x41b590
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040bcd0
add esp, 8
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x408a20
xor eax, eax
jmp 0x408cd3
mov ecx, dword [ebp - 0x250]
and ecx, 0x10
je 0x408b04
push 0x41b594
lea edx, [ebp - 0x224]
push edx
call fcn.004092b0
add esp, 8
test eax, eax
je 0x408b04
push 0x41b598
lea eax, [ebp - 0x224]
push eax
call fcn.004092b0
add esp, 8
test eax, eax
je 0x408b04
mov byte [ebp - 0x360], 0
push 0x103
push 0
lea ecx, [ebp - 0x35f]
push ecx
call fcn.0040bc40
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x360]
push eax
call fcn.0040bcc0
add esp, 8
lea ecx, [ebp - 0x360]
push ecx
call fcn.0040c670
add esp, 4
movsx edx, byte [ebp + eax - 0x361]
cmp edx, 0x5c
je 0x408ac7
push 0x41b59c
lea eax, [ebp - 0x360]
push eax
call fcn.0040bcd0
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x360]
push edx
call fcn.0040bcd0
add esp, 8
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x360]
push ecx
mov ecx, dword [ebp - 0x37c]
call fcn.00408950
jmp 0x408ca5
push 0x41b5a0
lea edx, [ebp - 0x224]
push edx
call fcn.004092b0
add esp, 8
test eax, eax
je 0x408ca5
push 0x41b5a4
lea eax, [ebp - 0x224]
push eax
call fcn.004092b0
add esp, 8
test eax, eax
je 0x408ca5
push 0x2e
lea ecx, [ebp - 0x224]
push ecx
call fcn.00409270
add esp, 8
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x368], 1
mov dword [ebp - 0x364], 0
mov edx, dword [ebp - 0x36c]
mov dword [ebp - 0x370], edx
mov eax, dword [ebp - 0x370]
movsx ecx, byte [eax]
cmp ecx, 0x41
jl 0x408ba3
mov edx, dword [ebp - 0x370]
movsx eax, byte [edx]
cmp eax, 0x5a
jg 0x408ba3
mov ecx, dword [ebp - 0x370]
movsx edx, byte [ecx]
add edx, 0x20
mov eax, dword [ebp - 0x370]
mov byte [eax], dl
mov ecx, dword [ebp - 0x370]
add ecx, 1
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
movsx eax, byte [edx]
test eax, eax
jne 0x408b73
mov ecx, dword [ebp - 0x364]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0x36c]
push ecx
call fcn.004092b0
add esp, 8
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0
jne 0x408c87
push 0x104
call fcn.0040b7d8
add esp, 4
mov dword [ebp - 0x378], eax
mov edx, dword [ebp - 0x378]
mov dword [ebp - 0x374], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call fcn.0040bcc0
add esp, 8
mov edx, dword [ebp - 0x374]
push edx
call fcn.0040c670
add esp, 4
mov ecx, dword [ebp - 0x374]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
je 0x408c53
push 0x41b5a8
mov eax, dword [ebp - 0x374]
push eax
call fcn.0040bcd0
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x374]
push edx
call fcn.0040bcd0
add esp, 8
lea eax, [ebp - 0x374]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00409430
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x408ca5
mov ecx, dword [ebp - 0x364]
add ecx, 1
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
cmp edx, dword [ebp + 0x10]
jl 0x408bbf
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408a20
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b8bf
mov esp, ebp
pop ebp
ret 0x14