Function at 0x406f98
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.0040722b
mov ecx, esi
test cl, 8
jne 0x406fe8
mov edx, ecx
and edx, 4
mov dword [esp + 8], edx
test cl, 1
jne 0x407001
mov dword [esp + 4], eax
push 0x2000
push ebx
push 0x7eab94
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.004072e2
jmp 0x407034
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40b054]
cmp eax, 1
adc dword [ecx + 8], 0
jmp 0x4071f2
test cl, 2
je 0x40719c
test eax, eax
je 0x40719c
mov dword [esp + 4], eax
mov esi, 0x7eab94
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 0x407044
cmp word [0x7eab94], 0x5c
jne 0x407050
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 0x7eab94
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407187
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 0x4070a5
test ax, ax
je 0x40716d
cmp cx, 0x2e
jne 0x4070bd
cmp ax, 0x2e
jne 0x4070bd
cmp word [esp + 0x40], 0
je 0x40716d
push 0x2000
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x10], 0x10
jne 0x407103
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile___s__
call fcn.00407319
add esp, 8
mov esi, dword [esp + 8]
push esi
push ebp
call fcn.00406f1f
test eax, eax
je 0x40711f
push ebp
push 0xfffffffffffffff2
call fcn.00406939
jmp 0x407166
cmp dword [esp + 0xc], 3
jne 0x40716d
push dword [esp + 0x278]
push dword [esp + 0x278]
call fcn.00406f98
jmp 0x40716d
test esi, esi
jne 0x407141
push dword [esp + 0x274]
push str.Delete:_DeleteFile_failed___s__
call fcn.00407319
add esp, 8
mov eax, dword [0x40b054]
inc dword [eax + 8]
jmp 0x407166
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00407319
add esp, 8
push ebp
push 0xfffffffffffffff1
call fcn.00406939
push 0
push ebp
call fcn.00407358
mov esi, dword [esp]
lea ebp, [esp + 0x10]
push ebp
push edi
call ebx
test eax, eax
jne 0x40708c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
test al, 1
je 0x4071f2
mov word [esi - 2], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x4071dc
push ebx
call fcn.00407387
test eax, eax
je 0x4071f2
push ebx
call fcn.004073af
push ebx
push str.RMDir:_RemoveDirectory___s__
call fcn.00407319
add esp, 8
mov esi, dword [esp + 8]
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.00406f1f
test eax, eax
je 0x4071ff
push ebx
push 0xffffffffffffffe5
call fcn.00406939
jmp 0x4071f2
push ebx
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00407319
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 0x40720b
push ebx
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4071e2
push ebx
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00407319
add esp, 8
push ebx
push 0xfffffffffffffff1
call fcn.00406939
push 0
push ebx
call fcn.00407358
jmp 0x4071f2