Function at 0x408213
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 esi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00407e68
test esi, 8
mov dword [ebp - 0x15c], eax
push ecx
je 0x408261
mov esi, dword [0x4327d4]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete al
movzx eax, al
add esi, eax
push edx
mov dword [0x4327d4], esi
jmp 0x4084b6
mov eax, esi
and eax, 1
mov dword [ebp - 0x160], eax
je 0x408287
cmp dword [ebp - 0x15c], 0
je 0x40849c
test esi, 2
je 0x408446
mov dword [esp + 4], ebx
mov dword [esp], 0x42fcc8
call fcn.00407a3d
cmp dword [ebp - 0x160], 0
push eax
push eax
je 0x4082bb
mov dword [esp + 4], str..
mov dword [esp], 0x42fcc8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
push eax
jmp 0x4082c4
mov dword [esp], ebx
call fcn.0040764c
push eax
cmp byte [ebx], 0
jne 0x4082d2
cmp byte [0x42fcc8], 0x5c
jne 0x4082e5
mov dword [esp + 4], 0x40b3dc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
push ecx
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], 0x42fcc8
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
push edi
push edi
mov edi, eax
je 0x408426
lea eax, [ebp - 0x12c]
mov dword [esp + 4], 0x3f
mov dword [esp], eax
call fcn.0040761c
push edx
push edx
cmp byte [eax], 0
je 0x408342
mov dl, byte [ebp - 0x28]
lea eax, [ebp - 0x28]
test dl, dl
jne 0x40834e
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
cmp dl, 0x2e
jne 0x40836d
mov dl, byte [eax + 1]
test dl, dl
je 0x4083ff
cmp dl, 0x2e
jne 0x40836d
cmp byte [eax + 2], 0
je 0x4083ff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call fcn.00407a3d
test byte [ebp - 0x158], 0x10
push ecx
push ecx
je 0x4083a2
mov eax, esi
and eax, 3
cmp eax, 3
jne 0x4083ff
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408213
jmp 0x4083fd
mov dword [esp], ebx
call fcn.004077d0
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edx
jne 0x4083ed
test esi, 4
je 0x4083e5
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406dde
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00407f72
jmp 0x4083fd
inc dword [0x4327d4]
jmp 0x4083ff
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.00406dde
push ecx
push ecx
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
push edx
push edx
jne 0x40831b
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
cmp dword [ebp - 0x160], 0
je 0x4084b6
mov eax, dword [ebp - 0x164]
cmp dword [ebp - 0x15c], 0
mov byte [eax - 1], 0
je 0x40849c
mov dword [esp], ebx
call fcn.00407e30
test eax, eax
push ecx
je 0x4084b6
mov dword [esp], ebx
call fcn.004075d6
push edi
mov dword [esp], ebx
call fcn.004077d0
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edx
jne 0x4084a4
and esi, 4
je 0x40849c
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406dde
push esi
push esi
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00407f72
jmp 0x4084b4
inc dword [0x4327d4]
jmp 0x4084b6
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.00406dde
push ecx
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8