Function at 0x10012b20
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025873
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x10012b74
xor eax, eax
lea ecx, [ebp + 8]
call fcn.10004100
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x10012d61
test al, 0x10
je 0x10012d61
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x270]
push ecx
mov ebx, 0x1002e49c
call fcn.10004f30
mov eax, dword [eax]
add esp, 8
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
mov dword [ebp - 0x26c], esi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10012bdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x10012d3e
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ecx]
mov ecx, 0x1002e4a4
lea eax, [ebp - 0x238]
jmp 0x10012c00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012c26
test dx, dx
je 0x10012c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012c26
add eax, 4
add ecx, 4
test dx, dx
jne 0x10012c00
xor eax, eax
jmp 0x10012c2a
sbb eax, eax
sbb eax, edi
test eax, eax
je 0x10012ce8
mov ecx, 0x1002e4a8
lea eax, [ebp - 0x238]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012c66
test dx, dx
je 0x10012c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x10012c40
xor eax, eax
jmp 0x10012c6a
sbb eax, eax
sbb eax, edi
test eax, eax
je 0x10012ce8
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x268]
push edx
mov ebx, 0x1002e4b0
call fcn.10004f30
push eax
lea eax, [ebp - 0x274]
push eax
lea ebx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.10004f30
mov eax, dword [eax]
add esp, 0x10
push eax
call esi
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10012cc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10012ce8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x264]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10012bf0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x10012d3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x10012d82
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x10012d5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x10012d82
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x10012d80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret