Function at 0x140170280
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 0x1401702d6
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x2c], 0
jmp 0x140170302
cmp dword [rsp + 0x88], 2
jne 0x1401702f8
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x2c], 1
jmp 0x140170302
mov eax, 3
jmp 0x14017063a
cmp qword [rsp + 0x20], 0
jne 0x140170313
mov eax, dword [rsp + 0x30]
jmp 0x14017063a
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 0x140170352
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1d
jmp 0x14017063a
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x50], 0
jmp 0x14017036f
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x50], eax
jae 0x140170636
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 0x1401703b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1d
jmp 0x14017063a
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 1]
and eax, 0x10
test eax, eax
je 0x1401703c6
jmp 0x140170364
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x48]
add rcx, 0x10
call fcn.1400124d0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140170631
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x48]
add rcx, 0x10
lea rdx, [rsp + 0x58]
call fcn.140014140
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x140170426
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x25]
test eax, eax
jne 0x140170426
jmp 0x1401703e0
movzx eax, byte [rsp + 0x2c]
test eax, eax
jne 0x14017043e
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x24]
test eax, eax
jne 0x14017043e
jmp 0x1401703e0
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 0x14017062c
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x200
test eax, eax
je 0x1401704c5
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
jne 0x1401704aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1e
jmp 0x14017063a
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 0x140170594
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x100
test eax, eax
je 0x140170528
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.14016fe70
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140170526
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1f
jmp 0x14017063a
jmp 0x140170594
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x400
test eax, eax
je 0x140170594
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.14016fba0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140170589
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1f
jmp 0x14017063a
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x68], 0
je 0x14017062a
cmp dword [rsp + 0x88], 1
jne 0x1401705b9
mov rcx, qword [rsp + 0x80]
call fcn.14016f800
jmp 0x1401705d0
cmp dword [rsp + 0x88], 2
jne 0x1401705d0
mov rcx, qword [rsp + 0x80]
call fcn.14016f7a0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x88], 1
jne 0x140170603
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 0x14017062a
cmp dword [rsp + 0x88], 2
jne 0x14017062a
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 0x140170631
jmp 0x1401703e0
jmp 0x140170364
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret