Function at 0x474d00
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 0x509c80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x570074]
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 byte [ebp - 0x11], dl
mov eax, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040699a
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov ebx, 0x5c
mov edi, dword [eax - 0xc]
test edi, edi
jle 0x474db5
lea ecx, [edi - 1]
test ecx, ecx
js 0x474d7c
cmp ecx, edi
jg 0x474d7c
cmp word [eax + ecx*2], bx
je 0x474db5
lea esi, [edi + 1]
test esi, esi
jns 0x474d86
push 0x80070057
call fcn.0040d173
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x474da3
push esi
lea ecx, [ebp - 0x18]
call fcn.0040d01b
mov eax, dword [ebp - 0x18]
mov word [eax + edi*2], bx
cmp esi, dword [eax - 8]
jg 0x474d7c
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
push 0x5325a0
call fcn.004d5c34
add esp, 4
lea ecx, [ebp - 0x18]
push eax
push 0x5325a0
call fcn.004106c3
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.004d39c0
mov esi, dword [ebp - 0x18]
lea eax, [ebp]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
or ebx, 0xffffffff
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x474f84
cmp word [ebp + 0x2c], 0x2e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jne 0x474e30
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x474f66
cmp ax, 0x2e
jne 0x474e30
cmp word [ebp + 0x30], 0
je 0x474f66
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040699a
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax - 0xc]
test ebx, ebx
jle 0x474eba
lea ecx, [ebx - 1]
test ecx, ecx
js 0x474d7c
cmp ecx, ebx
jg 0x474d7c
cmp word [eax + ecx*2], 0x5c
je 0x474eba
lea edi, [ebx + 1]
test edi, edi
js 0x474d7c
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x474e93
push edi
lea ecx, [ebp - 0x10]
call fcn.0040d01b
mov eax, dword [ebp - 0x10]
mov ecx, 0x5c
mov word [eax + ebx*2], cx
mov eax, dword [ebp - 0x10]
cmp edi, dword [eax - 8]
jg 0x474d7c
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edi*2], cx
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0x2c]
push eax
call fcn.004d5c34
add esp, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004106c3
test byte [ebp], 0x10
je 0x474f04
mov dl, byte [ebp - 0x11]
lea ecx, [ebp - 0x10]
call fcn.00474d00
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x474efa
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00474fe0
jmp 0x474f28
cmp byte [ebp - 0x11], 0
je 0x474f28
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x474f20
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00475270
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x474f66
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x528840
jne 0x474f62
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x474f6c
mov ecx, edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x474e05
mov eax, dword [ebp - 0x1c]
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 0x474fbc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x528840
jne 0x474fba
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x474fbc
call edx
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.004d0217
lea esp, [ebp + 0x254]
pop ebp
ret