Function at 0x4917e0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x555da0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00408ad0
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x491860
lea ecx, [edx - 1]
test ecx, ecx
js 0x491a02
cmp ecx, edx
jg 0x491a02
cmp word [eax + ecx*2], 0x5c
je 0x491860
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0048fc70
push 1
push 0x588cc8
lea ecx, [ebp - 0x14]
call fcn.00418fe0
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.0051fe50
mov esi, dword [ebp - 0x14]
lea eax, [ebp]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4919bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop word [eax + eax]
cmp word [ebp + 0x2c], 0x2e
jne 0x4918d5
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x4919a1
cmp ax, 0x2e
jne 0x4918d5
cmp word [ebp + 0x30], 0
je 0x4919a1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00408ad0
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x49191a
lea ecx, [edx - 1]
test ecx, ecx
js 0x491a02
cmp ecx, edx
jg 0x491a02
cmp word [eax + ecx*2], 0x5c
je 0x49191a
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0048fc70
lea eax, [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491920
sub eax, edx
lea ecx, [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00418fe0
test byte [ebp], 0x10
je 0x491968
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.004917e0
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x49195e
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00491a10
jmp 0x491982
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x49197a
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00491b20
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4919a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4918b0
mov eax, dword [ebp - 0x18]
or ebx, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4919df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.0051dacc
lea esp, [ebp + 0x254]
pop ebp
ret
push 0x80070057
call fcn.00408f80
int3