Function at 0x51fc20
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 0x5cefb0
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 0x51fc63
mov eax, dword [edi]
jmp 0x51fc65
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x51fd0f
test ebx, ebx
je 0x51fca2
cmp dword [edi + 0x14], 8
jb 0x51fc80
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 0x5201c1
mov eax, dword [0x656c44]
test eax, eax
je 0x51fcdb
cmp dword [edi + 0x14], 8
jb 0x51fcb3
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
push 0x5f8398
push 0x5f8398
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x1c
xor al, al
jmp 0x5201c1
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x51fd08
cmp dword [edi + 0x14], 8
jb 0x51fced
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 0x5201c1
cmp byte [ebp + 8], 0
je 0x51ff2a
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.0051e7b0
mov byte [ebp - 4], 0
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x51fd79
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 0x51ff0e
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 0x51fee7
push 0x5f8f68
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x51fee7
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x51fdef
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.0051e7b0
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 0x51fe45
mov edx, dword [ebp - 0x298]
push 0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0051fc20
add esp, 0x10
jmp 0x51fee7
mov dl, byte [ebp + 0xc]
push ebx
call fcn.00520810
add esp, 4
test al, al
jne 0x51fee7
test ebx, ebx
je 0x51fe7a
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 0x51fed2
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x51fead
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 str.OOBEUtils
push 0x28
call ecx
add esp, 0x18
jmp 0x51fed8
mov edx, dword [0x656c48]
test edx, edx
je 0x51fed8
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.0041e980
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x51fdb0
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 0x51ff2a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
cmp byte [ebp + 0xc], 0
je 0x51fffe
cmp dword [edi + 0x14], 8
jb 0x51ff3e
mov eax, dword [edi]
jmp 0x51ff40
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x51fffe
test ebx, ebx
je 0x51ff7a
cmp dword [edi + 0x14], 8
jb 0x51ff60
mov edx, dword [edi]
jmp 0x51ff62
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 0x51ffe0
mov edx, dword [0x656c44]
test edx, edx
je 0x51ffb4
cmp dword [edi + 0x14], 8
jb 0x51ff8e
mov eax, dword [edi]
jmp 0x51ff90
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 str.OOBEUtils
push 0x14
call edx
add esp, 0x20
jmp 0x51ffe6
mov edx, dword [0x656c48]
test edx, edx
je 0x51ffe6
cmp dword [edi + 0x14], 8
jb 0x51ffc8
mov esi, dword [edi]
jmp 0x51ffca
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 0x51fff0
mov eax, dword [edi]
jmp 0x51fff2
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x520008
mov eax, dword [edi]
jmp 0x52000a
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 0x5200dd
cmp byte [ebp + 0x14], 0
je 0x5201bb
test ebx, ebx
je 0x520061
cmp dword [edi + 0x14], 8
jb 0x52003a
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 0x5201bb
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x5200a0
cmp dword [edi + 0x14], 8
jb 0x520073
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 str.OOBEUtils
push 0x1e
call ecx
add esp, 0x20
jmp 0x5201bb
mov edx, dword [0x656c48]
test edx, edx
je 0x5201bb
cmp dword [edi + 0x14], 8
jb 0x5200b6
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 0x5201bb
push edi
mov edx, str.RemoveDirectoryFailed:
lea ecx, [ebp - 0x40]
call fcn.00422280
add esp, 4
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 3
call fcn.0041e980
test ebx, ebx
je 0x52012e
cmp dword [edi + 0x14], 8
jb 0x520110
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 0x5201a0
cmp dword [0x656c44], 0
je 0x52016d
cmp dword [edi + 0x14], 8
jb 0x52013f
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 str.OOBEUtils
push 0x1e
call dword [0x656c44]
add esp, 0x20
jmp 0x5201a6
mov esi, dword [0x656c48]
test esi, esi
je 0x5201a6
cmp dword [edi + 0x14], 8
jb 0x52017f
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 0x5201bb
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.005765b2
mov esp, ebp
pop ebp
ret