Function at 0x6102b0
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 0x7058b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x82f084]
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 ebx, edx
mov edi, ecx
push 0x75c10c
call fcn.00439470
test al, al
je 0x610361
mov esi, dword [0x855a98]
test esi, esi
je 0x610329
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x18
xor al, al
jmp 0x6108b9
mov eax, dword [0x855a9c]
test eax, eax
je 0x610458
mov esi, dword [eax]
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push str.FileUtils
push 0x75c10c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x28
push eax
call dword [0x74835c]
call esi
add esp, 0x14
xor al, al
jmp 0x6108b9
mov ecx, edi
call fcn.00610070
test al, al
je 0x6103cb
mov esi, dword [0x855a98]
test esi, esi
je 0x6103ae
cmp dword [edi + 0x14], 8
jb 0x61037e
mov edi, dword [edi]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x1c
xor al, al
jmp 0x6108b9
mov eax, dword [0x855a9c]
test eax, eax
je 0x610458
cmp dword [edi + 0x14], 8
jb 0x6103c3
mov edi, dword [edi]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
jmp 0x610439
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6103d5
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x61045f
mov esi, dword [0x855a98]
test esi, esi
je 0x610422
cmp dword [edi + 0x14], 8
jb 0x6103f2
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x1c
xor al, al
jmp 0x6108b9
mov eax, dword [0x855a9c]
test eax, eax
je 0x610458
cmp dword [edi + 0x14], 8
jb 0x610433
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
mov esi, dword [eax]
push str.FileUtils
push 0x75c10c
push 0x28
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
call dword [0x74835c]
call esi
add esp, 0x18
xor al, al
jmp 0x6108b9
push edi
lea ecx, [ebp - 0x28]
call fcn.0042fc50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 1
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x76944c
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0042fe00
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0060f9d0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0042fd70
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 - 0x298], eax
cmp eax, 0xffffffff
je 0x61067d
mov esi, eax
nop dword [eax + eax]
push str..__
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x610660
push 0x7d2800
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x610660
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x610531
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x610525
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.0042fe00
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
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x610550
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0042fe00
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0060f9d0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0042fd70
test byte [ebp - 0x290], 0x10
je 0x6105b3
push 1
push 0
push 0
push 1
push 1
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.006102b0
add esp, 0x14
jmp 0x610660
push ecx
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00611290
add esp, 4
test al, al
jne 0x610660
mov esi, dword [0x855a98]
test esi, esi
je 0x610604
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
push str.File__s_failed_to_delete
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x28
call dword [0x74835c]
call esi
add esp, 0x18
jmp 0x610639
mov ecx, dword [0x855a9c]
test ecx, ecx
je 0x610639
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [ecx]
cmovae eax, dword [ebp - 0x28]
push eax
push str.FileUtils
mov esi, dword [esi + 0x34]
push str.File__s_failed_to_delete
push 0x28
push ecx
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x14
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [ebx + 8]
je 0x610652
mov ecx, eax
call fcn.0042fc50
add dword [ebx + 4], 0x18
jmp 0x61065a
push eax
mov ecx, ebx
call fcn.00449db0
mov esi, dword [ebp - 0x298]
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x6104e0
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x610696
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x610737
mov esi, dword [0x855a98]
test esi, esi
je 0x6106e8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6106bc
mov eax, dword [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 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x20
jmp 0x610721
mov eax, dword [0x855a9c]
test eax, eax
je 0x610721
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x6106fb
mov edx, dword [edi]
mov esi, dword [eax]
push ecx
push edx
push str.Directory__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.FileUtils
push 0x75c10c
push 0x14
push eax
call dword [0x74835c]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x61072b
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x610741
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne byte [ebp - 0x291]
test eax, eax
je 0x6107e6
cmp byte [ebp + 0x14], 0
je 0x6108b3
mov esi, dword [0x855a98]
test esi, esi
je 0x6107a5
cmp dword [edi + 0x14], 8
jb 0x610775
mov edi, dword [edi]
push 1
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x20
jmp 0x6108b3
mov eax, dword [0x855a9c]
test eax, eax
je 0x6108b3
cmp dword [edi + 0x14], 8
jb 0x6107ba
mov edi, dword [edi]
mov esi, dword [eax]
push 1
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.FileUtils
push 0x75c10c
push 0x1e
push eax
call dword [0x74835c]
call esi
add esp, 0x1c
jmp 0x6108b3
push edi
mov edx, str.RemoveDirectoryFailed:
lea ecx, [ebp - 0x40]
call fcn.00439e80
add esp, 4
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov eax, dword [ebx + 4]
push ecx
cmp eax, dword [ebx + 8]
je 0x610817
mov ecx, eax
call fcn.0042fc50
add dword [ebx + 4], 0x18
jmp 0x61081f
push eax
mov ecx, ebx
call fcn.00449db0
cmp dword [0x855a98], 0
je 0x610868
cmp dword [edi + 0x14], 8
jb 0x610830
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x855a98]
mov ecx, esi
push eax
push edi
push str.Failed_to_remove_directory__s_Error__d
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x1e
call dword [0x74835c]
call esi
add esp, 0x20
jmp 0x6108ab
mov esi, dword [0x855a9c]
test esi, esi
je 0x6108ab
cmp dword [edi + 0x14], 8
jb 0x61087a
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_remove_directory__s_Error__d
push str.FileUtils
push 0x75c10c
push 0x1e
push dword [0x855a9c]
call dword [0x74835c]
call esi
add esp, 0x1c
lea ecx, [ebp - 0x40]
call fcn.0042fd70
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.0067d681
mov esp, ebp
pop ebp
ret