Function at 0x4741f0
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 0x507240
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x56d078]
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, 0x523a78
je 0x474247
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x474259
cmp ecx, dword [esi]
jne 0x474259
lock inc dword [eax]
jmp 0x474284
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x47426f
call fcn.00406775
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.00406697
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004737f0
push 0x52f428
call fcn.004d3ded
add esp, 4
lea ecx, [ebp - 0x18]
push eax
push 0x52f428
call fcn.004070e2
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.004cfc80
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 0x47444c
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [eax]
cmp word [ebp + 0x2c], 0x2e
jne 0x474315
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x474434
cmp ax, 0x2e
jne 0x474315
cmp word [ebp + 0x30], 0
je 0x474434
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, 0x523a78
je 0x474331
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x474343
cmp ecx, dword [edi]
jne 0x474343
lock inc dword [eax]
jmp 0x474375
mov eax, dword [ecx]
lea ebx, [edi + 4]
push 2
push dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x47426a
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.00406697
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.004737f0
lea eax, [ebp + 0x2c]
push eax
call fcn.004d3ded
add esp, 4
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004070e2
test byte [ebp], 0x10
je 0x4743d1
mov dl, byte [ebp - 0xd]
lea ecx, [ebp - 0x14]
call fcn.004741f0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4743c7
and eax, 0xfffffffe
push eax
push dword [ebp - 0x14]
call ebx
lea ecx, [ebp - 0x14]
call fcn.004744b0
jmp 0x4743f5
cmp byte [ebp - 0xd], 0
je 0x4743f5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4743ed
and eax, 0xfffffffe
push eax
push dword [ebp - 0x14]
call ebx
lea ecx, [ebp - 0x14]
call fcn.004745f0
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 0x474434
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x523a78
jne 0x47442d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x474431
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 0x4742f0
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 0x474488
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a78
jne 0x474486
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x474488
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.004cde67
lea esp, [ebp + 0x254]
pop ebp
ret