Function at 0x653180
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 0x747c60
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x857060]
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 esi, edx
mov edi, ecx
push 0x799430
call fcn.00513340
test al, al
je 0x65321f
mov eax, dword [0x87d0dc]
test eax, eax
je 0x6531f0
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x18
xor al, al
jmp 0x653707
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x6532fc
mov eax, dword [ecx]
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push str.FileUtils
push 0x799430
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
jmp 0x653707
mov ecx, edi
call fcn.00652f70
test al, al
je 0x653281
mov eax, dword [0x87d0dc]
test eax, eax
je 0x653263
cmp dword [edi + 0x14], 8
jb 0x65323b
mov edi, dword [edi]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x1c
xor al, al
jmp 0x653707
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x6532fc
cmp dword [edi + 0x14], 8
jb 0x653279
mov edi, dword [edi]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
jmp 0x6532e7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x65328b
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x653303
mov eax, dword [0x87d0dc]
test eax, eax
je 0x6532cf
cmp dword [edi + 0x14], 8
jb 0x6532a7
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x1c
xor al, al
jmp 0x653707
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x6532fc
cmp dword [edi + 0x14], 8
jb 0x6532e1
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
mov eax, dword [ecx]
push str.FileUtils
push 0x799430
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor al, al
jmp 0x653707
push edi
lea ecx, [ebp - 0x28]
call fcn.00449230
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 1
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x7a15b8
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00426ce0
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 - 0x294], eax
cmp eax, 0xffffffff
je 0x65350f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str..__
lea eax, [ebp - 0x264]
push eax
call ebx
test eax, eax
je 0x6534e8
push 0x7ea604
lea eax, [ebp - 0x264]
push eax
call ebx
test eax, eax
je 0x6534e8
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x6533cc
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6533c0
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00426d40
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6533f0
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00426d40
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00426ce0
test byte [ebp - 0x290], 0x10
je 0x653453
push 1
push 0
push 0
push 1
push 1
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00653180
add esp, 0x14
jmp 0x6534e8
push ecx
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00653dc0
add esp, 4
test al, al
jne 0x6534e8
mov ecx, dword [0x87d0dc]
test ecx, ecx
je 0x65349c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.File__s_failed_to_delete
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x28
call ecx
add esp, 0x18
jmp 0x6534c7
mov edx, dword [0x87d0e0]
test edx, edx
je 0x6534c7
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.FileUtils
push str.File__s_failed_to_delete
push 0x28
push edx
call dword [eax + 0x34]
add esp, 0x14
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [esi + 8]
je 0x6534e0
mov ecx, eax
call fcn.00449230
add dword [esi + 4], 0x18
jmp 0x6534e8
push eax
mov ecx, esi
call fcn.00457540
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x653383
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00426ce0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x653528
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x6535b7
mov eax, dword [0x87d0dc]
test eax, eax
je 0x653571
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x65354d
mov ecx, dword [edi]
push edx
push ecx
push str.Directory__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x14
call eax
add esp, 0x20
jmp 0x6535a1
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x6535a1
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x653585
mov ebx, dword [edi]
mov eax, dword [ecx]
push edx
push ebx
push str.Directory__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push str.FileUtils
push 0x799430
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6535ab
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6535c1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
je 0x65364c
cmp byte [ebp + 0x14], 0
je 0x653705
mov eax, dword [0x87d0dc]
test eax, eax
je 0x653614
cmp dword [edi + 0x14], 8
jb 0x6535ec
mov edi, dword [edi]
push 1
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x20
jmp 0x653705
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x653705
cmp dword [edi + 0x14], 8
jb 0x65362a
mov edi, dword [edi]
mov eax, dword [ecx]
push 1
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push str.FileUtils
push 0x799430
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x1c
jmp 0x653705
push edi
mov edx, str.RemoveDirectoryFailed:
lea ecx, [ebp - 0x40]
call fcn.00457400
add esp, 4
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov eax, dword [esi + 4]
push ecx
cmp eax, dword [esi + 8]
je 0x65367d
mov ecx, eax
call fcn.00449230
add dword [esi + 4], 0x18
jmp 0x653685
push eax
mov ecx, esi
call fcn.00457540
cmp dword [0x87d0dc], 0
je 0x6536c4
cmp dword [edi + 0x14], 8
jb 0x653696
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 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x1e
call dword [0x87d0dc]
add esp, 0x20
jmp 0x6536fd
mov esi, dword [0x87d0e0]
test esi, esi
je 0x6536fd
cmp dword [edi + 0x14], 8
jb 0x6536d6
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 0x799430
push 0x1e
push dword [0x87d0e0]
call dword [esi + 0x34]
add esp, 0x1c
lea ecx, [ebp - 0x40]
call fcn.00426ce0
mov al, bl
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.006d0965
mov esp, ebp
pop ebp
ret