Function at 0x4083a8
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.00407f4b
test byte [ebp + 0xc], 8
push ecx
je 0x4083e3
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edx
sete al
movzx eax, al
add dword [0x4368e8], eax
jmp 0x40862e
mov edi, eax
mov eax, dword [ebp + 0xc]
and eax, 1
mov dword [ebp - 0x15c], eax
je 0x408405
test edi, edi
je 0x408614
test byte [ebp + 0xc], 2
je 0x4085bd
mov dword [esp + 4], ebx
mov dword [esp], 0x434e80
call fcn.00407aa6
cmp dword [ebp - 0x15c], 0
push eax
push eax
je 0x408438
mov dword [esp + 4], str..
mov dword [esp], 0x434e80
call fcn.00407ad8
push eax
push eax
jmp 0x408441
mov dword [esp], ebx
call fcn.004076be
push eax
cmp byte [ebx], 0
jne 0x40844f
cmp byte [0x434e80], 0x5c
jne 0x408461
mov dword [esp + 4], 0x40b440
mov dword [esp], ebx
call fcn.00407ad8
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], 0x434e80
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
push esi
push esi
mov esi, eax
je 0x4085a6
lea eax, [ebp - 0x12c]
mov dword [esp + 4], 0x3f
mov dword [esp], eax
call fcn.00407694
push edx
push edx
cmp byte [eax], 0
jne 0x4084c2
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
jmp 0x4084cc
mov dl, byte [ebp - 0x28]
test dl, dl
je 0x4084b4
lea eax, [ebp - 0x28]
cmp dl, 0x2e
jne 0x4084eb
mov dl, byte [eax + 1]
test dl, dl
je 0x40857f
cmp dl, 0x2e
jne 0x4084eb
cmp byte [eax + 2], 0
je 0x40857f
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call fcn.00407aa6
test byte [ebp - 0x158], 0x10
push ecx
push ecx
je 0x408524
mov eax, dword [ebp + 0xc]
and eax, 3
cmp eax, 3
jne 0x40857f
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004083a8
jmp 0x40857d
mov dword [esp], ebx
call fcn.00407836
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edx
jne 0x40856d
test byte [ebp + 0xc], 4
je 0x408565
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406dbb
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00408101
jmp 0x40857d
inc dword [0x4368e8]
jmp 0x40857f
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.00406dbb
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 0x408497
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ecx
cmp dword [ebp - 0x15c], 0
je 0x40862e
mov eax, dword [ebp - 0x160]
test edi, edi
mov byte [eax - 1], 0
je 0x408614
mov dword [esp], ebx
call fcn.00407f13
test eax, eax
push edx
je 0x40862e
mov dword [esp], ebx
call fcn.00407ae2
push ecx
mov dword [esp], ebx
call fcn.00407836
push esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edi
jne 0x40861c
test byte [ebp + 0xc], 4
je 0x408614
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.00406dbb
push edx
push edx
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00408101
jmp 0x40862c
inc dword [0x4368e8]
jmp 0x40862e
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.00406dbb
push eax
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8