Function at 0x180001990
Capabilities:
Compare security identifiers

Disassembly:
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 0x180001a3c
jmp 0x180001c2b
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 0x180001a73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x180001c2b
mov eax, dword [rsp + 0x58]
dec eax
mov dword [rsp + 0x3c], eax
jmp 0x180001a89
mov eax, dword [rsp + 0x3c]
dec eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x180001c2b
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 0x180001ac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x180001c2b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
cmp dword [rsp + 0xa0], 0
je 0x180001ae1
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x180001b42
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
test eax, eax
jne 0x180001b42
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 0x180001b3d
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x180001b35
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
mov dword [rsp + 0x38], 0
jmp 0x180001c26
cmp dword [rsp + 0xa0], 1
je 0x180001b56
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x180001bb5
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 1
jne 0x180001bb5
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 0x180001bb3
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x180001bab
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
mov dword [rsp + 0x38], 0
jmp 0x180001c26
cmp dword [rsp + 0xa0], 2
je 0x180001bc9
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x180001c26
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 2
jne 0x180001c26
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 0x180001c26
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x180001c1e
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
mov dword [rsp + 0x38], 0
jmp 0x180001a7f
cmp qword [rsp + 0x20], 0
je 0x180001c3d
mov rcx, qword [rsp + 0x20]
call fcn.18000ddf0
cmp dword [rsp + 0x40], 0
jne 0x180001c4c
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