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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476828
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x49a1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040feb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f8df
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407110
jmp 0x40faf4
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.0044ad20
add esp, 0xc
push 0x47b86c
lea ecx, [ebp + 8]
call fcn.0040feb0
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x688]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x690], eax
cmp dword [ebp - 0x690], 0xffffffff
jne 0x40f947
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407110
jmp 0x40faf4
lea ecx, [ebp - 0x688]
push ecx
mov edx, dword [ebp - 0x690]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40fad8
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x65c]
cmp edx, 0x2e
jne 0x40f97a
jmp 0x40f947
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0044ad20
add esp, 0xc
lea ecx, [ebp - 0x65c]
push ecx
lea ecx, [ebp + 8]
call fcn.0040feb0
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp - 0x688]
and eax, 0x10
je 0x40fa19
mov ecx, dword [ebp - 0x68c]
add ecx, 0x18
call fcn.0040f730
movzx ecx, al
test ecx, ecx
je 0x40f9f2
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx + 0x40]
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x68c]
add ecx, 0x18
call fcn.0040f760
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x69c], esp
lea edx, [ebp - 0x218]
push edx
call fcn.0040f500
mov ecx, dword [ebp - 0x68c]
call fcn.0040f880
jmp 0x40fad3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040f500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp - 0x68c]
call fcn.00410010
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00407110
imul edx, dword [ebp - 0x66c], 0
add edx, dword [ebp - 0x668]
xor eax, eax
mov dword [ebp - 0x698], edx
mov dword [ebp - 0x694], eax
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x698]
mov eax, dword [ecx + 0x14]
adc eax, dword [ebp - 0x694]
mov ecx, dword [ebp - 0x68c]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x68c]
add ecx, 0x18
call fcn.0040f730
movzx edx, al
test edx, edx
je 0x40fad3
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax + 0x40]
push ecx
push 0
mov edx, dword [ebp - 0x694]
push edx
mov eax, dword [ebp - 0x698]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x68c]
add ecx, 0x18
call fcn.0040f760
jmp 0x40f947
mov edx, dword [ebp - 0x690]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407110
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b53
mov esp, ebp
pop ebp
ret 0x18