Function at 0x140015084
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14002a288]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12d, r12d
mov qword [rbp - 1], rcx
lea rax, [rbp - 0x11]
mov dword [rbp - 0x19], r12d
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x19]
lea rax, [rbp - 0x15]
mov dword [rbp - 0x15], r12d
mov qword [rsp + 0x28], rax
lea rdx, [0x140022350]
xor r8d, r8d
mov qword [rsp + 0x20], r12
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
jne 0x140015138
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
je 0x140015138
cmp eax, 0x7a
je 0x140015138
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140015131
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov r9d, ebx
mov edx, 0xa6
call fcn.140002c38
mov eax, ebx
jmp 0x140015450
mov edx, dword [rbp - 0x19]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x14001516e
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov r15d, 0x8007000e
mov edx, 0xaa
mov r9d, r15d
call fcn.140002c38
jmp 0x14001544d
mov ebx, dword [rbp - 0x15]
xor ecx, ecx
lea rdx, [rbx*2 + 2]
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov qword [rbp - 9], rax
mov rdi, rax
test rax, rax
je 0x140015418
mov word [rax], r12w
lea r9, [rbp - 0x19]
mov word [rax + rbx*2], r12w
lea rdx, [0x140022350]
lea rax, [rbp - 0x11]
mov r8, r14
mov qword [rsp + 0x30], rax
xor ecx, ecx
lea rax, [rbp - 0x15]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
jne 0x1400151e8
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0xb6
call fcn.140002c6c
mov r15d, eax
jmp 0x140015436
mov ebx, 0x44
xor ecx, ecx
mov edx, ebx
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140015220
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov r15d, 0x8007000e
lea edx, [rbx + 0x75]
mov r9d, r15d
call fcn.140002c38
jmp 0x140015408
xor edx, edx
mov dword [rbp - 0x19], ebx
lea r9, [rbp - 0x19]
mov r8, rsi
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
jne 0x140015256
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0xbf
call fcn.140002c6c
mov r15d, eax
jmp 0x140015408
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x14001528c
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov r15d, 0x8007000e
mov edx, 0xc2
mov r9d, r15d
call fcn.140002c38
jmp 0x1400153f6
xor edx, edx
mov dword [rbp - 0x19], ebx
lea r9, [rbp - 0x19]
mov r8, rdi
lea ecx, [rdx + 0x16]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
jne 0x1400152c2
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0xc8
call fcn.140002c6c
mov r15d, eax
jmp 0x1400153f6
xor r13d, r13d
mov qword [rbp + 0xf], rdi
lea rcx, [rbp + 0x27]
mov qword [rbp + 0x17], rsi
lea rax, [rbp + 0xf]
mov qword [rbp + 0x1f], r14
cmp rcx, rax
lea r12, [rbp + 0xf]
mov r15d, 8
sbb rbx, rbx
not rbx
and ebx, 3
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
add r15d, 8
lea r12, [r12 + 8]
add r15d, eax
inc r13
cmp r13, rbx
jne 0x1400152ef
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
xor r12d, r12d
mov rbx, rax
test rax, rax
jne 0x140015346
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov r15d, 0x8007000e
mov edx, 0xd4
mov r9d, r15d
call fcn.140002c38
jmp 0x1400153e8
mov r13d, 2
mov edx, r15d
mov r8d, r13d
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeAcl]
test eax, eax
jne 0x140015366
mov edx, 0xd8
jmp 0x1400153d5
lea r15, [rbp + 0xf]
mov r9, qword [r15]
mov r8d, 0x10000000
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
test eax, eax
je 0x1400153d0
add r15, 8
lea rax, [rbp + 0x27]
cmp r15, rax
jne 0x14001536a
mov r13, qword [rbp - 1]
lea rax, [rbp + 7]
cmp r13, rax
je 0x1400153cb
mov r12, qword [r13]
test r12, r12
je 0x1400153c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, r12
mov r15d, eax
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor r12d, r12d
mov qword [r13], rbx
mov ebx, r12d
mov r15d, r12d
jmp 0x1400153e8
mov edx, 0xe0
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
call fcn.140002c6c
mov r15d, eax
test rbx, rbx
je 0x1400153f6
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
test rdi, rdi
je 0x140015404
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
mov rdi, qword [rbp - 9]
test rsi, rsi
je 0x140015436
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
jmp 0x140015436
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov r15d, 0x8007000e
mov edx, 0xad
mov r9d, r15d
call fcn.140002c38
test rdi, rdi
je 0x140015444
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
mov eax, r15d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001ae30
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret