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

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406f58
mov dword [esp + 0x18], eax
test bl, 8
je 0x40713f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4470e8], eax
jmp 0x40732f
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x40715c
test eax, eax
je 0x4072bb
test bl, 2
je 0x4072c3
push esi
push 0x439250
call fcn.00407560
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40717f
push str..
push 0x439250
call ebp
jmp 0x407185
push esi
call fcn.00407757
cmp byte [esi], 0
jne 0x407193
cmp byte [0x439250], 0x5c
jne 0x40719b
push 0x4096c0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x439250
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4072a9
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00406f1b
cmp byte [eax], 0
je 0x4071ed
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x407208
mov al, byte [ebp + 1]
test al, al
je 0x407284
cmp al, 0x2e
jne 0x407208
cmp byte [ebp + 2], 0
je 0x407284
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00407560
test byte [esp + 0x20], 0x10
je 0x40722c
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x407288
push ebx
push esi
call fcn.004070fd
jmp 0x407288
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406fd1
pop ecx
pop ecx
push edi
push esi
call fcn.00406eaa
push esi
test eax, eax
jne 0x40727b
test edi, edi
je 0x407267
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406fd1
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406540
push 0
push esi
call fcn.00406a84
jmp 0x407288
push str.Delete:_DeleteFile_failed___s__
call fcn.00406fd1
inc dword [0x4470e8]
pop ecx
pop ecx
jmp 0x407288
push 0xfffffffffffffff2
call fcn.00406540
jmp 0x407288
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4071c6
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x40732e
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
jne 0x4072c3
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x407318
push esi
call fcn.00406ef4
test eax, eax
je 0x40732e
push esi
call fcn.00406e7d
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406fd1
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406eaa
push esi
test eax, eax
jne 0x407327
test edi, edi
je 0x407313
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406fd1
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406540
push 0
push esi
call fcn.00406a84
jmp 0x40732e
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406fd1
inc dword [0x4470e8]
pop ecx
pop ecx
jmp 0x40732e
push 0xffffffffffffffe5
call fcn.00406540
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8