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

Disassembly:
push ebp
lea ebp, [esp - 0x3024]
mov eax, 0x3024
call fcn.00414690
push 0xffffffffffffffff
push 0x43183e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x3020], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x3030]
mov ebx, dword [ebp + 0x302c]
xor edi, edi
inc edi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x3034]
push 0x43448c
push ebx
mov dword [ebp - 0x18], eax
call fcn.00415051
add esp, 0xc
test eax, eax
je 0x406b7e
push ebx
call fcn.00414100
pop ecx
test eax, eax
je 0x406b7e
push ebx
push 0x434508
call fcn.0040ff78
push ebx
call fcn.00414100
add esp, 0xc
test eax, eax
je 0x406b7e
lea eax, [ebp + 0x140]
push ebx
push eax
call fcn.00414580
lea eax, [ebp + 0x140]
push eax
call fcn.00414100
add esp, 0xc
cmp byte [ebp + eax + 0x140], 0x5c
je 0x4069fa
lea eax, [ebp + 0x140]
push 0x4343f8
push eax
call fcn.00414590
pop ecx
pop ecx
lea eax, [ebp + 0x140]
push 0x434504
push eax
call fcn.00414590
pop ecx
pop ecx
lea eax, [ebp]
push eax
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x406b7e
lea eax, [ebp + 0x2c]
push 0x43448c
push eax
call fcn.00415ec0
pop ecx
pop ecx
test eax, eax
je 0x406b60
lea eax, [ebp + 0x2c]
push 0x434500
push eax
call fcn.00415ec0
pop ecx
pop ecx
test eax, eax
je 0x406b60
lea eax, [ebp + 0x18b0]
push ebx
push eax
call fcn.00414580
lea eax, [ebp + 0x18b0]
push eax
call fcn.00414100
add esp, 0xc
cmp byte [ebp + eax + 0x18b0], 0x5c
je 0x406a93
lea eax, [ebp + 0x18b0]
push 0x4343f8
push eax
call fcn.00414590
pop ecx
pop ecx
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x18b0]
push eax
call fcn.00414590
test byte [ebp], 0x10
pop ecx
pop ecx
lea eax, [ebp + 0x18b0]
jbe 0x406b18
push dword [ebp + 0x3038]
push eax
push str.attempting_to_remove__S___d_
call fcn.0040ff78
mov eax, dword [ebp + 0x3038]
add esp, 0xc
test eax, eax
jle 0x406ae6
dec eax
push eax
push dword [ebp - 0x18]
lea eax, [ebp + 0x18b0]
push dword [ebp - 0x14]
push eax
call fcn.00406928
add esp, 0x10
lea eax, [ebp + 0x18b0]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406b60
lea eax, [ebp + 0x18b0]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402f86
mov ecx, dword [ebp - 0x18]
and dword [ebp - 4], 0
push eax
call fcn.0040475a
lea ecx, [ebp - 0x34]
jmp 0x406b54
push eax
push str.attempting_to_delete__S
call fcn.0040ff78
pop ecx
pop ecx
lea eax, [ebp + 0x18b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406b60
lea eax, [ebp + 0x18b0]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402f86
mov ecx, dword [ebp - 0x14]
push eax
mov dword [ebp - 4], edi
call fcn.0040475a
lea ecx, [ebp - 0x50]
or dword [ebp - 4], 0xffffffff
push 0
push edi
call fcn.00402991
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406a2a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp + 0x3020]
xor ecx, ebp
call fcn.00414678
add ebp, 0x3024
leave
ret