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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce8b0
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x298], edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov ebx, dword [ebp + 0x10]
jb 0x51f2f3
mov eax, dword [edi]
jmp 0x51f2f5
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x51f39f
test ebx, ebx
je 0x51f332
cmp dword [edi + 0x14], 8
jb 0x51f310
mov edi, dword [edi]
mov eax, dword [ebx]
push edi
push str.Directory_to_delete_not_present_at_location__s
push str.FileUtils
push 0x5f8398
push 0x28
push ebx
call dword [eax + 0x34]
add esp, 0x18
xor al, al
jmp 0x51f851
mov eax, dword [0x656c44]
test eax, eax
je 0x51f36b
cmp dword [edi + 0x14], 8
jb 0x51f343
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x28
call eax
add esp, 0x1c
xor al, al
jmp 0x51f851
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x51f398
cmp dword [edi + 0x14], 8
jb 0x51f37d
mov edi, dword [edi]
mov eax, dword [ecx]
push edi
push str.Directory_to_delete_not_present_at_location__s
push str.FileUtils
push 0x5f8398
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor al, al
jmp 0x51f851
cmp byte [ebp + 8], 0
je 0x51f5ba
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00408f10
push 0x5f8f60
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00408810
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0051de40
mov byte [ebp - 4], 0
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x51f409
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409510
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x29c], eax
cmp eax, 0xffffffff
je 0x51f59e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop word [eax + eax]
push 0x5f17f8
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x51f577
push 0x5f8f68
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x51f577
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x51f47f
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00408f10
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x40]
call fcn.00408810
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0051de40
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004087d0
test byte [ebp - 0x290], 0x10
lea ecx, [ebp - 0x28]
je 0x51f4d5
mov edx, dword [ebp - 0x298]
push 0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0051f2b0
add esp, 0x10
jmp 0x51f577
mov dl, byte [ebp + 0xc]
push ebx
call fcn.0051fea0
add esp, 4
test al, al
jne 0x51f577
test ebx, ebx
je 0x51f50a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebx]
cmovae eax, dword [ebp - 0x28]
push eax
push str.FileUtils
push str.File__s_failed_to_delete
push 0x28
push ebx
jmp 0x51f562
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x51f53d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.File__s_failed_to_delete
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x28
call ecx
add esp, 0x18
jmp 0x51f568
mov edx, dword [0x656c48]
test edx, edx
je 0x51f568
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [edx]
cmovae eax, dword [ebp - 0x28]
push eax
push str.FileUtils
push str.File__s_failed_to_delete
push 0x28
push edx
call dword [ecx + 0x34]
add esp, 0x14
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x28]
push eax
call fcn.0041e7d0
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x51f440
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x51f5ba
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
cmp byte [ebp + 0xc], 0
je 0x51f68e
cmp dword [edi + 0x14], 8
jb 0x51f5ce
mov eax, dword [edi]
jmp 0x51f5d0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x51f68e
test ebx, ebx
je 0x51f60a
cmp dword [edi + 0x14], 8
jb 0x51f5f0
mov edx, dword [edi]
jmp 0x51f5f2
mov edx, edi
mov eax, dword [ebx]
push ecx
push edx
push str.Directory__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push str.FileUtils
push 0x5f8398
push 0x14
push ebx
jmp 0x51f670
mov edx, dword [0x656c44]
test edx, edx
je 0x51f644
cmp dword [edi + 0x14], 8
jb 0x51f61e
mov eax, dword [edi]
jmp 0x51f620
mov eax, edi
push ecx
push eax
push str.Directory__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x14
call edx
add esp, 0x20
jmp 0x51f676
mov edx, dword [0x656c48]
test edx, edx
je 0x51f676
cmp dword [edi + 0x14], 8
jb 0x51f658
mov esi, dword [edi]
jmp 0x51f65a
mov esi, edi
mov eax, dword [edx]
push ecx
push esi
push str.Directory__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push str.FileUtils
push 0x5f8398
push 0x14
push edx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [edi + 0x14], 8
jb 0x51f680
mov eax, dword [edi]
jmp 0x51f682
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x51f698
mov eax, dword [edi]
jmp 0x51f69a
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov byte [ebp - 0x291], al
test al, al
je 0x51f76d
cmp byte [ebp + 0x14], 0
je 0x51f84b
test ebx, ebx
je 0x51f6f1
cmp dword [edi + 0x14], 8
jb 0x51f6ca
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
movzx eax, al
push eax
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push str.FileUtils
push 0x5f8398
push 0x1e
push ebx
call dword [ecx + 0x34]
add esp, 0x1c
jmp 0x51f84b
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x51f730
cmp dword [edi + 0x14], 8
jb 0x51f703
mov edi, dword [edi]
mov eax, dword [ebp + 8]
movzx eax, al
push eax
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x1e
call ecx
add esp, 0x20
jmp 0x51f84b
mov edx, dword [0x656c48]
test edx, edx
je 0x51f84b
cmp dword [edi + 0x14], 8
jb 0x51f746
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov ecx, dword [edx]
movzx eax, al
push eax
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push str.FileUtils
push 0x5f8398
push 0x1e
push edx
call dword [ecx + 0x34]
add esp, 0x1c
jmp 0x51f84b
push edi
mov edx, str.RemoveDirectoryFailed:
lea ecx, [ebp - 0x40]
call fcn.004220d0
add esp, 4
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 3
call fcn.0041e7d0
test ebx, ebx
je 0x51f7be
cmp dword [edi + 0x14], 8
jb 0x51f7a0
mov edi, dword [edi]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_remove_directory__s_Error__d
push str.FileUtils
push 0x5f8398
push 0x1e
push ebx
jmp 0x51f830
cmp dword [0x656c44], 0
je 0x51f7fd
cmp dword [edi + 0x14], 8
jb 0x51f7cf
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_remove_directory__s_Error__d
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x1e
call dword [0x656c44]
add esp, 0x20
jmp 0x51f836
mov esi, dword [0x656c48]
test esi, esi
je 0x51f836
cmp dword [edi + 0x14], 8
jb 0x51f80f
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_remove_directory__s_Error__d
push str.FileUtils
push 0x5f8398
push 0x1e
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x1c
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x51f84b
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00409510
mov al, byte [ebp - 0x291]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret