Function at 0x473c10
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 0x504ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x569078]
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 - 0xd], dl
mov eax, ecx
mov dword [ebp - 0x20], eax
mov ebx, dword [eax]
mov ecx, dword [ebx - 0x10]
lea esi, [ebx - 0x10]
mov eax, dword [ecx]
cmp eax, 0x5209f4
je 0x473c67
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x473c79
cmp ecx, dword [esi]
jne 0x473c79
lock inc dword [eax]
jmp 0x473ca4
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x473c8f
call fcn.0040676e
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [edi]
inc edx
push edx
push ebx
call fcn.00406690
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00473210
push 0x52c068
call fcn.004d163d
add esp, 4
lea ecx, [ebp - 0x18]
push eax
push 0x52c068
call fcn.00407092
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.004cd4d0
mov esi, dword [ebp - 0x18]
lea eax, [ebp]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or edi, 0xffffffff
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x473e6c
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [eax]
cmp word [ebp + 0x2c], 0x2e
jne 0x473d35
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x473e54
cmp ax, 0x2e
jne 0x473d35
cmp word [ebp + 0x30], 0
je 0x473e54
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
cmp eax, 0x5209f4
je 0x473d51
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x473d63
cmp ecx, dword [edi]
jne 0x473d63
lock inc dword [eax]
jmp 0x473d95
mov eax, dword [ecx]
lea ebx, [edi + 4]
push 2
push dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x473c8a
mov ecx, dword [ebx]
mov dword [edi + 4], ecx
lea ecx, [edi + 0x10]
mov edx, dword [ebx]
inc edx
push edx
push dword [ebp - 0x24]
call fcn.00406690
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00473210
lea eax, [ebp + 0x2c]
push eax
call fcn.004d163d
add esp, 4
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00407092
test byte [ebp], 0x10
je 0x473df1
mov dl, byte [ebp - 0xd]
lea ecx, [ebp - 0x14]
call fcn.00473c10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x473de7
and eax, 0xfffffffe
push eax
push dword [ebp - 0x14]
call ebx
lea ecx, [ebp - 0x14]
call fcn.00473ed0
jmp 0x473e15
cmp byte [ebp - 0xd], 0
je 0x473e15
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x473e0d
and eax, 0xfffffffe
push eax
push dword [ebp - 0x14]
call ebx
lea ecx, [ebp - 0x14]
call fcn.00474010
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x473e54
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x473e4d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x473e51
mov ecx, edx
call edi
or edi, 0xffffffff
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x473d10
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], edi
dec edi
test edi, edi
jg 0x473ea8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x473ea6
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x473ea8
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.004cb6da
lea esp, [ebp + 0x254]
pop ebp
ret