Function at 0x493e80
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 0x557150
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5d0074]
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.0040a1d0
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x493f00
lea ecx, [edx - 1]
test ecx, ecx
js 0x4940a2
cmp ecx, edx
jg 0x4940a2
cmp word [eax + ecx*2], 0x5c
je 0x493f00
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00492b30
push 1
push 0x589c60
lea ecx, [ebp - 0x14]
call fcn.00416df0
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.00523880
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 0x49405c
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 0x493f75
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x494041
cmp ax, 0x2e
jne 0x493f75
cmp word [ebp + 0x30], 0
je 0x494041
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040a1d0
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 0x493fba
lea ecx, [edx - 1]
test ecx, ecx
js 0x4940a2
cmp ecx, edx
jg 0x4940a2
cmp word [eax + ecx*2], 0x5c
je 0x493fba
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00492b30
lea eax, [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493fc0
sub eax, edx
lea ecx, [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00416df0
test byte [ebp], 0x10
je 0x494008
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.00493e80
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x493ffe
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.004940b0
jmp 0x494022
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x49401a
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.004941c0
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 0x494041
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 0x493f50
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 0x49407f
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.005214e1
lea esp, [ebp + 0x254]
pop ebp
ret
push 0x80070057
call fcn.004126a0
int3