Function at 0x407bab
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.00407759
mov dword [ebp - 0x15c], eax
push ecx
test esi, 8
je 0x407bf9
mov esi, dword [0x4308f0]
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
sete al
movzx eax, al
push edx
lea esi, [eax + esi]
mov dword [0x4308f0], esi
jmp 0x407e63
mov eax, esi
and eax, 1
mov dword [ebp - 0x164], eax
je 0x407c1f
cmp dword [ebp - 0x15c], 0
je 0x407e49
test esi, 2
je 0x407df4
mov dword [esp + 4], ebx
mov dword [esp], 0x42eea8
call fcn.00407326
cmp dword [ebp - 0x164], 0
push edi
push edi
je 0x407c52
mov dword [esp + 4], str..
mov dword [esp], 0x42eea8
call fcn.00407292
push ecx
push ecx
jmp 0x407c5b
mov dword [esp], ebx
call fcn.004072aa
push edx
cmp byte [ebx], 0
jne 0x407c69
cmp byte [0x42eea8], 0x5c
jne 0x407c7b
mov dword [esp + 4], 0x40b38d
mov dword [esp], ebx
call fcn.00407292
push eax
push eax
mov dword [esp], ebx
call fcn.0040729e
lea edx, [ebp - 0x158]
push edi
lea eax, [ebx + eax]
mov dword [ebp - 0x160], eax
mov dword [esp + 4], edx
mov dword [esp], 0x42eea8
mov dword [ebp - 0x170], edx
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
cmp eax, 0xffffffff
push ecx
push ecx
je 0x407dd4
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.00407128
push edx
push edx
cmp byte [eax], 0
je 0x407cf3
mov dl, byte [ebp - 0x28]
lea eax, [ebp - 0x28]
test dl, dl
jne 0x407cff
mov dl, byte [ebp - 0x12c]
lea eax, [ebp - 0x12c]
cmp dl, 0x2e
jne 0x407d1e
mov dl, byte [eax + 1]
test dl, dl
je 0x407daf
cmp dl, 0x2e
jne 0x407d1e
cmp byte [eax + 2], 0
je 0x407daf
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call fcn.00407326
test byte [ebp - 0x158], 0x10
push eax
push eax
je 0x407d52
cmp dword [ebp - 0x16c], 3
jne 0x407daf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00407bab
jmp 0x407dad
mov dword [esp], ebx
call fcn.00407869
push ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
push edx
jne 0x407d9d
cmp dword [ebp - 0x168], 0
je 0x407d95
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.0040448c
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00407904
jmp 0x407dad
inc dword [0x4308f0]
jmp 0x407daf
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff2
call fcn.0040448c
push ecx
push ecx
lea eax, [ebp - 0x158]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
push edx
push edx
jne 0x407ccc
mov dword [esp], edi
call sub.KERNEL32.dll_FindClose
push edi
cmp dword [ebp - 0x164], 0
je 0x407e63
mov eax, dword [ebp - 0x160]
mov byte [eax - 1], 0
cmp dword [ebp - 0x15c], 0
je 0x407e49
mov dword [esp], ebx
call fcn.004070f2
test eax, eax
push ecx
je 0x407e63
mov dword [esp], ebx
call fcn.004072e2
push edx
mov dword [esp], ebx
call fcn.00407869
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_RemoveDirectoryA
test eax, eax
push edi
jne 0x407e51
and esi, 4
je 0x407e49
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff1
call fcn.0040448c
push esi
push esi
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00407904
jmp 0x407e61
inc dword [0x4308f0]
jmp 0x407e63
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe5
call fcn.0040448c
push ecx
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8