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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00407c5e
push ecx
test byte [ebp + 0xc], 8
je 0x40803b
mov esi, dword [0x4307c4]
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
push edx
test eax, eax
sete al
movzx eax, al
add esi, eax
mov dword [0x4307c4], esi
jmp 0x408290
mov edi, eax
mov eax, dword [ebp + 0xc]
and eax, 1
mov dword [ebp - 0x15c], eax
je 0x40805e
test edi, edi
jne 0x408054
jmp 0x408276
test byte [ebp + 0xc], 2
je 0x408220
mov dword [esp + 4], ebx
mov dword [esp], 0x42dcb8
call fcn.004077f4
push eax
push eax
cmp dword [ebp - 0x15c], 0
je 0x408091
mov dword [esp + 4], str..
mov dword [esp], 0x42dcb8
call fcn.00407824
push eax
push eax
jmp 0x40809a
mov dword [esp], ebx
call fcn.00407428
push eax
cmp byte [ebx], 0
jne 0x4080a8
cmp byte [0x42dcb8], 0x5c
jne 0x4080ba
mov dword [esp + 4], 0x40b384
mov dword [esp], ebx
call fcn.00407824
push eax
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
push ecx
add eax, ebx
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], 0x42dcb8
call sub.KERNEL32.dll_FindFirstFileA
push esi
push esi
mov esi, eax
cmp eax, 0xffffffff
je 0x408209
mov eax, dword [ebp + 0xc]
and eax, 4
mov dword [ebp - 0x164], eax
mov dword [esp + 4], 0x3f
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call fcn.004073ff
push edx
push edx
cmp byte [eax], 0
jne 0x408125
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
jmp 0x40812f
mov dl, byte [ebp - 0x28]
test dl, dl
je 0x408117
lea eax, [ebp - 0x28]
cmp dl, 0x2e
jne 0x40814e
mov dl, byte [eax + 1]
test dl, dl
je 0x4081e4
cmp dl, 0x2e
jne 0x40814e
cmp byte [eax + 2], 0
je 0x4081e4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call fcn.004077f4
push ecx
push ecx
test byte [ebp - 0x158], 0x10
je 0x408187
mov eax, dword [ebp + 0xc]
and eax, 3
cmp eax, 3
jne 0x4081e4
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407ff9
jmp 0x4081e2
mov dword [esp], ebx
call fcn.00407595
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
push edx
test eax, eax
jne 0x4081d2
cmp dword [ebp - 0x164], 0
je 0x4081ca
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406c15
push eax
push eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407d5c
jmp 0x4081e2
inc dword [0x4307c4]
jmp 0x4081e4
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.00406c15
push ecx
push ecx
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_FindNextFileA
push edx
push edx
test eax, eax
jne 0x4080fa
mov dword [esp], esi
call sub.KERNEL32.dll_FindClose
push esi
cmp dword [ebp - 0x15c], 0
je 0x408290
mov eax, dword [ebp - 0x160]
mov byte [eax - 1], 0
test edi, edi
je 0x408276
mov dword [esp], ebx
call fcn.00407c28
push ecx
test eax, eax
je 0x408290
mov dword [esp], ebx
call fcn.0040782d
push edi
mov dword [esp], ebx
call fcn.00407595
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_RemoveDirectoryA
push edx
test eax, eax
jne 0x40827e
test byte [ebp + 0xc], 4
je 0x408276
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406c15
push esi
push esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407d5c
jmp 0x40828e
inc dword [0x4307c4]
jmp 0x408290
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.00406c15
push ecx
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8