Function at 0x14001fc50
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x70], 0
mov byte [rsp + 0x78], 0
mov dword [rsp + 0x7c], 2
lea rbp, [0x14014da10]
mov qword [rsp + 0x68], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0x8c], xmm0
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x44], r8d
mov rdi, rdx
mov rsi, rcx
mov eax, 8
cmp qword [rcx + 0x18], rax
jb 0x14001fcc8
mov rcx, qword [rsi]
test rcx, rcx
je 0x14001fd0e
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
lea rbx, [rsp + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov edx, 1
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x14001fd7f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea rdi, [rsp + 0x80]
mov qword [rdi - 0x18], rbp
xor edx, edx
mov r8d, 0xffffffff
mov rcx, rdi
call fcn.1400207e0
mov rcx, qword [rdi - 0x10]
call fcn.140046d00
mov qword [rdi - 0x10], 0
mov rcx, rdi
call fcn.140021a20
lea rax, [0x14014da40]
mov qword [rdi - 0x18], rax
mov rcx, qword [rdi - 0x10]
call fcn.140046d00
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0xa8]
test rsi, rsi
je 0x14001fdb0
mov r14, rbx
lea rbx, [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, rbx
mov rbx, r14
mov rdx, rsi
call fcn.140020ae0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0xa8], 0
je 0x14001fd0e
mov rsi, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x60], rax
cmp rsi, rax
je 0x140020116
lea r15, [rsp + 0x68]
lea r13, [0x14014da08]
mov rax, qword [rsp + 0x68]
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
je 0x140020045
lea rax, [rsi + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsi + 0x4c]
mov qword [rsp + 0x48], rax
xor r12d, r12d
mov qword [rsp + 0xa8], r13
mov byte [rsp + 0xf4], 0
mov dword [rsp + 0xf8], 7
lea rcx, [rsp + 0x100]
call fcn.1400201a0
lea rcx, [rsp + 0x108]
call fcn.1400201a0
lea rcx, [rsp + 0x110]
call fcn.1400201a0
lea rcx, [rsp + 0x118]
call fcn.1400201a0
mov rax, qword [rsp + 0x68]
mov rcx, r15
mov edx, r12d
call qword [rax + 0x20]
mov r14, rax
lea rax, [rax + 8]
mov rbp, rbx
cmp rax, rbx
je 0x14001fefa
mov eax, dword [r14 + 0x58]
mov dword [rsp + 0xf8], eax
lea rdx, [r14 + 0x60]
lea rcx, [rsp + 0x100]
call fcn.1400215b0
lea rdx, [r14 + 0x68]
lea rcx, [rsp + 0x108]
call fcn.1400215b0
lea rdx, [r14 + 0x70]
lea rcx, [rsp + 0x110]
call fcn.1400215b0
mov al, byte [r14 + 0x54]
mov byte [rsp + 0xf4], al
test al, al
je 0x14001fefa
mov rdi, r14
add rdi, 0x10
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
lea rdx, [rsp + 0xb0]
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x14002017c
mov ebx, dword [r14 + 0x80]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
mov edi, eax
cmp byte [rsp + 0xf4], 0
je 0x14001ff7e
mov r14b, byte [r14 + 0x84]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14001ff7e
mov rax, qword [rsp + 0x48]
mov al, byte [rax]
test al, al
je 0x14001ff7e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14001ff7e
lea rcx, [rsp + 0xb0]
mov rdx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [rsp + 0x44]
and ebx, ecx
cmp ebx, ecx
jne 0x14001ff7e
and r14b, 3
cmp r14b, 3
jne 0x14001ff7e
test dil, dil
jne 0x14001ff7e
mov edi, 1
test eax, eax
jne 0x14001ff80
xor edi, edi
mov qword [rsp + 0xa8], r13
mov rdx, qword [rsp + 0x118]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x14001ffad
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x110]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
mov rbx, rbp
jg 0x14001ffd5
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x108]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x14001fffa
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x100]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x14002001f
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x140020107
inc r12d
mov rax, qword [rsp + 0x68]
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp r12d, eax
jb 0x14001fe16
mov rax, qword [rsp + 0x48]
jmp 0x140020049
lea rax, [rsi + 0x4c]
cmp byte [rax], 0
je 0x14002016e
lea rcx, [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002016e
cmp byte [rsp + 0x78], 0
je 0x14002007b
mov rax, qword [rsp + 0x68]
mov rcx, r15
call qword [rax + 0x10]
mov byte [rsp + 0x78], 0
mov ecx, 0x98
call fcn.14011a310
mov rdi, rax
lea rax, [0x14014dab0]
mov qword [rdi], rax
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.14001fb80
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x80], eax
mov byte [rdi + 0x84], 3
xor ebp, ebp
mov qword [rdi + 0x88], rbp
lea rax, [0x14014da70]
mov qword [rdi], rax
mov byte [rdi + 0x90], 1
mov qword [rsp + 0xa8], rdi
lea rcx, [rsp + 0x80]
mov rdx, rbx
call fcn.140020fe0
mov rcx, qword [rsp + 0x70]
call fcn.140046d00
mov qword [rsp + 0x70], rbp
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140020107
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rsi, 0x78
cmp rsi, qword [rsp + 0x60]
jne 0x14001fdee
mov rsi, qword [rsp + 0x58]
cmp qword [rsi + 0x18], 8
jb 0x14002012a
mov rsi, qword [rsi]
test rsi, rsi
je 0x14002016e
lea rcx, [rsp + 0x68]
call fcn.1400218f0
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov edx, 1
mov r8d, 4
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete sil
jmp 0x140020170
xor esi, esi
lea rbp, [0x14014da10]
jmp 0x14001fd10
call fcn.140020210
mov byte [rsp + 0xf4], 0
mov ecx, eax
call fcn.1400201e0
ud2