Function at 0x494010
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 0x556ea0
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.0040be70
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x494090
lea ecx, [edx - 1]
test ecx, ecx
js 0x494232
cmp ecx, edx
jg 0x494232
cmp word [eax + ecx*2], 0x5c
je 0x494090
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00492e20
push 1
push 0x589e20
lea ecx, [ebp - 0x14]
call fcn.00418250
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.00522fa0
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 0x4941ec
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 0x494105
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x4941d1
cmp ax, 0x2e
jne 0x494105
cmp word [ebp + 0x30], 0
je 0x4941d1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040be70
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 0x49414a
lea ecx, [edx - 1]
test ecx, ecx
js 0x494232
cmp ecx, edx
jg 0x494232
cmp word [eax + ecx*2], 0x5c
je 0x49414a
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00492e20
lea eax, [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494150
sub eax, edx
lea ecx, [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00418250
test byte [ebp], 0x10
je 0x494198
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.00494010
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x49418e
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00494240
jmp 0x4941b2
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x4941aa
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00494350
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 0x4941d1
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 0x4940e0
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 0x49420f
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.00520c02
lea esp, [ebp + 0x254]
pop ebp
ret
push 0x80070057
call fcn.004143a0
int3