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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100262c3
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x100365e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
xor ebx, ebx
or ecx, eax
mov dword [ebp - 4], ebx
jge 0x10011271
push ebx
lea ecx, [ebp + 8]
call fcn.10001470
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x10011467
test al, 0x10
je 0x10011467
push 0x1002ef38
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.10004320
mov eax, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x260]
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 - 0x264], esi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100112dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x10011444
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [ebx]
mov ecx, 0x1002ef40
lea eax, [ebp - 0x234]
jmp 0x10011300
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10011326
cmp dx, bx
je 0x10011322
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10011326
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10011300
xor eax, eax
jmp 0x1001132a
sbb eax, eax
sbb eax, edi
cmp eax, ebx
je 0x100113e8
mov ecx, 0x1002ef44
lea eax, [ebp - 0x234]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10011366
cmp dx, bx
je 0x10011362
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10011366
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10011340
xor eax, eax
jmp 0x1001136a
sbb eax, eax
sbb eax, edi
cmp eax, ebx
je 0x100113e8
push 0x1002ef4c
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x26c]
push edx
call fcn.10004320
lea ecx, [ebp - 0x234]
push ecx
push eax
lea edx, [ebp - 0x268]
push edx
mov byte [ebp - 4], 1
call fcn.10004320
mov eax, dword [eax]
add esp, 0x18
push eax
call esi
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 0x100113c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100113e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100112f0
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
mov eax, dword [ebp + 8]
sete bl
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x10011440
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x10011488
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x10011463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x10011488
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x10011486
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 - 0x10]
xor ecx, ebp
call fcn.10012e4f
mov esp, ebp
pop ebp
ret