Function at 0x100014a0
Capabilities:
Compare security identifiers

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x38], 2
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
call fcn.1000cd00
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1000153f
jmp 0x100018bc
mov r9d, 2
mov r8d, 0xc
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x10001576
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x100018bc
mov eax, dword [rsp + 0x50]
sub eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x1000158e
mov eax, dword [rsp + 0x3c]
sub eax, 1
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x100018bc
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x100015c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x100018bc
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0xa0], 0
je 0x100015ea
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x100016ca
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
test eax, eax
jne 0x100016ca
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100016c5
cmp dword [rsp + 0x98], 0
je 0x100016a4
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x100016a4
mov eax, dword [rsp + 0x90]
not eax
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 4]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 4]
and eax, 0x1e
test eax, eax
je 0x1000167f
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 4]
or eax, 1
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 4], eax
jmp 0x100016a2
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
jne 0x100016a2
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
jmp 0x100016bd
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x90]
mov eax, dword [rax + 4]
or eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 4], eax
mov dword [rsp + 0x38], 0
jmp 0x100018b7
cmp dword [rsp + 0xa0], 1
je 0x100016e2
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x100017c3
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 1
jne 0x100017c3
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100017be
cmp dword [rsp + 0x98], 0
je 0x1000179d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x1000179d
mov eax, dword [rsp + 0x90]
not eax
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 4]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
and eax, 0x1e
test eax, eax
je 0x10001778
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
or eax, 1
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 4], eax
jmp 0x1000179b
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
jne 0x1000179b
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
jmp 0x100017b6
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x90]
mov eax, dword [rax + 4]
or eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 4], eax
mov dword [rsp + 0x38], 0
jmp 0x100018b7
cmp dword [rsp + 0xa0], 2
je 0x100017db
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x100018b7
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 2
jne 0x100018b7
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100018b7
cmp dword [rsp + 0x98], 0
je 0x10001896
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x10001896
mov eax, dword [rsp + 0x90]
not eax
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 4]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
and eax, 0x1e
test eax, eax
je 0x10001871
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
or eax, 1
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
jmp 0x10001894
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
jne 0x10001894
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
jmp 0x100018af
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x90]
mov eax, dword [rax + 4]
or eax, ecx
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov dword [rsp + 0x38], 0
jmp 0x10001583
cmp qword [rsp + 0x20], 0
je 0x100018ce
mov rcx, qword [rsp + 0x20]
call fcn.1000dc60
cmp dword [rsp + 0x40], 0
jne 0x100018dd
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add rsp, 0x70
pop rdi
ret