Function at 0x1029350
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x3c], 0x120089
mov dword [ebp - 0x38], 0x120116
mov dword [ebp - 0x34], 0x1200a0
mov dword [ebp - 0x30], 0x1f01ff
call fcn.0102931e
test eax, eax
jl 0x1029565
mov esi, dword [ebp - 0x2c]
cmp esi, ebx
je 0x10293b4
cmp esi, 2
jne 0x1029565
call fcn.01028ad7
test eax, eax
mov eax, 0x1039f4c
jne 0x10293c7
mov eax, 0x1039f3c
push edi
lea esi, [eax + esi*4]
push ebx
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push dword [esi]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x10293fc
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 4]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x10293fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1029564
lea eax, [ebp - 0x10]
push eax
call fcn.01029145
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
jne 0x102943d
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push 0x19
push edi
push ebx
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreatePrivateObjectSecurityEx]
cmp eax, edi
jne 0x102943d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x1029564
cmp dword [ebp - 8], ebx
je 0x10294f5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push reloc.OLEAUT32.dll_SysReAllocStringLen
push edi
push ebx
call fcn.01029216
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x10294f5
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x10294f5
mov eax, dword [ebp - 8]
movzx eax, word [eax + 2]
cmp word [ecx + 2], ax
jne 0x10294f5
movzx eax, ax
mov dword [ebp - 0x2c], eax
cld
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
or ecx, ecx
jne 0x10294b0
xor eax, eax
jmp 0x10294ee
test cl, 3
jne 0x10294d7
test esi, 3
jne 0x10294d7
test edi, 3
jne 0x10294d7
shr ecx, 2
repe cmpsd dword [esi], dword es:[edi]
je 0x10294ec
sub edi, 4
sub esi, 4
mov ecx, 4
repe cmpsb byte [esi], byte es:[edi]
je 0x10294ec
dec edi
dec esi
mov al, byte [esi]
cmp al, byte [edi]
mov eax, 1
jae 0x10294ee
neg eax
jmp 0x10294ee
xor eax, eax
cmp eax, ebx
je 0x1029564
xor edi, edi
inc edi
mov ecx, dword [ebp + 8]
push ebx
push dword [ebp - 0x1c]
push ebx
push ebx
push reloc.OLEAUT32.dll_SysReAllocStringLen
push edi
push ebx
call fcn.01029216
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push eax
call esi
mov dword [ebp - 0x2c], eax
call fcn.01028ad7
test eax, eax
je 0x102955a
cmp dword [ebp - 0x2c], ebx
jne 0x102955a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x1029554
push dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
push ebx
push ebx
push ebx
push 0x10
push edi
push ebx
call fcn.01029216
push eax
call esi
jmp 0x102955a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
call fcn.01006a4c
pop edi
mov ecx, dword [ebp + 8]
push 6
call fcn.01006e57
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1029586
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x18], ebx
je 0x1029590
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0xc], ebx
je 0x102959f
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_DestroyPrivateObjectSecurity]
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x10295af
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
leave
ret 4