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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557417
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 0x2c4], eax
xor edi, edi
mov dword [ebp - 0x2c8], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408ad3
mov edx, dword [ebp - 0x2c4]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x2c4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088f0
sub ecx, dword [ebp - 0x2c4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004048f0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.00408200
push 4
push 0x574524
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00404770
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c4], eax
cmp eax, 0xffffffff
jne 0x408970
lea ecx, [ebp - 0x70]
call fcn.004029d0
lea ecx, [ebp - 0x58]
call fcn.004029d0
xor eax, eax
jmp 0x408ad5
or esi, 1
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c8], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2cc], esi
xor eax, eax
mov esi, dword [ebp - 0x48]
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea eax, [esi + 1]
push eax
call fcn.00412150
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push esi
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x40]
push eax
call fcn.00404770
push 1
push 0x57446c
lea ecx, [ebp - 0x40]
call fcn.00404770
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4089d3
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00404770
mov esi, dword [ebp - 0x2cc]
xor ecx, ecx
mov dword [ebp - 0x18], 0
or esi, 2
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and esi, 0xfffffffe
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x408a6e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408a64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b63
push edx
push ecx
call fcn.004845fc
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
test byte [ebp - 0x2c0], 0x10
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
je 0x408af0
cmp word [ebp - 0x294], 0x2e
je 0x408b09
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00408880
mov edi, eax
add esp, 4
test edi, edi
jne 0x408b09
lea ecx, [ebp - 0x28]
call fcn.004029d0
push dword [ebp - 0x2c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x70]
call fcn.004029d0
lea ecx, [ebp - 0x58]
call fcn.004029d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040e480
add esp, 4
mov edi, 1
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x408aaf
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x408970
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b63
push edx
push ecx
call fcn.004845fc
add esp, 8
jmp 0x408970
call fcn.004faed4
int3