Function at 0x408064
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.00407cce
push ecx
mov dword [ebp - 0x15c], eax
test esi, 8
je 0x4080b1
mov esi, dword [0x425b10]
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
push edx
test eax, eax
sete al
movzx eax, al
add esi, eax
mov dword [0x425b10], esi
jmp 0x4082fe
mov eax, esi
and eax, 1
mov dword [ebp - 0x160], eax
je 0x4080d7
cmp dword [ebp - 0x15c], 0
je 0x4082e4
test esi, 2
je 0x40828f
mov dword [esp + 4], ebx
mov dword [esp], 0x424190
call fcn.004078bf
push eax
push eax
cmp dword [ebp - 0x160], 0
je 0x40810a
mov dword [esp + 4], str..
mov dword [esp], 0x424190
call sub.KERNEL32.dll_lstrcatA
push eax
push eax
jmp 0x408113
mov dword [esp], ebx
call fcn.004074f0
push eax
cmp byte [ebx], 0
jne 0x408121
cmp byte [0x424190], 0x5c
jne 0x408133
mov dword [esp + 4], 0x40b3dc
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatA
push eax
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
push ecx
add eax, ebx
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], 0x424190
call sub.KERNEL32.dll_FindFirstFileA
push edi
push edi
mov edi, eax
cmp eax, 0xffffffff
je 0x40826f
mov dword [esp + 4], 0x3f
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call fcn.004074c7
push edx
push edx
cmp byte [eax], 0
je 0x40818e
mov dl, byte [ebp - 0x28]
lea eax, [ebp - 0x28]
test dl, dl
jne 0x40819a
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
cmp dl, 0x2e
jne 0x4081b9
mov dl, byte [eax + 1]
test dl, dl
je 0x40824a
cmp dl, 0x2e
jne 0x4081b9
cmp byte [eax + 2], 0
je 0x40824a
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call fcn.004078bf
push ecx
push ecx
test byte [ebp - 0x158], 0x10
je 0x4081ee
mov eax, esi
and eax, 3
cmp eax, 3
jne 0x40824a
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408064
jmp 0x408248
mov dword [esp], ebx
call fcn.00407664
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
push edx
test eax, eax
jne 0x408238
test esi, 4
je 0x408230
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406cb9
push eax
push eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407dce
jmp 0x408248
inc dword [0x425b10]
jmp 0x40824a
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.00406cb9
push ecx
push ecx
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_FindNextFileA
push edx
push edx
test eax, eax
jne 0x408167
mov dword [esp], edi
call sub.KERNEL32.dll_FindClose
push edi
cmp dword [ebp - 0x160], 0
je 0x4082fe
mov eax, dword [ebp - 0x164]
mov byte [eax - 1], 0
cmp dword [ebp - 0x15c], 0
je 0x4082e4
mov dword [esp], ebx
call fcn.00407c98
push ecx
test eax, eax
je 0x4082fe
mov dword [esp], ebx
call fcn.00407484
push edi
mov dword [esp], ebx
call fcn.00407664
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_RemoveDirectoryA
push edx
test eax, eax
jne 0x4082ec
and esi, 4
je 0x4082e4
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406cb9
push esi
push esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407dce
jmp 0x4082fc
inc dword [0x425b10]
jmp 0x4082fe
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.00406cb9
push ecx
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8