Function at 0x4794c0
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 0x5155b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57d074]
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.00406f9b
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 0x47957b
lea ecx, [edi - 1]
test ecx, ecx
js 0x4797a1
cmp ecx, edi
jg 0x4797a1
cmp word [eax + ecx*2], bx
je 0x47957b
lea esi, [edi + 1]
test esi, esi
js 0x4797a1
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x479565
push esi
lea ecx, [ebp - 0x18]
call fcn.0040d637
mov eax, dword [ebp - 0x18]
mov word [eax + edi*2], bx
cmp esi, dword [eax - 8]
jg 0x4797a1
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
push 0x53e6c0
call fcn.004e07a4
add esp, 4
lea ecx, [ebp - 0x18]
push eax
push 0x53e6c0
call fcn.00410e44
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.004de4e0
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 0x47974a
cmp word [ebp + 0x2c], 0x2e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jne 0x4795f6
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x47972c
cmp ax, 0x2e
jne 0x4795f6
cmp word [ebp + 0x30], 0
je 0x47972c
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00406f9b
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 0x479680
lea ecx, [ebx - 1]
test ecx, ecx
js 0x4797a1
cmp ecx, ebx
jg 0x4797a1
cmp word [eax + ecx*2], 0x5c
je 0x479680
lea edi, [ebx + 1]
test edi, edi
js 0x4797a1
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x479659
push edi
lea ecx, [ebp - 0x10]
call fcn.0040d637
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 0x4797a1
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.004e07a4
add esp, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00410e44
test byte [ebp], 0x10
je 0x4796ca
mov dl, byte [ebp - 0x11]
lea ecx, [ebp - 0x10]
call fcn.004794c0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4796c0
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.004797c0
jmp 0x4796ee
cmp byte [ebp - 0x11], 0
je 0x4796ee
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4796e6
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00479a60
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 0x47972c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x534850
jne 0x4797ab
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x479732
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 0x4795cb
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 0x47977e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x4797b4
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.004da696
lea esp, [ebp + 0x254]
pop ebp
ret
push 0x80070057
call fcn.0040d795
mov ecx, edx
call edi
jmp 0x47972c
call edx
jmp 0x47977e