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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x1023d420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x870], eax
test eax, eax
je 0x10033fe1
push ebx
push edi
push eax
call fcn.10094dc6
mov edi, eax
pop ecx
test edi, edi
je 0x10033fdd
mov ebx, 0x104
cmp edi, ebx
jae 0x10033fdd
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.100947e0
push edi
push dword [ebp - 0x870]
lea eax, [ebp - 0x414]
push eax
call fcn.10094d7c
lea eax, [ebp + edi*2 - 0x414]
add esp, 0x18
cmp word [eax - 2], 0x5c
je 0x10033e02
push 0x5c
pop ecx
mov word [eax], cx
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
xor edi, edi
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.100947e0
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.10094d7c
lea eax, [ebp - 0x61c]
push 0x101ddcfc
push eax
call fcn.10094d03
push 0x24c
lea eax, [ebp - 0x868]
push edi
push eax
mov dword [ebp - 0x86c], edi
call fcn.100947e0
add esp, 0x2c
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x874], eax
cmp eax, 0xffffffff
je 0x10033fce
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.100947e0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100947e0
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10094d7c
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10094d03
add esp, 0x20
test byte [ebp - 0x86c], 0x10
je 0x10033f35
lea eax, [ebp - 0x840]
push 0x101de274
push eax
call fcn.10094faf
pop ecx
pop ecx
test eax, eax
je 0x10033fa7
lea eax, [ebp - 0x840]
push 0x101de278
push eax
call fcn.10094faf
pop ecx
pop ecx
test eax, eax
je 0x10033fa7
cmp dword [ebp + 0xc], edi
je 0x10033fa7
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push dword [ebp + 0x10]
push 1
push eax
call fcn.10033d77
add esp, 0x10
jmp 0x10033fa7
cmp dword [ebp + 0x14], edi
je 0x10033f7a
test byte [ebp + 0x14], 1
je 0x10033f5a
push 7
lea eax, [ebp - 0x840]
push str.Backup_
push eax
call fcn.100959d3
add esp, 0xc
test eax, eax
je 0x10033fa7
test byte [ebp + 0x14], 2
je 0x10033f7a
push 7
lea eax, [ebp - 0x840]
push str.Delete_
push eax
call fcn.100959d3
add esp, 0xc
test eax, eax
je 0x10033fa7
cmp dword [ebp + 0x10], edi
je 0x10033f9a
mov eax, dword [ebp - 0x86c]
test al, 1
je 0x10033f9a
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10033e98
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
jmp 0x10033fdf
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100946c1
leave
ret