Function at 0x4085b4
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.00408157
test byte [ebp + 0xc], 8
push ecx
je 0x4085ef
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edx
sete al
movzx eax, al
add dword [0x42bbe8], eax
jmp 0x40883a
mov edi, eax
mov eax, dword [ebp + 0xc]
and eax, 1
mov dword [ebp - 0x15c], eax
je 0x408611
test edi, edi
je 0x408820
test byte [ebp + 0xc], 2
je 0x4087c9
mov dword [esp + 4], ebx
mov dword [esp], 0x42b340
call fcn.00407cb2
cmp dword [ebp - 0x15c], 0
push eax
push eax
je 0x408644
mov dword [esp + 4], str..
mov dword [esp], 0x42b340
call fcn.00407ce4
push eax
push eax
jmp 0x40864d
mov dword [esp], ebx
call fcn.004078ca
push eax
cmp byte [ebx], 0
jne 0x40865b
cmp byte [0x42b340], 0x5c
jne 0x40866d
mov dword [esp + 4], 0x40b4a0
mov dword [esp], ebx
call fcn.00407ce4
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
push ecx
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x158]
mov dword [esp], 0x42b340
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
push esi
push esi
mov esi, eax
je 0x4087b2
lea eax, [ebp - 0x12c]
mov dword [esp + 4], 0x3f
mov dword [esp], eax
call fcn.004078a0
push edx
push edx
cmp byte [eax], 0
jne 0x4086ce
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
jmp 0x4086d8
mov dl, byte [ebp - 0x28]
test dl, dl
je 0x4086c0
lea eax, [ebp - 0x28]
cmp dl, 0x2e
jne 0x4086f7
mov dl, byte [eax + 1]
test dl, dl
je 0x40878b
cmp dl, 0x2e
jne 0x4086f7
cmp byte [eax + 2], 0
je 0x40878b
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call fcn.00407cb2
test byte [ebp - 0x158], 0x10
push ecx
push ecx
je 0x408730
mov eax, dword [ebp + 0xc]
and eax, 3
cmp eax, 3
jne 0x40878b
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004085b4
jmp 0x408789
mov dword [esp], ebx
call fcn.00407a42
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edx
jne 0x408779
test byte [ebp + 0xc], 4
je 0x408771
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406fc7
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.0040830d
jmp 0x408789
jmp 0x451992
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.00406fc7
push ecx
push ecx
lea eax, [ebp - 0x158]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
push edx
push edx
jne 0x4086a3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ecx
cmp dword [ebp - 0x15c], 0
je 0x40883a
mov eax, dword [ebp - 0x160]
test edi, edi
mov byte [eax - 1], 0
je 0x408820
mov dword [esp], ebx
call fcn.0040811f
test eax, eax
push edx
je 0x40883a
mov dword [esp], ebx
call fcn.00407cee
push ecx
mov dword [esp], ebx
call fcn.00407a42
push esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edi
jne 0x408828
test byte [ebp + 0xc], 4
je 0x408820
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406fc7
push edx
push edx
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.0040830d
jmp 0x408838
inc dword [0x42bbe8]
jmp 0x40883a
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.00406fc7
push eax
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8