Function at 0x40684a
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.004066a3
mov dword [esp + 0x18], eax
test bl, 8
je 0x40688c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x453dc8], eax
jmp 0x406a7d
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x4068a9
test eax, eax
je 0x406a09
test bl, 2
je 0x406a05
push esi
push 0x444da0
call fcn.00406cb4
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4068cc
push str..
push 0x444da0
call ebp
jmp 0x4068d2
push esi
call fcn.00406e18
cmp byte [esi], 0
jne 0x4068e0
cmp byte [0x444da0], 0x5c
jne 0x4068e8
push 0x4096c4
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 0x444da0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4069f6
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00406666
cmp byte [eax], 0
je 0x40693a
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x406955
mov al, byte [ebp + 1]
test al, al
je 0x4069d1
cmp al, 0x2e
jne 0x406955
cmp byte [ebp + 2], 0
je 0x4069d1
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00406cb4
test byte [esp + 0x20], 0x10
je 0x406979
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4069d5
push ebx
push esi
call fcn.0040684a
jmp 0x4069d5
push esi
push str.Delete:_DeleteFile___s__
call fcn.0040671c
pop ecx
pop ecx
push edi
push esi
call fcn.004065f5
push esi
test eax, eax
jne 0x4069c8
test edi, edi
je 0x4069b4
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040671c
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405cc5
push 0
push esi
call fcn.004061cc
jmp 0x4069d5
push str.Delete:_DeleteFile_failed___s__
call fcn.0040671c
inc dword [0x453dc8]
pop ecx
pop ecx
jmp 0x4069d5
push 0xfffffffffffffff2
call fcn.00405cc5
jmp 0x4069d5
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 0x406913
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x406a7c
mov eax, dword [esp + 0x1c]
mov byte [ebp - 1], 0
test eax, eax
jne 0x406a11
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x406a66
push esi
call fcn.0040663f
test eax, eax
je 0x406a7c
push esi
call fcn.004065c8
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040671c
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004065f5
push esi
test eax, eax
jne 0x406a75
test edi, edi
je 0x406a61
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040671c
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405cc5
push 0
push esi
call fcn.004061cc
jmp 0x406a7c
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.0040671c
inc dword [0x453dc8]
pop ecx
pop ecx
jmp 0x406a7c
push 0xffffffffffffffe5
call fcn.00405cc5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8