Function at 0x14005ef98
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1400ab2f8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rbp - 0x29], r14d
lea rcx, [rbp - 0x21]
call fcn.14003b4e0
mov eax, dword [rbp - 0x29]
test eax, eax
jne 0x14005efed
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
mov dword [rbp - 0x29], eax
test eax, eax
jne 0x14005f051
lea edx, [rax + 0x5c]
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005f011
inc rax
jmp 0x14005f018
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400ac650]
call fcn.140011b34
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
or rdi, rbx
movabs rax, 0x162500000000
or rdi, rax
jmp 0x14005f2c7
mov edx, 0x100
mov dword [rbp - 0x49], edx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r14
call fcn.140003884
mov qword [rbp - 0x41], rax
lea rbx, [rax + 0x200]
mov qword [rbp - 0x31], rbx
xor edx, edx
mov r8d, 0x200
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbp - 0x39], rbx
lea r8, [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
mov ecx, SafeArrayGetDim
call qword [sym.imp.Secur32.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x14005f19f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xea
je 0x14005f114
mov edx, 0x5c
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005f0e5
inc rax
jmp 0x14005f0ec
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400ac650]
call fcn.140011b34
shl rax, 0x34
mov rdi, rbx
or rdi, rax
movabs rax, 0x172500000000
jmp 0x14005f197
mov edx, dword [rbp - 0x49]
lea rcx, [rbp - 0x41]
call fcn.1400332c0
lea r8, [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
mov ecx, SafeArrayGetDim
call qword [sym.imp.Secur32.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x14005f19f
mov edx, 0x5c
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005f15f
inc rax
jmp 0x14005f166
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400ac650]
call fcn.140011b34
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
or rdi, rbx
movabs rax, 0x182500000000
or rdi, rax
jmp 0x14005f2bd
mov qword [rbp - 1], r14
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r14w
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x11]
call fcn.140003804
nop
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
or r9, 0xffffffffffffffff
lea edx, [r9 + 0x5d]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14005f202
mov r8, rcx
mov rbx, rax
cmp word [rbx], dx
je 0x14005f1f5
add rbx, 2
sub r8, 1
jne 0x14005f1e3
mov rbx, r14
test rbx, rbx
je 0x14005f202
sub rbx, rax
sar rbx, 1
jmp 0x14005f205
mov rbx, r9
cmp rbx, r9
je 0x14005f26c
lea r8, [rbx + 1]
cmp r8, rcx
je 0x14005f26c
test rbx, rbx
je 0x14005f26c
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.14003bc64
mov rdx, rax
mov rcx, rdi
call fcn.14001b03c
lea rcx, [rbp + 0xf]
call fcn.140003764
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.14003bc64
mov rdx, rax
mov rcx, rsi
call fcn.14001b03c
lea rcx, [rbp + 0xf]
call fcn.140003764
movabs rdi, 0x8000000000
jmp 0x14005f2b3
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005f289
inc rax
jmp 0x14005f290
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400ac650]
call fcn.140011b34
mov rdi, rax
shl rdi, 0x34
movabs rax, 0x19250000000d
or rdi, rax
lea rcx, [rbp - 0x11]
call fcn.140003764
nop
lea rcx, [rbp - 0x41]
call fcn.14001af44
nop
cmp dword [rbp - 0x29], r14d
je 0x14005f2fb
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x14005f2fb
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rbp - 0x21]
call fcn.14003b578
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400610e0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret