Function at 0x1401701b0
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 0x140170206
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x2c], 0
jmp 0x140170232
cmp dword [rsp + 0x88], 2
jne 0x140170228
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x2c], 1
jmp 0x140170232
mov eax, 3
jmp 0x14017056a
cmp qword [rsp + 0x20], 0
jne 0x140170243
mov eax, dword [rsp + 0x30]
jmp 0x14017056a
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 0x140170282
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1d
jmp 0x14017056a
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x50], 0
jmp 0x14017029f
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x50], eax
jae 0x140170566
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 0x1401702e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1d
jmp 0x14017056a
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 1]
and eax, 0x10
test eax, eax
je 0x1401702f6
jmp 0x140170294
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x48]
add rcx, 0x10
call fcn.14004ff40
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140170561
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x48]
add rcx, 0x10
lea rdx, [rsp + 0x58]
call fcn.140014b50
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x140170356
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x25]
test eax, eax
jne 0x140170356
jmp 0x140170310
movzx eax, byte [rsp + 0x2c]
test eax, eax
jne 0x14017036e
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x24]
test eax, eax
jne 0x14017036e
jmp 0x140170310
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 0x14017055c
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x200
test eax, eax
je 0x1401703f5
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
jne 0x1401703da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1e
jmp 0x14017056a
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 0x1401704c4
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x100
test eax, eax
je 0x140170458
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.14016fda0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140170456
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1f
jmp 0x14017056a
jmp 0x1401704c4
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
and eax, 0x400
test eax, eax
je 0x1401704c4
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.14016fad0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1401704b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], r11d
mov eax, 0x1f
jmp 0x14017056a
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x68], 0
je 0x14017055a
cmp dword [rsp + 0x88], 1
jne 0x1401704e9
mov rcx, qword [rsp + 0x80]
call fcn.14016f730
jmp 0x140170500
cmp dword [rsp + 0x88], 2
jne 0x140170500
mov rcx, qword [rsp + 0x80]
call fcn.14016f6d0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x88], 1
jne 0x140170533
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 0x14017055a
cmp dword [rsp + 0x88], 2
jne 0x14017055a
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 0x140170561
jmp 0x140170310
jmp 0x140170294
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret