Function at 0x140170a70
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 0x140170ace
cmp qword [rsp + 0xa0], 0
jne 0x140170ad5
xor al, al
jmp 0x140170da5
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 0x140170aff
xor al, al
jmp 0x140170da5
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 0x140170b29
xor al, al
jmp 0x140170da5
xor eax, eax
mov word [rsp + 0x68], ax
jmp 0x140170b40
movzx eax, word [rsp + 0x68]
add ax, 1
mov word [rsp + 0x68], ax
movzx eax, word [rsp + 0x68]
cmp eax, dword [rsp + 0x30]
jae 0x140170da3
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 0x140170b6d
jmp 0x140170b32
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x140170b9d
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x140170b9b
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 2
test eax, eax
jne 0x140170b9b
jmp 0x140170b32
jmp 0x140170baf
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x140170baf
jmp 0x140170b32
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 0x140170bec
movzx eax, byte [rsp + 0x90]
test eax, eax
jne 0x140170bec
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
jmp 0x140170bfa
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 0x140170c16
movzx eax, word [rsp + 0x6c]
add ax, 1
mov word [rsp + 0x6c], ax
movzx eax, word [rsp + 0x6c]
cmp eax, dword [rsp + 0x40]
jae 0x140170d91
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 0x140170c43
jmp 0x140170c08
mov rcx, qword [rsp + 0x58]
add rcx, 8
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140170c5d
jmp 0x140170c08
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rax]
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp ecx, eax
je 0x140170c73
jmp 0x140170c08
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.14016f840
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.14016f840
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
je 0x140170cd2
jmp 0x140170c08
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x140170d85
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
je 0x140170d3b
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x140170d39
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 2
test eax, eax
jne 0x140170d39
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
jne 0x140170d39
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
jne 0x140170d39
mov byte [rsp + 0x20], 1
jmp 0x140170d91
jmp 0x140170d83
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 0x140170d83
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
je 0x140170d7c
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
jne 0x140170d7c
jmp 0x140170c08
mov byte [rsp + 0x20], 1
jmp 0x140170d91
jmp 0x140170d8c
mov byte [rsp + 0x20], 1
jmp 0x140170d91
jmp 0x140170c08
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140170d9e
mov al, 1
jmp 0x140170da5
jmp 0x140170b32
xor al, al
add rsp, 0x78
ret