Function at 0x1400635b4
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 [0x1400c2270]
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.14003d2f8
mov eax, dword [rbp - 0x49]
test eax, eax
jne 0x14006360f
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [rbp - 0x49], eax
test eax, eax
jne 0x140063667
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 0x14006362d
inc rax
jmp 0x140063634
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c3688]
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 0x14006391a
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 0x1400636a7
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 0x140063797
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
je 0x140063720
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 0x1400636f4
inc rax
jmp 0x1400636fb
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c3688]
call fcn.14000f3ec
shl rax, 0x34
mov rdi, rbx
or rdi, rax
movabs rax, 0x172500000000
jmp 0x14006378f
mov edx, dword [rbp - 0x69]
lea rcx, [rbp - 0x61]
call fcn.140036878
lea r8, [rbp - 0x69]
mov rdx, qword [rbp - 0x61]
mov ecx, r15d
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x140063797
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 0x14006375d
inc rax
jmp 0x140063764
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c3688]
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 0x1400638f3
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 0x1400637b3
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 0x140063807
mov rax, r9
mov rbx, rcx
cmp word [rbx], dx
je 0x1400637fa
add rbx, r12
sub rax, 1
jne 0x1400637e9
mov rbx, r14
test rbx, rbx
je 0x140063807
sub rbx, rcx
sar rbx, 1
jmp 0x14006380a
mov rbx, r15
cmp rbx, r15
je 0x140063898
lea r8, [rbx + 1]
cmp r8, r9
je 0x140063898
test rbx, rbx
je 0x140063898
mov r9, r15
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14003d9b8
mov rdx, rax
mov rcx, rdi
call fcn.1400184b0
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140063855
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.14003d9b8
mov rdx, rax
mov rcx, rsi
call fcn.1400184b0
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x14006388c
inc rdx
mov r8, r12
mov rcx, qword [rbp - 9]
call fcn.140002ec0
movabs rdi, 0x8000000000
jmp 0x1400638d9
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 0x1400638af
inc rax
jmp 0x1400638b6
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c3688]
call fcn.14000f3ec
mov rdi, rax
shl rdi, 0x34
movabs rax, 0x19250000000d
or rdi, rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400638f3
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x29]
call fcn.140002ec0
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14006391a
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 0x140063944
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140063944
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 0x140063982
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rbp - 0x39]
test eax, eax
je 0x140063965
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140063982
test rcx, rcx
je 0x140063970
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.140065760
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret