Function at 0x14007a808
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov rax, qword [0x1400c87d8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov qword [rsp + 0x60], rdx
lea rbx, [0x1400c9f10]
mov r13, rcx
mov qword [rsp + 0x58], rbx
xor r14d, r14d
mov dword [rsp + 0x50], 0x44
xor edx, edx
mov qword [rsp + 0x40], r14
lea rcx, [rbp - 0x40]
mov dword [rsp + 0x48], 1
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov dword [rsp + 0x4c], 0x104
mov edi, r14d
test r13, r13
je 0x14007ac02
or r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [r13 + rax*2], r14w
jne 0x14007a897
cmp rax, 0x21b
jae 0x14007ac02
lea rcx, [rsp + 0x58]
call fcn.140082c5c
test eax, eax
jns 0x14007a8cd
movzx edi, ax
test edi, edi
je 0x14007a8cd
mov rbx, qword [rsp + 0x58]
jmp 0x14007ac33
mov rbx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x4c]
mov rdx, rbx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
lea rax, [rbp - 0x40]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14007a92e
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x14007a976
test byte [rcx + 0x44], 0x80
je 0x14007a976
mov edx, 0xb
jmp 0x14007a966
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
nop dword [rax + rax]
test eax, eax
jne 0x14007a986
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x14007a976
test byte [rcx + 0x44], 0x80
je 0x14007a976
mov edx, 0xc
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abb10]
call fcn.140016c5c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14007a9b9
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x14007a9c1
test byte [rcx + 0x44], 0x80
je 0x14007a9c1
mov r9, qword [rsp + 0x40]
lea r8, [0x1400abb10]
mov rcx, qword [rcx + 0x38]
mov edx, 0xd
call fcn.14003304c
test edi, edi
jne 0x14007ac33
mov rax, qword [rsp + 0x40]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x14007a9c9
add edi, 0x294
lea ecx, [rdi + rdi]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r15, rax
test rax, rax
je 0x14007abf2
lea rcx, [rdi - 1]
mov esi, edi
cmp rcx, 0x7ffffffe
ja 0x14007abd0
mov ecx, esi
mov rdx, rax
cmp word [rdx], r14w
je 0x14007aa15
add rdx, 2
sub rcx, 1
jne 0x14007aa05
mov rax, rcx
mov r14d, 0x80070057
neg rax
sbb eax, eax
xor r10d, r10d
not eax
and eax, r14d
test rcx, rcx
je 0x14007aa38
mov rdx, rsi
sub rdx, rcx
jmp 0x14007aa3b
mov rdx, r10
test rcx, rcx
je 0x14007aa9e
mov rcx, rsi
lea r8, [r15 + rdx*2]
sub rcx, rdx
je 0x14007aa83
sub rdx, rsi
lea rax, [rcx + 0x7ffffffe]
add rax, rdx
lea r9, str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintProvidersClient_Side_Rendering_Print_Provider_
sub r9, r8
test rax, rax
je 0x14007aa83
movzx edx, word [r9 + r8]
test dx, dx
je 0x14007aa83
mov word [r8], dx
dec rax
add r8, 2
sub rcx, 1
jne 0x14007aa63
test rcx, rcx
lea rax, [r8 - 2]
cmovne rax, r8
neg rcx
mov word [rax], r10w
sbb eax, eax
not eax
and eax, 0x8007007a
test eax, eax
js 0x14007abd5
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call fcn.140023df4
xor r10d, r10d
test eax, eax
js 0x14007abd5
lea rax, [rdi - 1]
cmp rax, 0x7ffffffe
ja 0x14007abcb
mov rcx, rsi
mov rax, r15
cmp word [rax], r10w
je 0x14007aae7
add rax, 2
sub rcx, 1
jne 0x14007aad7
mov rax, rcx
neg rax
sbb eax, eax
not eax
and eax, r14d
test rcx, rcx
je 0x14007ab01
mov rdx, rsi
sub rdx, rcx
jmp 0x14007ab04
mov rdx, r10
test rcx, rcx
je 0x14007ab67
mov rcx, rsi
lea r8, [r15 + rdx*2]
sub rcx, rdx
je 0x14007ab4c
sub rdx, rsi
lea rax, [rcx + 0x7ffffffe]
add rax, rdx
lea r9, str.PrintersConnections_
sub r9, r8
test rax, rax
je 0x14007ab4c
movzx edx, word [r9 + r8]
test dx, dx
je 0x14007ab4c
mov word [r8], dx
dec rax
add r8, 2
sub rcx, 1
jne 0x14007ab2c
test rcx, rcx
lea rax, [r8 - 2]
cmovne rax, r8
neg rcx
mov word [rax], r10w
sbb eax, eax
not eax
and eax, 0x8007007a
test eax, eax
js 0x14007abd5
mov rcx, qword [rsp + 0x40]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r10w
jne 0x14007ab73
sub edi, eax
inc r12
cmp word [rcx + r12*2], r10w
jne 0x14007ab7f
lea rdx, [r12 + 0x78]
mov rcx, r13
lea rdx, [r15 + rdx*2]
lea r8d, [rdi - 0x78]
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov rax, qword [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
jmp 0x14007abd8
mov eax, r14d
jmp 0x14007abd5
mov eax, 0x80070057
movzx edi, ax
mov rcx, qword [0x1400ca110]
mov r8, r15
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14007ac33
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14007ac33
mov edi, 0x57
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x14007ac33
test byte [rcx + 0x44], 0x80
je 0x14007ac33
mov rcx, qword [rcx + 0x38]
lea edx, [rdi - 0x4d]
lea r8, [0x1400abb10]
call fcn.140016c5c
mov rdx, rbx
call fcn.14004443c
mov eax, edi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14000e2c0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret