Function at 0x1400795a8
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 [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov qword [rsp + 0x60], rdx
lea rbx, [0x1400c8ea0]
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 0x1400799a2
or r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [r13 + rax*2], r14w
jne 0x140079637
cmp rax, 0x21b
jae 0x1400799a2
lea rcx, [rsp + 0x58]
call fcn.140081a6c
test eax, eax
jns 0x14007966d
movzx edi, ax
test edi, edi
je 0x14007966d
mov rbx, qword [rsp + 0x58]
jmp 0x1400799d3
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 0x1400796ce
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140079716
test byte [rcx + 0x44], 0x80
je 0x140079716
mov edx, 0xb
jmp 0x140079706
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 0x140079726
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140079716
test byte [rcx + 0x44], 0x80
je 0x140079716
mov edx, 0xc
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aaa10]
call fcn.1400162ec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140079759
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140079761
test byte [rcx + 0x44], 0x80
je 0x140079761
mov r9, qword [rsp + 0x40]
lea r8, [0x1400aaa10]
mov rcx, qword [rcx + 0x38]
mov edx, 0xd
call fcn.140031e7c
test edi, edi
jne 0x1400799d3
mov rax, qword [rsp + 0x40]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140079769
add edi, 0x294
lea ecx, [rdi + rdi]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r15, rax
test rax, rax
je 0x140079992
lea rcx, [rdi - 1]
mov esi, edi
cmp rcx, 0x7ffffffe
ja 0x140079970
mov ecx, esi
mov rdx, rax
cmp word [rdx], r14w
je 0x1400797b5
add rdx, 2
sub rcx, 1
jne 0x1400797a5
mov rax, rcx
mov r14d, 0x80070057
neg rax
sbb eax, eax
xor r10d, r10d
not eax
and eax, r14d
test rcx, rcx
je 0x1400797d8
mov rdx, rsi
sub rdx, rcx
jmp 0x1400797db
mov rdx, r10
test rcx, rcx
je 0x14007983e
mov rcx, rsi
lea r8, [r15 + rdx*2]
sub rcx, rdx
je 0x140079823
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 0x140079823
movzx edx, word [r9 + r8]
test dx, dx
je 0x140079823
mov word [r8], dx
dec rax
add r8, 2
sub rcx, 1
jne 0x140079803
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 0x140079975
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call fcn.140023094
xor r10d, r10d
test eax, eax
js 0x140079975
lea rax, [rdi - 1]
cmp rax, 0x7ffffffe
ja 0x14007996b
mov rcx, rsi
mov rax, r15
cmp word [rax], r10w
je 0x140079887
add rax, 2
sub rcx, 1
jne 0x140079877
mov rax, rcx
neg rax
sbb eax, eax
not eax
and eax, r14d
test rcx, rcx
je 0x1400798a1
mov rdx, rsi
sub rdx, rcx
jmp 0x1400798a4
mov rdx, r10
test rcx, rcx
je 0x140079907
mov rcx, rsi
lea r8, [r15 + rdx*2]
sub rcx, rdx
je 0x1400798ec
sub rdx, rsi
lea rax, [rcx + 0x7ffffffe]
add rax, rdx
lea r9, str.PrintersConnections_
sub r9, r8
test rax, rax
je 0x1400798ec
movzx edx, word [r9 + r8]
test dx, dx
je 0x1400798ec
mov word [r8], dx
dec rax
add r8, 2
sub rcx, 1
jne 0x1400798cc
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 0x140079975
mov rcx, qword [rsp + 0x40]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r10w
jne 0x140079913
sub edi, eax
inc r12
cmp word [rcx + r12*2], r10w
jne 0x14007991f
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 0x140079978
mov eax, r14d
jmp 0x140079975
mov eax, 0x80070057
movzx edi, ax
mov rcx, qword [0x1400c9078]
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 0x1400799d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x1400799d3
mov edi, 0x57
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x1400799d3
test byte [rcx + 0x44], 0x80
je 0x1400799d3
mov rcx, qword [rcx + 0x38]
lea edx, [rdi - 0x4d]
lea r8, [0x1400aaa10]
call fcn.1400162ec
mov rdx, rbx
call fcn.14004326c
mov eax, edi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14000d4b0
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