Function at 0x407de5
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.00407999
test esi, 8
mov dword [ebp - 0x15c], eax
push ecx
je 0x407e33
mov esi, dword [0x4307dc]
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 [0x4307dc], esi
jmp 0x40809d
mov eax, esi
and eax, 1
mov dword [ebp - 0x164], eax
je 0x407e59
cmp dword [ebp - 0x15c], 0
je 0x408083
test esi, 2
je 0x40802e
mov dword [esp + 4], ebx
mov dword [esp], 0x42edc4
call fcn.0040756a
cmp dword [ebp - 0x164], 0
push edi
push edi
je 0x407e8c
mov dword [esp + 4], str..
mov dword [esp], 0x42edc4
call sub.KERNEL32.dll_lstrcatA
push ecx
push ecx
jmp 0x407e95
mov dword [esp], ebx
call fcn.004074ee
push edx
cmp byte [ebx], 0
jne 0x407ea3
cmp byte [0x42edc4], 0x5c
jne 0x407eb5
mov dword [esp + 4], 0x40b3e5
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], 0x42edc4
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
mov edi, eax
push ecx
push ecx
je 0x40800e
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.0040736c
push edx
push edx
cmp byte [eax], 0
je 0x407f2d
mov dl, byte [ebp - 0x28]
lea eax, [ebp - 0x28]
test dl, dl
jne 0x407f39
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
cmp dl, 0x2e
jne 0x407f58
mov dl, byte [eax + 1]
test dl, dl
je 0x407fe9
cmp dl, 0x2e
jne 0x407f58
cmp byte [eax + 2], 0
je 0x407fe9
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call fcn.0040756a
test byte [ebp - 0x158], 0x10
push eax
push eax
je 0x407f8c
cmp dword [ebp - 0x16c], 3
jne 0x407fe9
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00407de5
jmp 0x407fe7
mov dword [esp], ebx
call fcn.00407aa9
push ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
push edx
jne 0x407fd7
cmp dword [ebp - 0x168], 0
je 0x407fcf
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.004046b8
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00407b44
jmp 0x407fe7
inc dword [0x4307dc]
jmp 0x407fe9
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.004046b8
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 0x407f06
mov dword [esp], edi
call sub.KERNEL32.dll_FindClose
push edi
cmp dword [ebp - 0x164], 0
je 0x40809d
mov eax, dword [ebp - 0x160]
mov byte [eax - 1], 0
cmp dword [ebp - 0x15c], 0
je 0x408083
mov dword [esp], ebx
call fcn.00407336
test eax, eax
push ecx
je 0x40809d
mov dword [esp], ebx
call fcn.00407526
push edx
mov dword [esp], ebx
call fcn.00407aa9
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_RemoveDirectoryA
test eax, eax
push edi
jne 0x40808b
and esi, 4
je 0x408083
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.004046b8
push esi
push esi
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00407b44
jmp 0x40809b
inc dword [0x4307dc]
jmp 0x40809d
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.004046b8
push ecx
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8