Function at 0x14017a550
Capabilities:
Compare security identifiers

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov byte [rsp + 0x2c], 0
cmp dword [rsp + 0x88], 1
jne 0x14017a5a6
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x2c], 0
jmp 0x14017a5d2
cmp dword [rsp + 0x88], 2
jne 0x14017a5c8
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x2c], 1
jmp 0x14017a5d2
mov eax, 3
jmp 0x14017a90a
cmp qword [rsp + 0x20], 0
jne 0x14017a5e3
mov eax, dword [rsp + 0x30]
jmp 0x14017a90a
mov r9d, 2
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x14017a622
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1d
jmp 0x14017a90a
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x50], 0
jmp 0x14017a63f
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x50], eax
jae 0x14017a906
lea r8, [rsp + 0x38]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x14017a684
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1d
jmp 0x14017a90a
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 1]
and eax, 0x10
test eax, eax
je 0x14017a696
jmp 0x14017a634
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x48]
add rcx, 0x10
call fcn.1400181a0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14017a901
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x48]
add rcx, 0x10
lea rdx, [rsp + 0x58]
call fcn.140013540
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x14017a6f6
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x25]
test eax, eax
jne 0x14017a6f6
jmp 0x14017a6b0
movzx eax, byte [rsp + 0x2c]
test eax, eax
jne 0x14017a70e
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x24]
test eax, eax
jne 0x14017a70e
jmp 0x14017a6b0
mov rcx, qword [rsp + 0x38]
add rcx, 8
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x18]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14017a8fc
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x200
test eax, eax
je 0x14017a795
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
jne 0x14017a77a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1e
jmp 0x14017a90a
mov eax, dword [rsp + 0x28]
sub eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
sub eax, 1
mov dword [rsp + 0x50], eax
jmp 0x14017a864
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x100
test eax, eax
je 0x14017a7f8
mov r9, qword [rsp + 0x60]
mov r9, qword [r9 + 0x28]
mov r9, qword [r9 + 0x18]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.14017a140
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14017a7f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1f
jmp 0x14017a90a
jmp 0x14017a864
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x400
test eax, eax
je 0x14017a864
mov r9, qword [rsp + 0x60]
mov r9, qword [r9 + 0x28]
mov r9, qword [r9 + 0x18]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140179e70
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14017a859
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1f
jmp 0x14017a90a
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x68], 0
je 0x14017a8fa
cmp dword [rsp + 0x88], 1
jne 0x14017a889
mov rcx, qword [rsp + 0x80]
call fcn.140179ad0
jmp 0x14017a8a0
cmp dword [rsp + 0x88], 2
jne 0x14017a8a0
mov rcx, qword [rsp + 0x80]
call fcn.140179a70
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x88], 1
jne 0x14017a8d3
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x51], 1
jmp 0x14017a8fa
cmp dword [rsp + 0x88], 2
jne 0x14017a8fa
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x52], 1
jmp 0x14017a901
jmp 0x14017a6b0
jmp 0x14017a634
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret