Function at 0x140170b40
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 0x140170b9e
cmp qword [rsp + 0xa0], 0
jne 0x140170ba5
xor al, al
jmp 0x140170e75
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 0x140170bcf
xor al, al
jmp 0x140170e75
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 0x140170bf9
xor al, al
jmp 0x140170e75
xor eax, eax
mov word [rsp + 0x68], ax
jmp 0x140170c10
movzx eax, word [rsp + 0x68]
add ax, 1
mov word [rsp + 0x68], ax
movzx eax, word [rsp + 0x68]
cmp eax, dword [rsp + 0x30]
jae 0x140170e73
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 0x140170c3d
jmp 0x140170c02
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x140170c6d
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x140170c6b
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 2
test eax, eax
jne 0x140170c6b
jmp 0x140170c02
jmp 0x140170c7f
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x140170c7f
jmp 0x140170c02
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 0x140170cbc
movzx eax, byte [rsp + 0x90]
test eax, eax
jne 0x140170cbc
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
jmp 0x140170cca
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 0x140170ce6
movzx eax, word [rsp + 0x6c]
add ax, 1
mov word [rsp + 0x6c], ax
movzx eax, word [rsp + 0x6c]
cmp eax, dword [rsp + 0x40]
jae 0x140170e61
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 0x140170d13
jmp 0x140170cd8
mov rcx, qword [rsp + 0x58]
add rcx, 8
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140170d2d
jmp 0x140170cd8
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rax]
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp ecx, eax
je 0x140170d43
jmp 0x140170cd8
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.14016f910
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.14016f910
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
je 0x140170da2
jmp 0x140170cd8
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x140170e55
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
je 0x140170e0b
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 1
test eax, eax
jne 0x140170e09
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 2
test eax, eax
jne 0x140170e09
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
jne 0x140170e09
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
jne 0x140170e09
mov byte [rsp + 0x20], 1
jmp 0x140170e61
jmp 0x140170e53
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 0x140170e53
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
je 0x140170e4c
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 8
test eax, eax
jne 0x140170e4c
jmp 0x140170cd8
mov byte [rsp + 0x20], 1
jmp 0x140170e61
jmp 0x140170e5c
mov byte [rsp + 0x20], 1
jmp 0x140170e61
jmp 0x140170cd8
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140170e6e
mov al, 1
jmp 0x140170e75
jmp 0x140170c02
xor al, al
add rsp, 0x78
ret