Function at 0x407bb5
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, 0x17c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00407769
test esi, 8
mov dword [ebp - 0x15c], eax
push ecx
je 0x407c03
mov esi, dword [0x4307cc]
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
sete al
movzx eax, al
lea esi, [eax + esi]
push edx
mov dword [0x4307cc], esi
jmp 0x407e6d
mov eax, esi
and eax, 1
mov dword [ebp - 0x164], eax
je 0x407c29
cmp dword [ebp - 0x15c], 0
je 0x407e53
test esi, 2
je 0x407dfe
mov dword [esp + 4], ebx
mov dword [esp], 0x42edb4
call fcn.0040733a
cmp dword [ebp - 0x164], 0
push edi
push edi
je 0x407c5c
mov dword [esp + 4], str..
mov dword [esp], 0x42edb4
call sub.KERNEL32.dll_lstrcatA
push ecx
push ecx
jmp 0x407c65
mov dword [esp], ebx
call fcn.004072be
push edx
cmp byte [ebx], 0
jne 0x407c73
cmp byte [0x42edb4], 0x5c
jne 0x407c85
mov dword [esp + 4], 0x40b38d
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatA
push eax
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
lea edx, [ebp - 0x158]
mov dword [ebp - 0x170], edx
push edi
lea eax, [ebx + eax]
mov dword [ebp - 0x160], eax
mov dword [esp + 4], edx
mov dword [esp], 0x42edb4
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
mov edi, eax
push ecx
push ecx
je 0x407dde
mov eax, esi
and eax, 4
mov dword [ebp - 0x168], eax
mov eax, esi
and eax, 3
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 4], 0x3f
mov dword [esp], eax
call fcn.0040713c
push edx
push edx
cmp byte [eax], 0
je 0x407cfd
mov dl, byte [ebp - 0x28]
lea eax, [ebp - 0x28]
test dl, dl
jne 0x407d09
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
cmp dl, 0x2e
jne 0x407d28
mov dl, byte [eax + 1]
test dl, dl
je 0x407db9
cmp dl, 0x2e
jne 0x407d28
cmp byte [eax + 2], 0
je 0x407db9
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call fcn.0040733a
test byte [ebp - 0x158], 0x10
push eax
push eax
je 0x407d5c
cmp dword [ebp - 0x16c], 3
jne 0x407db9
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00407bb5
jmp 0x407db7
mov dword [esp], ebx
call fcn.00407879
push ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
push edx
jne 0x407da7
cmp dword [ebp - 0x168], 0
je 0x407d9f
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00404488
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00407914
jmp 0x407db7
inc dword [0x4307cc]
jmp 0x407db9
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.00404488
push ecx
push ecx
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
push edx
push edx
jne 0x407cd6
mov dword [esp], edi
call sub.KERNEL32.dll_FindClose
push edi
cmp dword [ebp - 0x164], 0
je 0x407e6d
mov eax, dword [ebp - 0x160]
mov byte [eax - 1], 0
cmp dword [ebp - 0x15c], 0
je 0x407e53
mov dword [esp], ebx
call fcn.00407106
test eax, eax
push ecx
je 0x407e6d
mov dword [esp], ebx
call fcn.004072f6
push edx
mov dword [esp], ebx
call fcn.00407879
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_RemoveDirectoryA
test eax, eax
push edi
jne 0x407e5b
and esi, 4
je 0x407e53
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00404488
push esi
push esi
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00407914
jmp 0x407e6b
inc dword [0x4307cc]
jmp 0x407e6d
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.00404488
push ecx
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8