Function at 0x406f80
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422317
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
test esi, esi
je 0x407294
test ebx, ebx
je 0x407294
push 0x20a
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0040f860
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push esi
push eax
call fcn.0041586a
add esp, 0xc
test eax, eax
je 0x407294
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00401ff0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
cmp dword [ebp - 0x258], 8
cmovae eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407034
xor edi, edi
jmp 0x40726e
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.00401ff0
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.00408f70
push 0x429b24
lea ecx, [ebp - 0x254]
call fcn.004092a0
cmp dword [ebp - 0x240], 8
lea ecx, [ebp - 0x4bc]
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x4c0], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x40709f
xor edi, edi
jmp 0x407263
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov ecx, 0x4299f8
lea eax, [ebp - 0x490]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4070e6
test dx, dx
je 0x4070e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4070e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4070c0
xor eax, eax
jmp 0x4070eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x407247
mov eax, 0x4299fc
lea ecx, [ebp - 0x490]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x407126
test dx, dx
je 0x407122
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x407126
add ecx, 4
add eax, 4
test dx, dx
jne 0x407100
xor eax, eax
jmp 0x40712b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407247
test byte [ebp - 0x4bc], 0x10
je 0x4071ae
cmp dword [ebp + 8], 0
je 0x407247
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00401ff0
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.00408f70
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004092a0
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x23c]
push dword [ebp + 8]
cmovae ecx, dword [ebp - 0x23c]
mov edx, ebx
call fcn.00406f80
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.00401f40
jmp 0x407247
xor eax, eax
mov dword [ebp - 0x228], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x23c], ax
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x22c], 0
push eax
call fcn.00402120
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.00408f70
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004092a0
mov edi, dword [ebx]
lea eax, [ebp - 0x23c]
push eax
push dword [edi + 4]
push edi
call fcn.00408110
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [ebx + 4]
sub ecx, eax
cmp ecx, 1
jb 0x40728a
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
lea ecx, [ebp - 0x23c]
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov byte [ebp - 4], 2
mov dword [eax], edx
call fcn.00401f40
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x4bc]
push eax
push esi
call edi
test eax, eax
jne 0x4070b0
push esi
lea edi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x254]
call fcn.00401f40
mov ecx, dword [ebp - 0x258]
cmp ecx, 8
jb 0x407286
inc ecx
push ecx
push dword [ebp - 0x26c]
call fcn.00402450
mov eax, edi
jmp 0x407296
push str.list_T__too_long
call fcn.0040d1b6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret