Function at 0x1400851a0
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push r12
push r15
lea rbp, [rsp - 0x630]
sub rsp, 0x730
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rbp + 0x610], rax
movups xmm0, xmmword [str.mcutil64_install_dir]
movzx eax, word [0x14033c428]
xor edx, edx
movups xmm1, xmmword [0x14033c410]
mov r15, rcx
mov word [rbp - 0x30], ax
movups xmmword [rbp - 0x58], xmm0
movsd xmm0, qword [0x14033c420]
movsd qword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x48], xmm1
call fcn.140084860
test eax, eax
je 0x14008559e
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.14013d7a0
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x208
call fcn.14013d7a0
xor r12d, r12d
mov dword [rbp - 0x7c], 0x208
xor edx, edx
mov dword [rbp - 0x80], r12d
mov r8d, 0x208
lea rcx, [rbp + 0x400]
call fcn.14013d7a0
lea rax, [rbp - 0x7c]
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x80]
lea rax, [rbp - 0x20]
mov rcx, 0xffffffff80000002
lea r8, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMcAfeePlatform
call fcn.140083df0
test eax, eax
jne 0x1400852a7
cmp dword [rbp - 0x80], 1
jne 0x1400852a7
cmp r12w, word [rbp - 0x20]
je 0x1400852a7
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.140084860
test eax, eax
je 0x14008559e
lea rcx, [rbp + 0x1f0]
call fcn.1400855f0
test eax, eax
jne 0x1400855c4
cmp r12w, word [rbp + 0x1f0]
je 0x1400855c4
lea r8, [rbp + 0x1f0]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14014a108
lea r8, str.mcutil
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.14014a084
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.14013d7a0
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call fcn.140084610
test eax, eax
je 0x1400855c4
cmp r12w, word [rbp - 0x20]
je 0x1400855c4
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.140084860
test eax, eax
jne 0x1400855c4
mov qword [rsp + 0x728], rdi
mov rdi, r12
mov qword [rsp + 0x720], r14
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x68], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r14d, r12d
test eax, eax
je 0x1400854b7
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x60], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400853c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400854b7
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400854b7
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov r8, rdi
mov edx, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400854b7
lea rax, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], r12d
mov r8d, 0x20
mov dword [rsp + 0x40], r12d
mov dl, 2
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400854b7
mov qword [rsp + 0x758], rbx
mov ebx, r12d
cmp dword [rdi], r12d
jbe 0x1400854af
mov qword [rsp + 0x760], rsi
nop word [rax + rax]
mov rcx, qword [rsp + 0x70]
mov edx, ebx
add rdx, rdx
mov esi, ebx
mov rdx, qword [rdi + rdx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140085493
inc ebx
cmp ebx, dword [rdi]
jb 0x140085470
jmp 0x1400854a7
lea rax, [rsi + 1]
add rax, rax
test byte [rdi + rax*8], 4
mov eax, 1
cmovne r14d, eax
mov rsi, qword [rsp + 0x760]
mov rbx, qword [rsp + 0x758]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400854c7
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test rdi, rdi
je 0x1400854d5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x728]
test rcx, rcx
je 0x1400854ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
mov r14, qword [rsp + 0x720]
je 0x14008559e
mov qword [rbp - 0x78], r12
lea rax, [rbp - 0x20]
mov qword [rbp - 0x68], r12
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x60], 7
nop dword [rax]
inc r8
cmp word [rax + r8*2], r12w
jne 0x140085520
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x78]
call fcn.140032810
mov r9, qword [rbp - 0x68]
cmp r9, 0x103
ja 0x14008556a
cmp qword [rbp - 0x60], 8
lea r8, [rbp - 0x78]
mov edx, 0x104
lea rcx, [rbp - 0x20]
cmovae r8, qword [rbp - 0x78]
call fcn.14014a170
mov rax, qword [rbp - 0x68]
mov word [rbp + rax*2 - 0x20], r12w
lea rcx, [rbp - 0x78]
call fcn.140033a90
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.14014a99c
lea r8, [rbp - 0x58]
lea ecx, [rax*2 + 2]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
call fcn.140084220
mov rcx, r15
call fcn.140084ad0
xor eax, eax
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x730
pop r15
pop r12
pop rbp
ret
cmp r12w, word [rbp + 0x400]
je 0x1400855e1
lea rdx, [rbp + 0x400]
mov rcx, r15
call fcn.140084860
test eax, eax
je 0x14008559e
mov eax, 0x7e
jmp 0x1400855a8