Function at 0x501060
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 0x59f53e
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x60a070]
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 - 0x27c], edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov edi, dword [ebp + 0x10]
jb 0x5010a3
mov eax, dword [esi]
jmp 0x5010a5
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x50114f
test edi, edi
je 0x5010e2
cmp dword [esi + 0x14], 8
jb 0x5010c0
mov esi, dword [esi]
mov eax, dword [edi]
push esi
push str.Directory_to_delete_not_present_at_location__s
push str.FileUtils
push 0x5c0ec0
push 0x28
push edi
call dword [eax + 0x34]
add esp, 0x18
xor al, al
jmp 0x5014b0
mov eax, dword [0x615408]
test eax, eax
je 0x50111b
cmp dword [esi + 0x14], 8
jb 0x5010f3
mov esi, dword [esi]
push esi
push str.Directory_to_delete_not_present_at_location__s
push 0x5c0ec0
push 0x5c0ec0
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x1c
xor al, al
jmp 0x5014b0
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x501148
cmp dword [esi + 0x14], 8
jb 0x50112d
mov esi, dword [esi]
mov eax, dword [ecx]
push esi
push str.Directory_to_delete_not_present_at_location__s
push str.FileUtils
push 0x5c0ec0
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor al, al
jmp 0x5014b0
cmp byte [ebp + 8], 0
je 0x501315
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00414130
push 0x5c0e88
lea ecx, [ebp - 0x298]
mov dword [ebp - 4], 0
call fcn.00413890
push ecx
lea edx, [ebp - 0x298]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00500ee0
mov byte [ebp - 4], 0
add esp, 4
mov eax, dword [ebp - 0x284]
cmp eax, 8
jb 0x5011c8
inc eax
lea ecx, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
call fcn.00414580
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
je 0x5012e5
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
nop word [eax + eax]
push 0x5c0e90
lea eax, [ebp - 0x24c]
push eax
call ebx
test eax, eax
je 0x5012be
push 0x5c0e94
lea eax, [ebp - 0x24c]
push eax
call ebx
test eax, eax
je 0x5012be
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x50123f
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00414130
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x298]
call fcn.00413890
push ecx
lea edx, [ebp - 0x298]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00500ee0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x298]
call fcn.004137d0
test byte [ebp - 0x278], 0x10
lea ecx, [ebp - 0x28]
je 0x50129b
mov edx, dword [ebp - 0x27c]
push 0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00501060
add esp, 0x10
jmp 0x5012be
mov dl, byte [ebp + 0xc]
push edi
call fcn.00501b70
add esp, 4
test al, al
jne 0x5012be
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push 0
push eax
call fcn.00414130
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x501200
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x501301
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00414580
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp byte [ebp + 0xc], 0
je 0x5013e9
cmp dword [esi + 0x14], 8
jb 0x501329
mov eax, dword [esi]
jmp 0x50132b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x5013e9
test edi, edi
je 0x501365
cmp dword [esi + 0x14], 8
jb 0x50134b
mov edx, dword [esi]
jmp 0x50134d
mov edx, esi
mov eax, dword [edi]
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 0x5c0ec0
push 0x14
push edi
jmp 0x5013cb
mov edx, dword [0x615408]
test edx, edx
je 0x50139f
cmp dword [esi + 0x14], 8
jb 0x501379
mov eax, dword [esi]
jmp 0x50137b
mov eax, esi
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 0x5c0ec0
push 0x5c0ec0
push str.FileUtils
push str.OOBEUtils
push 0x14
call edx
add esp, 0x20
jmp 0x5013d1
mov edx, dword [0x61540c]
test edx, edx
je 0x5013d1
cmp dword [esi + 0x14], 8
jb 0x5013b3
mov ebx, dword [esi]
jmp 0x5013b5
mov ebx, esi
mov eax, dword [edx]
push ecx
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 0x5c0ec0
push 0x14
push edx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [esi + 0x14], 8
jb 0x5013db
mov eax, dword [esi]
jmp 0x5013dd
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x5013f3
mov eax, dword [esi]
jmp 0x5013f5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
je 0x5014ae
cmp byte [ebp + 0x14], 0
je 0x5014ae
test edi, edi
je 0x50143e
cmp dword [esi + 0x14], 8
jb 0x501420
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
movzx eax, al
push eax
push esi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push str.FileUtils
push 0x5c0ec0
push 0x1e
push edi
jmp 0x5014a8
mov ecx, dword [0x615408]
test ecx, ecx
je 0x50147a
cmp dword [esi + 0x14], 8
jb 0x501450
mov esi, dword [esi]
mov eax, dword [ebp + 8]
movzx eax, al
push eax
push esi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push 0x5c0ec0
push 0x5c0ec0
push str.FileUtils
push str.OOBEUtils
push 0x1e
call ecx
add esp, 0x20
jmp 0x5014ae
mov edx, dword [0x61540c]
test edx, edx
je 0x5014ae
cmp dword [esi + 0x14], 8
jb 0x50148c
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [edx]
movzx eax, al
push eax
push esi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push str.FileUtils
push 0x5c0ec0
push 0x1e
push edx
call dword [ecx + 0x34]
add esp, 0x1c
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.0055eeb4
mov esp, ebp
pop ebp
ret