Function at 0x10011870
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b465
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x10088020]
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 ecx, dword [ecx]
sub ecx, 0x10
call fcn.10009ac0
add eax, 0x10
mov dword [ebp - 0x280], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.10011800
push 1
push 0x100709c4
lea ecx, [ebp - 0x280]
call fcn.10010b90
lea ecx, [ebp - 0x278]
call fcn.10011ad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
mov esi, dword [ebp - 0x280]
push esi
call fcn.100174b0
or ebx, 0xffffffff
test eax, eax
je 0x10011a25
mov ecx, dword [ebp - 0x1c]
or esi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ecx, ecx
je 0x10011955
mov eax, dword [ebp - 0x274]
shr eax, 4
test eax, 1
je 0x10011955
cmp word [ebp - 0x248], 0x2e
jne 0x10011955
mov ax, word [ebp - 0x246]
test ax, ax
je 0x100119f3
cmp ax, 0x2e
jne 0x10011955
cmp word [ebp - 0x244], 0
je 0x100119f3
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x278]
call fcn.10017970
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0
je 0x100119ac
test byte [ebp - 0x274], 0x10
je 0x100119ac
mov dl, 1
lea ecx, [ebp - 0x27c]
call fcn.10011870
push dword [ebp - 0x27c]
call ebx
test al, 1
je 0x1001199f
and eax, 0xfffffffe
push eax
push dword [ebp - 0x27c]
call edi
lea ecx, [ebp - 0x27c]
call fcn.10011c30
jmp 0x100119cf
push dword [ebp - 0x27c]
call ebx
test al, 1
je 0x100119c4
and eax, 0xfffffffe
push eax
push dword [ebp - 0x27c]
call edi
lea ecx, [ebp - 0x27c]
call fcn.10011f40
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100119f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x10011a1c
test ecx, ecx
je 0x10011a1c
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x10011917
mov esi, dword [ebp - 0x280]
or ebx, 0xffffffff
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011a50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x10011a69
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x24], 0
test eax, eax
je 0x10011a90
cmp eax, 0xffffffff
je 0x10011a90
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x278], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10011aac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.10044a98
mov esp, ebp
pop ebp
ret