Function at 0x100018f0
Capabilities:
Compare security identifiers

Disassembly:
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 0x1000198a
jmp 0x10001b7b
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 0x100019c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x10001b7b
mov eax, dword [rsp + 0x50]
sub eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x100019d9
mov eax, dword [rsp + 0x3c]
sub eax, 1
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x10001b7b
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 0x10001a13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x10001b7b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x90], 0
je 0x10001a31
cmp dword [rsp + 0x90], 0xffffffff
jne 0x10001a92
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
test eax, eax
jne 0x10001a92
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 0x10001a8d
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x10001a85
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
mov dword [rsp + 0x38], 0
jmp 0x10001b76
cmp dword [rsp + 0x90], 1
je 0x10001aa6
cmp dword [rsp + 0x90], 0xffffffff
jne 0x10001b05
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 1
jne 0x10001b05
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 0x10001b03
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x10001afb
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
mov dword [rsp + 0x38], 0
jmp 0x10001b76
cmp dword [rsp + 0x90], 2
je 0x10001b19
cmp dword [rsp + 0x90], 0xffffffff
jne 0x10001b76
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 2
jne 0x10001b76
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 0x10001b76
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
and eax, 0xffff
test eax, eax
je 0x10001b6e
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
mov dword [rsp + 0x38], 0
jmp 0x100019ce
cmp qword [rsp + 0x20], 0
je 0x10001b8d
mov rcx, qword [rsp + 0x20]
call fcn.1000dc60
cmp dword [rsp + 0x40], 0
jne 0x10001b9c
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add rsp, 0x70
pop rdi
ret