Function at 0x473fb0
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 0x50d130
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x573080]
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.004070e8
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
lea ebx, [esi - 0xc]
mov ecx, dword [ebx]
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x474073
lea eax, [ecx - 1]
test eax, eax
js 0x4743a0
cmp eax, ecx
jg 0x4743a0
cmp word [esi + eax*2], 0x5c
je 0x474073
lea edi, [ecx + 1]
test edi, edi
js 0x4743a0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x474053
push edi
lea ecx, [ebp - 0x18]
call fcn.0040d6fc
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, 0x5c
mov word [esi + eax*2], cx
cmp edi, dword [esi - 8]
jg 0x4743a0
lea ebx, [esi - 0xc]
xor eax, eax
mov dword [ebx], edi
mov word [esi + edi*2], ax
push 0x535868
call fcn.004dbc76
mov ebx, dword [ebx]
mov edi, 0x535868
sub edi, esi
mov dword [ebp - 0x10], ebx
add esp, 4
sar edi, 1
test eax, eax
js 0x4743a0
push eax
push 0x535868
call fcn.004de957
mov edx, eax
mov ecx, 0x7fffffff
sub ecx, edx
mov dword [ebp - 0x14], edx
add esp, 8
cmp ecx, ebx
jl 0x4743a0
add ebx, edx
js 0x4743a0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4740e0
push ebx
lea ecx, [ebp - 0x18]
call fcn.0040d6fc
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [esi + edi*2]
cmp edi, eax
jbe 0x4740ef
mov ecx, 0x535868
add edx, edx
push edx
push ecx
lea ecx, [esi + eax*2]
call fcn.0040d7d5
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x4743a0
xor eax, eax
mov dword [esi - 0xc], ebx
push 0x250
push eax
mov word [esi + ebx*2], ax
lea eax, [ebp]
push eax
call fcn.004d99d0
add esp, 0xc
lea eax, [ebp]
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 - 0x14], eax
cmp eax, ebx
je 0x474343
cmp word [ebp + 0x2c], 0x2e
jne 0x474166
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x47432b
cmp ax, 0x2e
jne 0x474166
cmp word [ebp + 0x30], 0
je 0x47432b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004070e8
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 0x4741ea
lea ecx, [ebx - 1]
test ecx, ecx
js 0x4743a0
cmp ecx, ebx
jg 0x4743a0
cmp word [eax + ecx*2], 0x5c
je 0x4741ea
lea edi, [ebx + 1]
test edi, edi
js 0x4743a0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4741c9
push edi
lea ecx, [ebp - 0x10]
call fcn.0040d6fc
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 0x4743a0
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edi*2], cx
lea eax, [ebp + 0x2c]
push eax
call fcn.004dbc76
lea ecx, [ebp + 0x2c]
add esp, 4
mov ebx, ecx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
sar ebx, 1
mov edi, dword [ecx - 0xc]
mov dword [ebp - 0x20], edi
test eax, eax
js 0x4743a0
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004de957
mov ecx, 0x7fffffff
mov dword [ebp - 0x28], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x4743a0
add edi, eax
js 0x4743a0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x47425a
push edi
lea ecx, [ebp - 0x10]
call fcn.0040d6fc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp ebx, ecx
lea ebx, [eax + ebx*2]
jbe 0x474267
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea ecx, [eax + ecx*2]
add edx, edx
push edx
push ebx
call fcn.0040d7d5
mov eax, dword [ebp - 0x10]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x4743a0
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edi*2], cx
test byte [ebp], 0x10
je 0x4742c5
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.00473fb0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4742bb
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x10]
call fcn.004743b0
jmp 0x4742e7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4742df
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x10]
call fcn.00474650
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 0x474325
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x52b690
jne 0x47439a
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x47432b
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x474141
mov eax, dword [ebp - 0x14]
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 0x474377
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x52b690
jne 0x4743aa
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
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.004d5b75
lea esp, [ebp + 0x254]
pop ebp
ret
mov ecx, edx
call edi
jmp 0x474325
push 0x80070057
call fcn.0040d85a
call edx
jmp 0x474377