Function at 0x10005970
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x24c
lea eax, [ebp - 0x668]
mov dword [ebp - 0x66c], 0
mov esi, ecx
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x674], esi
call fcn.101a01b0
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.101a01b0
add esp, 0x18
test esi, esi
je 0x10005cc3
test ebx, ebx
je 0x10005cc3
xor eax, eax
cmp ax, word [esi]
je 0x10005cc3
cmp ax, word [ebx]
je 0x10005cc3
mov ecx, ebx
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10005a18
test dx, dx
je 0x10005a14
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10005a18
add eax, 4
add ecx, 4
test dx, dx
jne 0x100059f2
xor eax, eax
jmp 0x10005a1d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10005cc3
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
call esi
test eax, eax
je 0x10005cc3
push edi
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x10005a51
mov ecx, ebx
call fcn.10005890
mov edi, eax
test edi, edi
je 0x10005acf
push 0x103
push dword [ebp - 0x674]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.101a7986
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea esi, [ebp - 0x210]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10005a86
push 3
push 0x102285e8
lea eax, [ebp - 0x210]
sub esi, ecx
push 0x104
push eax
sar esi, 1
call fcn.101a7aea
add esp, 0x10
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
jne 0x10005ae2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov ecx, 0x102285f0
lea eax, [ebp - 0x640]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10005b16
test dx, dx
je 0x10005b12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10005b16
add eax, 4
add ecx, 4
test dx, dx
jne 0x10005af0
xor eax, eax
jmp 0x10005b1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10005c6c
mov ecx, 0x102285f4
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10005b56
test dx, dx
je 0x10005b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10005b56
add eax, 4
add ecx, 4
test dx, dx
jne 0x10005b30
xor eax, eax
jmp 0x10005b5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10005c6c
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.101a01b0
lea eax, [esi + esi]
add esp, 0xc
cmp eax, 0x20a
jae 0x10005cd5
push 0x104
xor ecx, ecx
push ebx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x41c]
push 0x105
push eax
call fcn.101a7986
mov eax, 0x103
sub eax, esi
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.101a7aea
add esp, 0x20
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005be5
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x41c]
push 0x105
push eax
call fcn.101a7aea
mov eax, dword [ebp - 0x66c]
add esp, 0x10
and eax, 0xfffffff8
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x66c], 0x10
je 0x10005c50
lea edx, [ebp - 0x41c]
lea ecx, [ebp - 0x210]
call fcn.10005970
test eax, eax
jne 0x10005c6c
xor edi, edi
jmp 0x10005c6c
push 1
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10005ae2
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x674]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10005cb0
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret
call fcn.101a8017
int3