Function at 0x407b8d
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.00407741
test esi, 8
mov dword [ebp - 0x15c], eax
push ecx
je 0x407bdb
mov esi, dword [0x7a4344]
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 [0x7a4344], esi
jmp 0x407e45
mov eax, esi
and eax, 1
mov dword [ebp - 0x164], eax
je 0x407c01
cmp dword [ebp - 0x15c], 0
je 0x407e2b
test esi, 2
je 0x407dd6
mov dword [esp + 4], ebx
mov dword [esp], 0x7a3ab8
call fcn.00407312
cmp dword [ebp - 0x164], 0
push edi
push edi
je 0x407c34
mov dword [esp + 4], str..
mov dword [esp], 0x7a3ab8
call sub.KERNEL32.dll_lstrcatA
push ecx
push ecx
jmp 0x407c3d
mov dword [esp], ebx
call fcn.00407296
push edx
cmp byte [ebx], 0
jne 0x407c4b
cmp byte [0x7a3ab8], 0x5c
jne 0x407c5d
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], 0x7a3ab8
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
mov edi, eax
push ecx
push ecx
je 0x407db6
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.00407114
push edx
push edx
cmp byte [eax], 0
je 0x407cd5
mov dl, byte [ebp - 0x28]
lea eax, [ebp - 0x28]
test dl, dl
jne 0x407ce1
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
cmp dl, 0x2e
jne 0x407d00
mov dl, byte [eax + 1]
test dl, dl
je 0x407d91
cmp dl, 0x2e
jne 0x407d00
cmp byte [eax + 2], 0
je 0x407d91
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call fcn.00407312
test byte [ebp - 0x158], 0x10
push eax
push eax
je 0x407d34
cmp dword [ebp - 0x16c], 3
jne 0x407d91
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00407b8d
jmp 0x407d8f
mov dword [esp], ebx
call fcn.00407851
push ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
push edx
jne 0x407d7f
cmp dword [ebp - 0x168], 0
je 0x407d77
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00404460
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.004078ec
jmp 0x407d8f
inc dword [0x7a4344]
jmp 0x407d91
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.00404460
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 0x407cae
mov dword [esp], edi
call sub.KERNEL32.dll_FindClose
push edi
cmp dword [ebp - 0x164], 0
je 0x407e45
mov eax, dword [ebp - 0x160]
mov byte [eax - 1], 0
cmp dword [ebp - 0x15c], 0
je 0x407e2b
mov dword [esp], ebx
call fcn.004070de
test eax, eax
push ecx
je 0x407e45
mov dword [esp], ebx
call fcn.004072ce
push edx
mov dword [esp], ebx
call fcn.00407851
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_RemoveDirectoryA
test eax, eax
push edi
jne 0x407e33
and esi, 4
je 0x407e2b
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00404460
push esi
push esi
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.004078ec
jmp 0x407e43
inc dword [0x7a4344]
jmp 0x407e45
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.00404460
push ecx
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8