Function at 0x407dda
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00408112
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x407e0e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47ffe8], eax
jmp 0x408004
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x407e2c
test eax, eax
je 0x407f83
test byte [ebp + 0xc], 2
je 0x407f83
mov esi, 0x464810
push edi
push esi
call fcn.0040852e
test ebx, ebx
je 0x407e49
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x407e4f
push edi
call fcn.00408056
cmp word [edi], 0
jne 0x407e5f
cmp word [0x464810], 0x5c
jne 0x407e6a
push 0x40c4ec
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x407f78
lea eax, [ebp - 0x22c]
push 0x3f
push eax
lea esi, [ebp - 0x22c]
call fcn.00408037
xor ecx, ecx
cmp word [eax], cx
je 0x407eb1
cmp word [ebp - 0x24], cx
je 0x407eb1
lea esi, [ebp - 0x24]
cmp word [esi], 0x2e
jne 0x407ed4
mov ax, word [esi + 2]
cmp ax, cx
je 0x407f57
cmp ax, 0x2e
jne 0x407ed4
cmp word [esi + 4], cx
je 0x407f57
push esi
push ebx
call fcn.0040852e
test byte [ebp - 0x258], 0x10
je 0x407ef9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x407f57
push dword [ebp + 0xc]
push edi
call fcn.00407dda
jmp 0x407f57
push edi
push str.Delete:_DeleteFile___s__
call fcn.00408a36
pop ecx
pop ecx
push edi
call fcn.00408214
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
push edi
jne 0x407f50
test byte [ebp + 0xc], 4
je 0x407f3c
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00408a36
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00407812
push 0
push edi
call fcn.00408481
jmp 0x407f57
push str.Delete:_DeleteFile_failed___s__
call fcn.00408a36
inc dword [0x47ffe8]
pop ecx
pop ecx
jmp 0x407f57
push 0xfffffffffffffff2
call fcn.00407812
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407e8d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x407f83
and word [ebx - 2], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x408004
cmp dword [ebp - 8], esi
push edi
jne 0x407fa5
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00408a36
inc dword [0x47ffe8]
pop ecx
pop ecx
jmp 0x408004
call fcn.00408a67
test eax, eax
je 0x408004
push edi
call fcn.0040800a
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00408a36
pop ecx
pop ecx
push edi
call fcn.00408214
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edi
jne 0x407ffd
test byte [ebp + 0xc], 4
je 0x407ff6
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00408a36
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00407812
push esi
push edi
call fcn.00408481
jmp 0x408004
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x407f96
push 0xffffffffffffffe5
call fcn.00407812
pop edi
pop esi
leave
ret 8