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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x260
mov esi, dword [esp + 0x278]
mov ebx, dword [esp + 0x274]
push ebx
call fcn.0040719e
mov ecx, esi
test cl, 8
jne 0x406f5b
mov edx, ecx
and edx, 4
mov dword [esp + 8], edx
test cl, 1
jne 0x406f74
mov dword [esp + 4], eax
push 0x2000
push ebx
push 0x46c354
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.00407255
jmp 0x406fa7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40b044]
cmp eax, 1
adc dword [ecx + 8], 0
jmp 0x407165
test cl, 2
je 0x40710f
test eax, eax
je 0x40710f
mov dword [esp + 4], eax
mov esi, 0x46c354
push 0x2000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str..
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebx], 0
jne 0x406fb7
cmp word [0x46c354], 0x5c
jne 0x406fc3
push 0x40b402
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + eax*2]
lea ebp, [esp + 0x10]
push ebp
push 0x46c354
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4070fa
mov edi, eax
mov eax, dword [esp + 0x278]
and eax, 3
mov dword [esp + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp], esi
movzx ecx, word [esp + 0x3c]
movzx eax, word [esp + 0x3e]
cmp cx, 0x2e
jne 0x407018
test ax, ax
je 0x4070e0
cmp cx, 0x2e
jne 0x407030
cmp ax, 0x2e
jne 0x407030
cmp word [esp + 0x40], 0
je 0x4070e0
push 0x2000
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x10], 0x10
jne 0x407076
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile___s__
call fcn.0040728c
add esp, 8
mov esi, dword [esp + 8]
push esi
push ebp
call fcn.00406e92
test eax, eax
je 0x407092
push ebp
push 0xfffffffffffffff2
call fcn.004068cc
jmp 0x4070d9
cmp dword [esp + 0xc], 3
jne 0x4070e0
push dword [esp + 0x278]
push dword [esp + 0x278]
call fcn.00406f0b
jmp 0x4070e0
test esi, esi
jne 0x4070b4
push dword [esp + 0x274]
push str.Delete:_DeleteFile_failed___s__
call fcn.0040728c
add esp, 8
mov eax, dword [0x40b044]
inc dword [eax + 8]
jmp 0x4070d9
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040728c
add esp, 8
push ebp
push 0xfffffffffffffff1
call fcn.004068cc
push 0
push ebp
call fcn.004072cb
mov esi, dword [esp]
lea ebp, [esp + 0x10]
push ebp
push edi
call ebx
test eax, eax
jne 0x406fff
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
test al, 1
je 0x407165
mov word [esi - 2], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x40714f
push ebx
call fcn.004072fa
test eax, eax
je 0x407165
push ebx
call fcn.00407322
push ebx
push str.RMDir:_RemoveDirectory___s__
call fcn.0040728c
add esp, 8
mov esi, dword [esp + 8]
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.00406e92
test eax, eax
je 0x407172
push ebx
push 0xffffffffffffffe5
call fcn.004068cc
jmp 0x407165
push ebx
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040728c
add esp, 8
mov eax, dword [0x40b044]
inc dword [eax + 8]
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jne 0x40717e
push ebx
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x407155
push ebx
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040728c
add esp, 8
push ebx
push 0xfffffffffffffff1
call fcn.004068cc
push 0
push ebx
call fcn.004072cb
jmp 0x407165