Function at 0x1400493f4
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x140099938]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r12d, r12d
mov rdi, rdx
lea r14, str.CUserPrivilege::HasAdmin
lea r13d, [r12 + 5]
lea r8, [0x140081e20]
mov rdx, r14
mov ecx, r13d
mov rbx, r12
mov qword [rsp + 0x68], r12
mov ebp, r12d
call fcn.140009480
mov byte [rsp + 0x78], r12b
mov byte [rsp + 0x79], r12b
mov byte [rsp + 0x7a], r12b
mov byte [rsp + 0x7b], r12b
mov byte [rsp + 0x7c], r12b
mov byte [rsp + 0x7d], r13b
cmp rdi, r12
je 0x140049478
mov qword [rsp + 0x70], rdi
jmp 0x1400494ee
lea r8, str.OpenThreadToken._n
mov rdx, r14
mov ecx, r13d
call fcn.140009480
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea edi, [r8 + 8]
lea r9, [rsp + 0x70]
mov rcx, rax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, r12d
jne 0x1400494ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140049699
lea r8, str.OpenProcessToken._n
mov rdx, r14
mov ecx, r13d
call fcn.140009480
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
mov rcx, rax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, r12d
je 0x140049699
lea r8, str.GetTokenInformation._n
mov rdx, r14
mov ecx, r13d
call fcn.140009480
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
lea r11, [rsp + 0x60]
lea edx, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
jne 0x140049699
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140049699
mov ecx, dword [rsp + 0x60]
lea r8d, [rax - 0x40]
lea rdx, str...CommonPrivilege.cpp
call fcn.140048afc
mov rbx, rax
cmp rax, r12
je 0x140049699
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov r8, rbx
mov edx, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
je 0x140049699
lea r8, str.AllocateAndInitializeSid._n
mov rdx, r14
mov ecx, r13d
call fcn.140009480
lea r11, [rsp + 0x68]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, r12d
je 0x140049699
lea r8, str.Check_groups._n
mov rdx, r14
mov ecx, r13d
call fcn.140009480
mov edi, r12d
cmp dword [rbx], r12d
jbe 0x14004966b
lea rsi, [rbx + 8]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, r12d
jne 0x14004961b
inc edi
add rsi, 0x10
cmp edi, dword [rbx]
jb 0x1400495fc
jmp 0x14004966b
mov eax, edi
mov rdx, r14
inc rax
add rax, rax
mov ecx, dword [rbx + rax*8]
test cl, 4
je 0x140049644
lea r8, str.PRIV_ADMIN._n
mov ecx, r13d
call fcn.140009480
mov ebp, 1
jmp 0x14004966b
test cl, 0x10
mov ecx, r13d
je 0x14004965f
lea r8, str.PRIV_ADMIN_DENYONLY._n
call fcn.140009480
mov ebp, 2
jmp 0x14004966b
lea r8, str.PRIV_NONE._n
call fcn.140009480
lea r8, [0x140081e40]
mov rdx, r14
mov ecx, r13d
call fcn.140009480
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rbx
mov qword [rsp + 0x68], r12
call fcn.140048b24
mov eax, ebp
jmp 0x1400496c7
mov rcx, rbx
call fcn.140048b24
lea r8, str.____failed._n
mov rdx, r14
mov ecx, r13d
call fcn.140009480
lea r8, [0x140081e40]
mov rdx, r14
mov ecx, r13d
call fcn.140009480
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005bad0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret