Function at 0x40713f
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.004073d2
mov ecx, esi
test cl, 8
jne 0x40718f
mov edx, ecx
and edx, 4
mov dword [esp + 8], edx
test cl, 1
jne 0x4071a8
mov dword [esp + 4], eax
push 0x2000
push ebx
push 0x468374
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.00407489
jmp 0x4071db
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40b114]
cmp eax, 1
adc dword [ecx + 8], 0
jmp 0x407399
test cl, 2
je 0x407343
test eax, eax
je 0x407343
mov dword [esp + 4], eax
mov esi, 0x468374
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 0x4071eb
cmp word [0x468374], 0x5c
jne 0x4071f7
push 0x40b56e
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 0x468374
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40732e
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 0x40724c
test ax, ax
je 0x407314
cmp cx, 0x2e
jne 0x407264
cmp ax, 0x2e
jne 0x407264
cmp word [esp + 0x40], 0
je 0x407314
push 0x2000
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x10], 0x10
jne 0x4072aa
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile___s__
call fcn.004074c0
add esp, 8
mov esi, dword [esp + 8]
push esi
push ebp
call fcn.004070c6
test eax, eax
je 0x4072c6
push ebp
push 0xfffffffffffffff2
call fcn.00406b09
jmp 0x40730d
cmp dword [esp + 0xc], 3
jne 0x407314
push dword [esp + 0x278]
push dword [esp + 0x278]
call fcn.0040713f
jmp 0x407314
test esi, esi
jne 0x4072e8
push dword [esp + 0x274]
push str.Delete:_DeleteFile_failed___s__
call fcn.004074c0
add esp, 8
mov eax, dword [0x40b114]
inc dword [eax + 8]
jmp 0x40730d
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004074c0
add esp, 8
push ebp
push 0xfffffffffffffff1
call fcn.00406b09
push 0
push ebp
call fcn.004074ff
mov esi, dword [esp]
lea ebp, [esp + 0x10]
push ebp
push edi
call ebx
test eax, eax
jne 0x407233
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
test al, 1
je 0x407399
mov word [esi - 2], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x407383
push ebx
call fcn.0040752e
test eax, eax
je 0x407399
push ebx
call fcn.00407556
push ebx
push str.RMDir:_RemoveDirectory___s__
call fcn.004074c0
add esp, 8
mov esi, dword [esp + 8]
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.004070c6
test eax, eax
je 0x4073a6
push ebx
push 0xffffffffffffffe5
call fcn.00406b09
jmp 0x407399
push ebx
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004074c0
add esp, 8
mov eax, dword [0x40b114]
inc dword [eax + 8]
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jne 0x4073b2
push ebx
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x407389
push ebx
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004074c0
add esp, 8
push ebx
push 0xfffffffffffffff1
call fcn.00406b09
push 0
push ebx
call fcn.004074ff
jmp 0x407399