Function at 0x180001520
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, 0x80
mov rax, qword [0x180028018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x5c]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x38], 2
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x98]
call fcn.18000cce0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1800015d1
jmp 0x18000194c
mov r9d, 2
mov r8d, 0xc
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x180001608
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x18000194c
mov eax, dword [rsp + 0x58]
dec eax
mov dword [rsp + 0x3c], eax
jmp 0x18000161e
mov eax, dword [rsp + 0x3c]
dec eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x18000194c
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x180001658
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x18000194c
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
cmp dword [rsp + 0xb0], 0
je 0x18000167a
cmp dword [rsp + 0xb0], 0xffffffff
jne 0x18000175a
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
test eax, eax
jne 0x18000175a
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x180001755
cmp dword [rsp + 0xa8], 0
je 0x180001734
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x180001734
mov eax, dword [rsp + 0xa0]
not eax
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 4]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
and eax, 0x1e
test eax, eax
je 0x18000170f
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
or eax, 1
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 4], eax
jmp 0x180001732
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
jne 0x180001732
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
jmp 0x18000174d
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0xa0]
mov eax, dword [rax + 4]
or eax, ecx
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 4], eax
mov dword [rsp + 0x38], 0
jmp 0x180001947
cmp dword [rsp + 0xb0], 1
je 0x180001772
cmp dword [rsp + 0xb0], 0xffffffff
jne 0x180001853
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 1
jne 0x180001853
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 0x18000184e
cmp dword [rsp + 0xa8], 0
je 0x18000182d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x18000182d
mov eax, dword [rsp + 0xa0]
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 0x180001808
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
or eax, 1
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 4], eax
jmp 0x18000182b
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
jne 0x18000182b
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
jmp 0x180001846
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0xa0]
mov eax, dword [rax + 4]
or eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 4], eax
mov dword [rsp + 0x38], 0
jmp 0x180001947
cmp dword [rsp + 0xb0], 2
je 0x18000186b
cmp dword [rsp + 0xb0], 0xffffffff
jne 0x180001947
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 2
jne 0x180001947
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 0x180001947
cmp dword [rsp + 0xa8], 0
je 0x180001926
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x180001926
mov eax, dword [rsp + 0xa0]
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 0x180001901
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
or eax, 1
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
jmp 0x180001924
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
jne 0x180001924
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
jmp 0x18000193f
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0xa0]
mov eax, dword [rax + 4]
or eax, ecx
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov dword [rsp + 0x38], 0
jmp 0x180001614
cmp qword [rsp + 0x20], 0
je 0x18000195e
mov rcx, qword [rsp + 0x20]
call fcn.18000ddf0
cmp dword [rsp + 0x40], 0
jne 0x18000196d
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000ddd0
add rsp, 0x80
pop rdi
ret