Function at 0x49d060
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 0x5f3dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x67d070]
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 0x49d0a3
mov eax, dword [edi]
jmp 0x49d0a5
mov eax, edi
push 0
push 0x622628
push dword [edi + 0x10]
push eax
call fcn.00408ed0
add esp, 0x10
test eax, eax
jne 0x49d140
test ebx, ebx
je 0x49d0e5
mov eax, dword [ebx]
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push str.FileUtils
push 0x622628
push 0x28
push ebx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
jmp 0x49d717
mov eax, dword [0x689958]
test eax, eax
je 0x49d115
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x18
xor al, al
jmp 0x49d717
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x49d139
mov eax, dword [ecx]
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push str.FileUtils
push 0x622628
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
jmp 0x49d717
mov ecx, edi
call fcn.0049ce50
test al, al
je 0x49d1ea
test ebx, ebx
je 0x49d17d
cmp dword [edi + 0x14], 8
jb 0x49d15b
mov edi, dword [edi]
mov eax, dword [ebx]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
push str.FileUtils
push 0x622628
push 0x28
push ebx
call dword [eax + 0x34]
add esp, 0x18
xor al, al
jmp 0x49d717
mov eax, dword [0x689958]
test eax, eax
je 0x49d1b6
cmp dword [edi + 0x14], 8
jb 0x49d18e
mov edi, dword [edi]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
push 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x1c
xor al, al
jmp 0x49d717
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x49d1e3
cmp dword [edi + 0x14], 8
jb 0x49d1c8
mov edi, dword [edi]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
mov eax, dword [ecx]
push str.FileUtils
push 0x622628
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor al, al
jmp 0x49d717
cmp dword [edi + 0x14], 8
jb 0x49d1f4
mov eax, dword [edi]
jmp 0x49d1f6
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x49d28d
test ebx, ebx
je 0x49d233
cmp dword [edi + 0x14], 8
jb 0x49d211
mov edi, dword [edi]
mov eax, dword [ebx]
push edi
push str.Directory_to_delete_not_present_at_location__s
push str.FileUtils
push 0x622628
push 0x28
push ebx
call dword [eax + 0x34]
add esp, 0x18
xor al, al
jmp 0x49d717
mov eax, dword [0x689958]
test eax, eax
je 0x49d26c
cmp dword [edi + 0x14], 8
jb 0x49d244
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
push 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x28
call eax
add esp, 0x1c
xor al, al
jmp 0x49d717
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x49d1e3
cmp dword [edi + 0x14], 8
jb 0x49d282
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
jmp 0x49d1ce
cmp byte [ebp + 8], 0
je 0x49d48d
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.00407550
push 0x623258
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00406e60
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0049c840
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406e20
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 0x49d47e
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
nop dword [eax + eax]
push 0x61b9c8
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x49d457
push 0x623260
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x49d457
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x49d35f
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00407550
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406e60
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0049c840
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406e20
test byte [ebp - 0x290], 0x10
lea ecx, [ebp - 0x28]
je 0x49d3b5
mov edx, dword [ebp - 0x298]
push 0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049d060
add esp, 0x10
jmp 0x49d457
mov dl, byte [ebp + 0xc]
push ebx
call fcn.0049de10
add esp, 4
test al, al
jne 0x49d457
test ebx, ebx
je 0x49d3ea
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 0x49d442
mov ecx, dword [0x689958]
test ecx, ecx
je 0x49d41d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.File__s_failed_to_delete
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x28
call ecx
add esp, 0x18
jmp 0x49d448
mov edx, dword [0x68995c]
test edx, edx
je 0x49d448
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.0041f820
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x49d320
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00406e20
cmp byte [ebp + 0xc], 0
je 0x49d561
cmp dword [edi + 0x14], 8
jb 0x49d4a1
mov eax, dword [edi]
jmp 0x49d4a3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x49d561
test ebx, ebx
je 0x49d4dd
cmp dword [edi + 0x14], 8
jb 0x49d4c3
mov edx, dword [edi]
jmp 0x49d4c5
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 0x622628
push 0x14
push ebx
jmp 0x49d543
mov edx, dword [0x689958]
test edx, edx
je 0x49d517
cmp dword [edi + 0x14], 8
jb 0x49d4f1
mov eax, dword [edi]
jmp 0x49d4f3
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 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x14
call edx
add esp, 0x20
jmp 0x49d549
mov edx, dword [0x68995c]
test edx, edx
je 0x49d549
cmp dword [edi + 0x14], 8
jb 0x49d52b
mov esi, dword [edi]
jmp 0x49d52d
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 0x622628
push 0x14
push edx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [edi + 0x14], 8
jb 0x49d553
mov eax, dword [edi]
jmp 0x49d555
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x49d56b
mov eax, dword [edi]
jmp 0x49d56d
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 0x49d640
cmp byte [ebp + 0x14], 0
je 0x49d711
test ebx, ebx
je 0x49d5c4
cmp dword [edi + 0x14], 8
jb 0x49d59d
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 0x622628
push 0x1e
push ebx
call dword [ecx + 0x34]
add esp, 0x1c
jmp 0x49d711
mov ecx, dword [0x689958]
test ecx, ecx
je 0x49d603
cmp dword [edi + 0x14], 8
jb 0x49d5d6
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 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x1e
call ecx
add esp, 0x20
jmp 0x49d711
mov edx, dword [0x68995c]
test edx, edx
je 0x49d711
cmp dword [edi + 0x14], 8
jb 0x49d619
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 0x622628
push 0x1e
push edx
call dword [ecx + 0x34]
add esp, 0x1c
jmp 0x49d711
push edi
mov edx, str.RemoveDirectoryFailed:
lea ecx, [ebp - 0x40]
call fcn.0042b470
add esp, 4
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 3
call fcn.0041f820
test ebx, ebx
je 0x49d691
cmp dword [edi + 0x14], 8
jb 0x49d673
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 0x622628
push 0x1e
push ebx
jmp 0x49d703
cmp dword [0x689958], 0
je 0x49d6d0
cmp dword [edi + 0x14], 8
jb 0x49d6a2
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 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x1e
call dword [0x689958]
add esp, 0x20
jmp 0x49d709
mov esi, dword [0x68995c]
test esi, esi
je 0x49d709
cmp dword [edi + 0x14], 8
jb 0x49d6e2
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 0x622628
push 0x1e
push dword [0x68995c]
call dword [esi + 0x34]
add esp, 0x1c
lea ecx, [ebp - 0x40]
call fcn.00406e20
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.00599c70
mov esp, ebp
pop ebp
ret