Function at 0x14017ae10
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x88], 0
je 0x14017ae6e
cmp qword [rsp + 0xa0], 0
jne 0x14017ae75
xor al, al
jmp 0x14017b145
mov r9d, 2
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x14017ae9f
xor al, al
jmp 0x14017b145
mov r9d, 2
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x14017aec9
xor al, al
jmp 0x14017b145
xor eax, eax
mov word [rsp + 0x68], ax
jmp 0x14017aee0
movzx eax, word [rsp + 0x68]
add ax, 1
mov word [rsp + 0x68], ax
movzx eax, word [rsp + 0x68]
cmp eax, dword [rsp + 0x30]
jae 0x14017b143
movzx edx, word [rsp + 0x68]
lea r8, [rsp + 0x28]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x14017af0d
jmp 0x14017aed2
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x14017af3d
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x14017af3b
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 2
test eax, eax
jne 0x14017af3b
jmp 0x14017aed2
jmp 0x14017af4f
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x14017af4f
jmp 0x14017aed2
mov rcx, qword [rsp + 0x28]
add rcx, 8
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14017af8c
movzx eax, byte [rsp + 0x90]
test eax, eax
jne 0x14017af8c
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
jmp 0x14017af9a
mov rax, qword [rsp + 0x28]
add rax, 8
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x6c], ax
jmp 0x14017afb6
movzx eax, word [rsp + 0x6c]
add ax, 1
mov word [rsp + 0x6c], ax
movzx eax, word [rsp + 0x6c]
cmp eax, dword [rsp + 0x40]
jae 0x14017b131
movzx edx, word [rsp + 0x6c]
lea r8, [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x14017afe3
jmp 0x14017afa8
mov rcx, qword [rsp + 0x58]
add rcx, 8
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14017affd
jmp 0x14017afa8
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rax]
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp ecx, eax
je 0x14017b013
jmp 0x14017afa8
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax + 0x98]
mov rax, qword [rsp + 0x58]
mov edx, dword [rax + 4]
mov rcx, qword [rsp + 0x80]
call fcn.140179be0
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax + 0x98]
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 4]
mov rcx, qword [rsp + 0x80]
call fcn.140179be0
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
je 0x14017b072
jmp 0x14017afa8
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x14017b125
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
je 0x14017b0db
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x14017b0d9
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 2
test eax, eax
jne 0x14017b0d9
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
jne 0x14017b0d9
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
jne 0x14017b0d9
mov byte [rsp + 0x20], 1
jmp 0x14017b131
jmp 0x14017b123
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rax + 1]
and ecx, 3
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 3
cmp ecx, eax
jne 0x14017b123
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
je 0x14017b11c
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
jne 0x14017b11c
jmp 0x14017afa8
mov byte [rsp + 0x20], 1
jmp 0x14017b131
jmp 0x14017b12c
mov byte [rsp + 0x20], 1
jmp 0x14017b131
jmp 0x14017afa8
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14017b13e
mov al, 1
jmp 0x14017b145
jmp 0x14017aed2
xor al, al
add rsp, 0x78
ret