Function at 0x406730
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.0040658d
mov dword [esp + 0x10], eax
test bl, 8
je 0x406772
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4480c8], eax
jmp 0x406963
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x1c], ebp
je 0x40678f
test eax, eax
je 0x4068e8
test bl, 2
je 0x4068e8
push esi
push 0x43a238
call fcn.00406b7d
test ebp, ebp
je 0x4067b0
push str..
push 0x43a238
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4067b6
push esi
call fcn.00406ce3
cmp byte [esi], 0
jne 0x4067c4
cmp byte [0x43a238], 0x5c
jne 0x4067d0
push 0x4086ac
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
push 0x43a238
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x4068d8
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00406550
cmp byte [eax], 0
je 0x406821
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x40683c
mov al, byte [ebp + 1]
test al, al
je 0x4068b5
cmp al, 0x2e
jne 0x40683c
cmp byte [ebp + 2], 0
je 0x4068b5
push ebp
push dword [esp + 0x14]
call fcn.00406b7d
test byte [esp + 0x20], 0x10
je 0x40685f
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4068b5
push ebx
push esi
call fcn.00406730
jmp 0x4068b5
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406606
pop ecx
pop ecx
push edi
push esi
call fcn.004064df
push esi
test eax, eax
jne 0x4068ae
test edi, edi
je 0x40689a
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406606
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405d76
push 0
push esi
call fcn.00406206
jmp 0x4068b5
push str.Delete:_DeleteFile_failed___s__
call fcn.00406606
inc dword [0x4480c8]
pop ecx
pop ecx
jmp 0x4068b5
push 0xfffffffffffffff2
call fcn.00405d76
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4067fa
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4068e4
mov eax, dword [esp + 0x10]
mov byte [eax - 1], 0
mov eax, dword [esp + 0x14]
test ebp, ebp
pop ebp
je 0x406963
push esi
test eax, eax
jne 0x4068f9
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x40694d
call fcn.00406529
test eax, eax
je 0x406963
push esi
call fcn.004064b2
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406606
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004064df
push esi
test eax, eax
jne 0x40695c
test edi, edi
je 0x406948
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406606
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405d76
push 0
push esi
call fcn.00406206
jmp 0x406963
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406606
inc dword [0x4480c8]
pop ecx
pop ecx
jmp 0x406963
push 0xffffffffffffffe5
call fcn.00405d76
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8