Function at 0x14028584c
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x14049e048]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rcx], r14d
mov qword [r11 - 0x38], r14
mov qword [r11 - 0x30], r14
lea rdx, [r11 - 0x38]
lea rcx, [0x140350ea0]
call qword [sym.imp.ole32.dll_CoGetCallContext]
test eax, eax
js 0x140285adb
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140285adb
mov rax, qword [rcx]
call qword [rax + GetActiveObject]
test eax, eax
jns 0x1402858d0
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x140285ae3
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x88]
mov edx, 8
lea r8d, [rdx - 7]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, eax
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
mov ebx, eax
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x80], r14
test ebx, ebx
jns 0x140285931
mov dword [rsp + 0x60], ebx
lea rdx, [0x1404488d0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
test edi, edi
jne 0x14028593f
mov eax, 0x8000ffff
jmp 0x140285ae3
mov dword [rsp + 0x78], r14d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edi, [r9 + 2]
mov edx, edi
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140285990
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140285990
mov dword [rsp + 0x64], 0x8000ffff
lea rdx, [0x1404488d0]
lea rcx, [rsp + 0x64]
call sub.VCRUNTIME140.dll__CxxThrowException
mov edx, dword [rsp + 0x78]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
jne 0x1402859c0
mov dword [rsp + 0x68], 0x8007000e
lea rdx, [0x1404488d0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
mov r8, rbx
mov edx, edi
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1402859ff
mov dword [rsp + 0x6c], 0x8000ffff
lea rdx, [0x1404488d0]
lea rcx, [rsp + 0x6c]
call sub.VCRUNTIME140.dll__CxxThrowException
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x88], r14
mov dword [rsp + 0x98], r14d
mov word [rsp + 0x9c], 0x500
mov qword [rsp + 0x90], r14
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8d, edi
mov dl, 1
lea rcx, [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140285a8d
mov dword [rsp + 0x70], 0x8000ffff
lea rdx, [0x1404488d0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
mov edi, r14d
jmp 0x140285aba
cmp edi, dword [rbx]
jae 0x140285abf
mov edx, edi
add rdx, rdx
mov rdx, qword [rbx + rdx*8 + 8]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140285ab8
mov dword [rsi], 1
inc edi
cmp dword [rsi], r14d
je 0x140285a92
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
xor eax, eax
jmp 0x140285ae3
xor eax, eax
jmp 0x140285ae3
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140088c50
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret