Function at 0x1401b7b20
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
mov r15, rdx
xor r12d, r12d
mov qword [rbp - 0x31], r12
mov word [rbp - 0x29], r12w
lea rcx, [rbp - 0x31]
call fcn.140213a4c
mov rdi, rax
mov qword [rbp - 0x31], rax
mov r14, qword [rsi]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b7b9c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rsi], rdi
lea rax, [rdi + 1]
test rax, 0xfffffffffffffffe
jne 0x1401b7c1a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1401b7c07
lea rax, str.HelloProvisionStatusAction___Failed_to_get_logged_on_UserToken.
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x80
mov dword [rbp - 0x39], esi
lea rax, [rbp - 0x39]
mov qword [rbp + 0x17], rax
mov ebx, 4
mov qword [rbp + 0x1f], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dc256]
call fcn.140001158
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
jmp 0x1401b7d64
mov r9d, 8
mov dword [rbp - 0x35], r9d
lea rax, [rbp - 0x35]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea ebx, [r9 - 4]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x1401b7cb5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r14d, eax
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1401b7c9c
lea rax, str.HelloProvisionStatusAction___Failed_to_get_logged_on_user_sid_from_token.
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], DllRegisterServer
mov dword [rbp - 0x39], r14d
lea rax, [rbp - 0x39]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dc256]
call fcn.140001158
mov qword [rsi], r12
movzx edi, r14w
or edi, 0x80070000
test r14d, r14d
cmovle edi, r14d
jmp 0x1401b7d64
mov rbx, qword [r12]
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidSid]
test eax, eax
jne 0x1401b7d05
mov r14, qword [rsi]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b7cec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rsi], r12
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1401b7d43
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0x1401b7d53
mov r14, qword [rsi]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b7d3b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rsi], r12
mov edi, 0x80070558
test rbx, rbx
je 0x1401b7d64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1401b7d64
test rbx, rbx
je 0x1401b7d61
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, r12d
lea rcx, [rbp - 0x31]
call fcn.14021339c
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402dfdb0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret