Function at 0x49754b
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x8f4
mov eax, 0x562d7a
call fcn.00539a44
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x88c], edi
mov dword [ebp - 0x898], eax
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x878]
push ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x884], 1
mov dword [ebp - 0x87c], ebx
call fcn.00537010
add esp, 0xc
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x62c], ax
lea eax, [ebp - 0x62a]
push ebx
push eax
mov dword [ebp - 0x880], ebx
call fcn.00537010
add esp, 0xc
push 0x588e08
push edi
mov edi, 0x57c6a4
push edi
mov ebx, 0x103
lea eax, [ebp - 0x62c]
push ebx
push eax
call fcn.00532a01
add esp, 0x14
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x890], eax
cmp eax, 0xffffffff
jne 0x497612
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x10]
push eax
call fcn.004131a7
mov eax, esi
call fcn.00539ac7
ret
mov ecx, 0x583f04
lea eax, [ebp - 0x850]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x497643
test dx, dx
je 0x49763f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x497643
add eax, 4
add ecx, 4
test dx, dx
jne 0x49761d
xor eax, eax
jmp 0x497648
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x497917
mov ecx, 0x583f08
lea eax, [ebp - 0x850]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x497681
test dx, dx
je 0x49767d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x497681
add eax, 4
add ecx, 4
test dx, dx
jne 0x49765b
xor eax, eax
jmp 0x497686
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x497917
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x888]
push eax
call fcn.00408273
lea eax, [ebp - 0x888]
mov byte [ebp - 4], 1
call fcn.00429b8d
xor eax, eax
test byte [ebp - 0x87c], 0x10
push esi
push eax
je 0x4977c3
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x88c]
lea eax, [ebp - 0x424]
push edi
push ebx
push eax
call fcn.00532a01
add esp, 0x14
push 0x588e10
lea eax, [ebp - 0x888]
push eax
call fcn.0041a591
push 0
lea esi, [ebp - 0x888]
call fcn.0040824b
push eax
lea ecx, [ebp - 0x8cc]
call fcn.0040a8b0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x8ac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8b0], eax
lea eax, [ebp - 0x8cc]
push eax
lea eax, [ebp - 0x8dc]
push eax
lea edi, [ebp + 0x10]
call fcn.00497f81
lea edi, [ebp - 0x8b0]
mov esi, eax
call fcn.00470a9c
mov bl, al
neg bl
sbb bl, bl
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x8cc]
inc bl
mov byte [ebp - 4], 1
call fcn.004053e5
test bl, bl
je 0x4978f0
sub esp, 0x20
mov eax, esp
mov dword [ebp - 0x884], esp
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x894], esi
call fcn.00413103
lea eax, [ebp - 0x894]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0049754b
add esp, 0x28
cmp dword [ebp - 0x894], esi
mov dword [ebp - 0x884], eax
jle 0x4978f6
jmp 0x4978f0
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x88c]
lea eax, [ebp - 0x21c]
push edi
push ebx
push eax
call fcn.00532a01
add esp, 0x14
push 0
lea esi, [ebp - 0x888]
call fcn.0040824b
push eax
lea ecx, [ebp - 0x8cc]
call fcn.0040a8b0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x8a4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8a8], eax
lea eax, [ebp - 0x8cc]
push eax
lea eax, [ebp - 0x8e4]
push eax
lea edi, [ebp + 0x10]
call fcn.00497f81
lea edi, [ebp - 0x8a8]
mov esi, eax
call fcn.00470a9c
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x8cc]
inc bl
mov byte [ebp - 4], 1
call fcn.004053e5
test bl, bl
je 0x49787b
lea ecx, [ebp - 0x21c]
call fcn.00496aa0
mov dword [ebp - 0x884], eax
jmp 0x4978f6
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4978f0
push eax
lea ecx, [ebp - 0x900]
call fcn.0040a8b0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x89c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8a0], eax
lea eax, [ebp - 0x900]
push eax
lea eax, [ebp - 0x8d4]
push eax
lea edi, [ebp + 0x10]
call fcn.00497f81
lea edi, [ebp - 0x8a0]
mov esi, eax
call fcn.00470a9c
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x900]
inc bl
call fcn.004053e5
test bl, bl
jne 0x497868
inc dword [ebp - 0x880]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x888]
add eax, 0xfffffff0
call fcn.00407d09
mov ebx, 0x103
mov edi, 0x57c6a4
mov esi, 0x206
lea eax, [ebp - 0x87c]
push eax
push dword [ebp - 0x890]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x497612
push dword [ebp - 0x890]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x880]
test eax, eax
jne 0x49796a
push 0x20
push dword [ebp - 0x88c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x88c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x884], eax
jmp 0x497972
mov ecx, dword [ebp - 0x898]
mov dword [ecx], eax
mov esi, dword [ebp - 0x884]
jmp 0x4975fd