Function at 0x1400161a4
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x38], 0
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
or r8d, 0xffffffff
mov r15, rcx
call fcn.14004401c
mov edi, eax
test eax, eax
js 0x1400163e2
lea rcx, [rbp - 0x10]
call fcn.140043534
lea rcx, [rbp - 0x20]
mov dword [rbp + 0x40], 0x7fff
call fcn.140043534
mov edx, dword [rbp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140043e38
mov edi, eax
test eax, eax
jns 0x140016219
lea rcx, [rbp - 0x20]
call fcn.140043af4
lea rcx, [rbp - 0x10]
call fcn.140043af4
jmp 0x1400163e2
mov rdx, qword [rbp - 0x20]
lea r8, [rbp + 0x40]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x14001625a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14001624d
lea edi, [rax + 0x57]
jmp 0x14001624f
jle 0x140016202
movzx edi, di
or edi, 0x80070000
jmp 0x140016202
mov ebx, 0x44
mov edx, ebx
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14001627f
mov edi, 0x8007000e
jmp 0x140016202
mov rdx, qword [rbp - 0x20]
lea rax, [rbp - 0x40]
and dword [rbp + 0x38], 0
lea r9, [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov r8, rsi
lea rax, [rbp + 0x38]
mov dword [rbp + 0x48], ebx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test ebx, ebx
jne 0x1400162e6
cmp eax, 0x7a
je 0x1400162e6
test eax, eax
jle 0x1400163c1
movzx edi, ax
or edi, 0x80070000
jmp 0x1400163c1
lea rcx, [rbp - 0x30]
call fcn.140043534
mov edx, dword [rbp + 0x38]
lea rcx, [rbp - 0x30]
inc edx
call fcn.140043e38
mov edi, eax
test eax, eax
js 0x1400163b8
mov rdx, qword [rbp - 0x20]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x38]
mov r8, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test ebx, ebx
jne 0x14001635e
test eax, eax
jle 0x1400163b8
movzx edi, ax
or edi, 0x80070000
jmp 0x1400163b8
lea rdx, [rbp - 0x38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
nop dword [rax + rax]
test eax, eax
jne 0x140016393
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14001638c
lea edi, [rax + 0x57]
jmp 0x14001638e
jle 0x1400163b8
movzx edi, di
jmp 0x140016356
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x10]
or r8d, 0xffffffff
call fcn.14004401c
mov edi, eax
test eax, eax
js 0x1400163b8
mov rdx, qword [rbp - 0x10]
mov rcx, r15
call fcn.140043724
mov edi, eax
lea rcx, [rbp - 0x30]
call fcn.140043af4
lea rcx, [rbp - 0x20]
call fcn.140043af4
lea rcx, [rbp - 0x10]
call fcn.140043af4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400163f7
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x80
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret