Function at 0x140062ff4
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov rax, qword [0x1400c1270]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rbp - 0x49], r14d
lea rcx, [rbp - 0x41]
call fcn.14003cbec
mov eax, dword [rbp - 0x49]
test eax, eax
jne 0x14006304f
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [rbp - 0x49], eax
test eax, eax
jne 0x1400630a7
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]
test rax, rax
je 0x14006306d
inc rax
jmp 0x140063074
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c2688]
call fcn.14000f3ec
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or rdi, rbx
movabs rax, 0x162500000000
or rdi, rax
jmp 0x14006335a
mov edx, pe_nt_image_headers64
mov dword [rbp - 0x69], edx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r14
lea rcx, [rbp - 0x61]
call fcn.140018560
test al, al
je 0x1400630e7
mov rbx, qword [rbp - 0x61]
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
lea rax, [rbx + 0x200]
mov qword [rbp - 0x59], rax
lea r8, [rbp - 0x69]
mov rdx, qword [rbp - 0x61]
mov r15d, SafeArrayGetDim
mov ecx, r15d
call qword [sym.imp.Secur32.dll_GetUserNameExW]
lea r12d, [r15 - 0xa]
test al, al
jne 0x1400631d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
je 0x140063160
lea edx, [r15 + 0x50]
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140063134
inc rax
jmp 0x14006313b
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c2688]
call fcn.14000f3ec
shl rax, 0x34
mov rdi, rbx
or rdi, rax
movabs rax, 0x172500000000
jmp 0x1400631cf
mov edx, dword [rbp - 0x69]
lea rcx, [rbp - 0x61]
call fcn.140036284
lea r8, [rbp - 0x69]
mov rdx, qword [rbp - 0x61]
mov ecx, r15d
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x1400631d7
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]
test rax, rax
je 0x14006319d
inc rax
jmp 0x1400631a4
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c2688]
call fcn.14000f3ec
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or rdi, rbx
movabs rax, 0x182500000000
or rdi, rax
jmp 0x140063333
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r14w
mov rdx, qword [rbp - 0x61]
or r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rdx + r8*2], r14w
jne 0x1400631f3
lea rcx, [rbp - 0x29]
call fcn.1400030f0
nop
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
mov edx, 0x5c
mov r9, qword [rbp - 0x19]
test r9, r9
je 0x140063247
mov rax, r9
mov rbx, rcx
cmp word [rbx], dx
je 0x14006323a
add rbx, r12
sub rax, 1
jne 0x140063229
mov rbx, r14
test rbx, rbx
je 0x140063247
sub rbx, rcx
sar rbx, 1
jmp 0x14006324a
mov rbx, r15
cmp rbx, r15
je 0x1400632d8
lea r8, [rbx + 1]
cmp r8, r9
je 0x1400632d8
test rbx, rbx
je 0x1400632d8
mov r9, r15
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14003d2ac
mov rdx, rax
mov rcx, rdi
call fcn.1400184b0
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140063295
inc rdx
mov r8, r12
mov rcx, qword [rbp - 9]
call fcn.140002ec0
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14003d2ac
mov rdx, rax
mov rcx, rsi
call fcn.1400184b0
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x1400632cc
inc rdx
mov r8, r12
mov rcx, qword [rbp - 9]
call fcn.140002ec0
movabs rdi, 0x8000000000
jmp 0x140063319
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x1400632ef
inc rax
jmp 0x1400632f6
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c2688]
call fcn.14000f3ec
mov rdi, rax
shl rdi, 0x34
movabs rax, 0x19250000000d
or rdi, rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140063333
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x29]
call fcn.140002ec0
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14006335a
mov rdx, qword [rbp - 0x51]
sub rdx, rcx
sar rdx, 1
mov r8, r12
call fcn.140002ec0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r14
mov ebx, 0x29c
cmp dword [rbp - 0x49], r14d
je 0x140063384
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140063384
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x1400633c2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rbp - 0x39]
test eax, eax
je 0x1400633a5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400633c2
test rcx, rcx
je 0x1400633b0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400651a0
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret