Function at 0x14002a160
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rbp + 0x78], rax
lea rax, vtable.ATL::CAccessToken.0
mov qword [rbp + 0x58], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
xor r13d, r13d
mov qword [rbp + 0x70], r13
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
lea r9, [rbp + 0x50]
lea edx, [r13 + 8]
lea r8d, [r13 + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x14002a675
lea rcx, [rbp + 0x58]
mov rax, qword [rbp + 0x58]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x60], rax
xor edx, edx
lea r8d, [r13 + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14010ef60
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x68], 0x11
mov dword [rbp - 0x78], r13d
mov dword [rbp - 0x74], 0xa
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
movss xmm1, dword [0x140159424]
movss dword [rsp + 0x6c], xmm1
movss xmm0, dword [0x140159420]
movss dword [rsp + 0x70], xmm0
movss xmm1, dword [0x140159428]
movss dword [rsp + 0x74], xmm1
xor ecx, ecx
movss xmm2, dword [0x140159430]
movabs rdx, 0x8000000000000000
movss xmm0, dword [0x140159434]
comiss xmm2, xmm0
jb 0x14002a282
subss xmm2, xmm0
comiss xmm2, xmm0
jae 0x14002a282
mov rcx, rdx
cvttss2si rax, xmm2
add rax, rcx
mov qword [rsp + 0x78], rax
xor ecx, ecx
movss xmm1, dword [0x14015942c]
comiss xmm1, xmm0
jb 0x14002a2aa
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x14002a2aa
mov rcx, rdx
cvttss2si rax, xmm1
add rax, rcx
cmp rax, 0x11
cmovb rax, r13
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x60], r13
mov byte [rbp - 0x58], 1
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x58]
call fcn.140028710
test al, al
je 0x14002a66b
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
call fcn.14002ad00
cmp qword [rsp + 0x60], 0
je 0x14002a3ff
mov ecx, r13d
mov r15, qword [rsp + 0x58]
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x14002a349
nop
mov eax, ecx
cmp qword [r15 + rax*8], 0
jne 0x14002a341
inc ecx
cmp ecx, esi
jb 0x14002a330
jmp 0x14002a349
mov eax, ecx
mov rdi, qword [r15 + rax*8]
jmp 0x14002a34c
mov rdi, r13
test rdi, rdi
je 0x14002a3ff
mov rbx, qword [rsp + 0x28]
nop word [rax + rax]
mov r12, rdi
test rdi, rdi
jne 0x14002a36d
mov rdi, r13
jmp 0x14002a3a1
mov r8, qword [rdi + 0x80]
test r8, r8
jne 0x14002a39e
mov r8, r13
xor edx, edx
mov eax, dword [rdi + 0x88]
div esi
inc edx
cmp edx, esi
jae 0x14002a39e
mov rcx, qword [r15 + rdx*8]
test rcx, rcx
cmovne r8, rcx
inc edx
test r8, r8
je 0x14002a388
mov rdi, r8
mov r14, rbx
mov qword [rbp - 0x48], rbx
cmp rbx, qword [rsp + 0x30]
jb 0x14002a3c6
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x20]
call fcn.140029f10
test al, al
je 0x14002a3f4
mov rbx, qword [rsp + 0x28]
imul rcx, r14, 0x78
add rcx, qword [rsp + 0x20]
mov qword [rbp - 0x40], rcx
je 0x14002a3e2
mov rdx, r12
call fcn.140028cd0
mov rbx, qword [rsp + 0x28]
inc rbx
mov qword [rsp + 0x28], rbx
test rdi, rdi
je 0x14002a404
jmp 0x14002a360
mov ecx, 0x8007000e
call fcn.140029920
int3
mov rbx, qword [rsp + 0x28]
mov r15, r13
test rbx, rbx
je 0x14002a5cd
mov r12, r13
cmp r13, rbx
jae 0x14002a5c2
mov r14, qword [rsp + 0x20]
lea rcx, [rbp - 0x30]
call fcn.140029610
mov rdi, rax
lea rsi, [r14 + 8]
add rsi, r12
je 0x14002a47a
lea rbx, [rax + 8]
test rbx, rbx
je 0x14002a47a
cmp byte [r12 + r14 + 0x4c], 0
je 0x14002a47a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002a47a
cmp byte [rdi + 0x4c], 0
je 0x14002a47a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002a47a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
jmp 0x14002a47c
xor bl, bl
inc r15
add r12, 0x78
lea rax, vtable.ATL::CSid.0
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002a4ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002a4ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002a4e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002a506
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x14002a51d
mov rbx, qword [rsp + 0x28]
cmp r15, rbx
jb 0x14002a41c
jmp 0x14002a5cd
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14002a553
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14002a54a
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
add rbx, 0x78
sub rdi, 1
jne 0x14002a531
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140117680
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x50], rax
mov rcx, qword [rbp - 0x60]
call fcn.140117680
lea rcx, [rsp + 0x58]
call fcn.140028fd0
nop
lea rax, vtable.ATL::CAccessToken.0
mov qword [rbp + 0x58], rax
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002a59e
test rcx, rcx
je 0x14002a59a
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x68], r13
test rcx, rcx
je 0x14002a5ad
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp + 0x60], r13
mov edx, 8
mov rcx, qword [rbp + 0x70]
call fcn.1400ee178
mov al, 1
jmp 0x14002a696
mov ecx, 0x80070057
call fcn.140029920
nop
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14002a5ff
test rbx, rbx
je 0x14002a5f4
nop dword [rax]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
add rdi, 0x78
sub rbx, 1
jne 0x14002a5e0
mov rcx, qword [rsp + 0x20]
call fcn.140117680
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x50], rax
mov rcx, qword [rbp - 0x60]
call fcn.140117680
lea rcx, [rsp + 0x58]
call fcn.140028fd0
nop
lea rax, vtable.ATL::CAccessToken.0
mov qword [rbp + 0x58], rax
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002a64a
test rcx, rcx
je 0x14002a646
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x68], r13
test rcx, rcx
je 0x14002a659
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp + 0x60], r13
mov edx, 8
mov rcx, qword [rbp + 0x70]
call fcn.1400ee178
xor al, al
jmp 0x14002a696
lea rcx, [rsp + 0x50]
call fcn.1400291d0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x1401e1fe0]
lea rcx, [rsp + 0x40]
call fcn.14010ee78
nop
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.1400ede70
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret