Function at 0x401210
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d181
mov eax, dword fs:[0]
push eax
sub esp, 0xa80
mov eax, dword [0x425090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x814]
push eax
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x820]
call fcn.00406fe0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x818]
call fcn.00406aa0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x814]
push eax
push str._s.
lea ecx, [ebp - 0x818]
push ecx
call fcn.0040a690
add esp, 0xc
lea edx, [ebp - 0xa74]
push edx
lea ecx, [ebp - 0x818]
call fcn.00407ca0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x824], 1
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
setne al
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x824], 0
je 0x4013fb
cmp dword [ebp - 0x81c], 0
je 0x4013fb
movzx ecx, word [ebp - 0xa48]
cmp ecx, 0x2e
je 0x4013df
lea ecx, [ebp - 0xa78]
call fcn.00406aa0
mov byte [ebp - 4], 2
lea edx, [ebp - 0xa48]
push edx
mov eax, dword [ebp - 0x820]
push eax
push str._s_s
lea ecx, [ebp - 0xa78]
push ecx
call fcn.0040a690
add esp, 0x10
mov edx, dword [ebp - 0xa74]
and edx, 0x10
je 0x401378
cmp dword [ebp - 0x824], 0
je 0x401360
push 0
lea ecx, [ebp - 0xa78]
call fcn.00407ca0
push eax
call fcn.00401210
add esp, 8
test eax, eax
je 0x401360
mov dword [ebp - 0xa88], 1
jmp 0x40136a
mov dword [ebp - 0xa88], 0
mov eax, dword [ebp - 0xa88]
mov dword [ebp - 0x824], eax
jmp 0x4013d0
push 0x80
lea ecx, [ebp - 0xa78]
call fcn.00407ca0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x824], 0
je 0x4013ba
lea ecx, [ebp - 0xa78]
call fcn.00407ca0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4013ba
mov dword [ebp - 0xa8c], 1
jmp 0x4013c4
mov dword [ebp - 0xa8c], 0
mov ecx, dword [ebp - 0xa8c]
mov dword [ebp - 0x824], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa78]
call fcn.00406ac0
lea edx, [ebp - 0xa74]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x81c], eax
jmp 0x4012cb
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x401440
mov edx, dword [ebp - 0x824]
mov dword [ebp - 0xa7c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x818]
call fcn.00406ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x820]
call fcn.00406ac0
mov eax, dword [ebp - 0xa7c]
jmp 0x4014bb
cmp dword [ebp - 0x824], 0
je 0x40148a
lea ecx, [ebp - 0x820]
call fcn.00407ca0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xa80], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x818]
call fcn.00406ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x820]
call fcn.00406ac0
mov eax, dword [ebp - 0xa80]
jmp 0x4014bb
mov dword [ebp - 0xa84], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x818]
call fcn.00406ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x820]
call fcn.00406ac0
mov eax, dword [ebp - 0xa84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040cbaa
mov esp, ebp
pop ebp
ret