Function at 0x406f90
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.00407223
mov ecx, esi
test cl, 8
jne 0x406fe0
mov edx, ecx
and edx, 4
mov dword [esp + 8], edx
test cl, 1
jne 0x406ff9
mov dword [esp + 4], eax
push 0x2000
push ebx
push 0x46c354
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.004072da
jmp 0x40702c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40b054]
cmp eax, 1
adc dword [ecx + 8], 0
jmp 0x4071ea
test cl, 2
je 0x407194
test eax, eax
je 0x407194
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 0x40703c
cmp word [0x46c354], 0x5c
jne 0x407048
push 0x40b4ae
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 0x40717f
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 0x40709d
test ax, ax
je 0x407165
cmp cx, 0x2e
jne 0x4070b5
cmp ax, 0x2e
jne 0x4070b5
cmp word [esp + 0x40], 0
je 0x407165
push 0x2000
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x10], 0x10
jne 0x4070fb
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile___s__
call fcn.00407311
add esp, 8
mov esi, dword [esp + 8]
push esi
push ebp
call fcn.00406f17
test eax, eax
je 0x407117
push ebp
push 0xfffffffffffffff2
call fcn.00406931
jmp 0x40715e
cmp dword [esp + 0xc], 3
jne 0x407165
push dword [esp + 0x278]
push dword [esp + 0x278]
call fcn.00406f90
jmp 0x407165
test esi, esi
jne 0x407139
push dword [esp + 0x274]
push str.Delete:_DeleteFile_failed___s__
call fcn.00407311
add esp, 8
mov eax, dword [0x40b054]
inc dword [eax + 8]
jmp 0x40715e
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00407311
add esp, 8
push ebp
push 0xfffffffffffffff1
call fcn.00406931
push 0
push ebp
call fcn.00407350
mov esi, dword [esp]
lea ebp, [esp + 0x10]
push ebp
push edi
call ebx
test eax, eax
jne 0x407084
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
test al, 1
je 0x4071ea
mov word [esi - 2], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x4071d4
push ebx
call fcn.0040737f
test eax, eax
je 0x4071ea
push ebx
call fcn.004073a7
push ebx
push str.RMDir:_RemoveDirectory___s__
call fcn.00407311
add esp, 8
mov esi, dword [esp + 8]
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.00406f17
test eax, eax
je 0x4071f7
push ebx
push 0xffffffffffffffe5
call fcn.00406931
jmp 0x4071ea
push ebx
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00407311
add esp, 8
mov eax, dword [0x40b054]
inc dword [eax + 8]
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jne 0x407203
push ebx
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4071da
push ebx
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00407311
add esp, 8
push ebx
push 0xfffffffffffffff1
call fcn.00406931
push 0
push ebx
call fcn.00407350
jmp 0x4071ea