Function at 0x1400650e4
Capabilities:
Impersonate user

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400bd288]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r14w
mov qword [rbp + 0x20], r14
lea r12d, [r14 + 7]
mov qword [rbp + 0x28], r12
mov word [rbp + 0x10], r14w
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x30]
call fcn.140064818
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x140065696
cmp qword [rbp + 0x20], r14
jne 0x140065189
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14001463c
nop
lea ebx, [r14 + 1]
jmp 0x1400651d6
lea r8, [0x14008a87c]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.14003b61c
nop
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.14001c208
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r12
mov word [rax], r14w
lea rax, [rbp - 0x70]
mov ebx, SafeArrayGetDim
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r12
mov word [rax], r14w
test bl, 4
je 0x14006520b
and ebx, 0xfffffffb
lea rcx, [rbp - 0x70]
call fcn.140003c44
nop
test bl, 2
je 0x14006521d
and ebx, 0xfffffffd
lea rcx, [rbp - 0x50]
call fcn.140003c44
nop
test bl, 1
je 0x14006522c
lea rcx, [rsp + 0x68]
call fcn.140003c44
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r12
mov word [rbp - 0x30], r14w
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.140064b1c
mov rcx, rax
shr rax, 0x27
not eax
mov r12d, 0x1000
lea r13, vtable.AppV::LogFormatter.0
test al, 1
je 0x1400653b3
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov word [rax], r14w
cmp ecx, 0x6ba
je 0x1400653b3
cmp ecx, 0x534
je 0x1400653b3
mov dword [rsp + 0x20], ecx
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
lea rdx, str.::GetRoamingProfileDir___failed_with_error_code__1_.
lea rcx, [rbp - 0x70]
call fcn.140003cac
nop
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x50]
call fcn.140003cac
nop
call fcn.14000a10c
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x50]
call fcn.14003b330
mov rbx, rax
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rsp + 0x68]
call fcn.14003b7cc
mov dword [rbp - 0x78], 0x193
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000c800
mov r9, rbx
lea r8, [rbp - 0x50]
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.14003b4a0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14006537f
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r12
jb 0x14006537a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006537a
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
mov qword [rbp + 0x50], r13
lea rcx, [rbp + 0x60]
call fcn.140003c44
nop
lea rcx, [rbp - 0x50]
call fcn.140003c44
nop
lea rcx, [rbp - 0x70]
call fcn.140003c44
mov ebx, 0x38
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x30], ebx
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rax, qword [rbp - 0x10]
mov qword [rsp + 0x38], rax
cmp qword [rbp - 0x20], r14
je 0x1400653f7
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rbp - 0x50]
call fcn.140003cac
nop
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x70]
call fcn.140003cac
nop
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rsp + 0x68]
call fcn.14003b7cc
mov dword [rbp - 0x78], 0x1a2
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x70]
mov edx, 4
lea rcx, [rsp + 0x68]
call fcn.14003b394
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400654c0
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r12
jb 0x1400654bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400654bb
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea rcx, [rbp - 0x70]
call fcn.140003c44
nop
lea rcx, [rbp - 0x50]
call fcn.140003c44
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x140065670
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rbp - 0x50]
call fcn.140003cac
nop
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x70]
call fcn.140003cac
nop
call fcn.14000a10c
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x50]
call fcn.14003b330
mov rbx, rax
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rsp + 0x68]
call fcn.14003b7cc
mov dword [rbp - 0x78], 0x1a6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000c800
mov r9, rbx
lea r8, [rbp - 0x70]
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.14003b4a0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400655f0
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r12
jb 0x1400655eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400655eb
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
mov qword [rbp + 0x50], r13
lea rcx, [rbp + 0x60]
call fcn.140003c44
nop
lea rcx, [rbp - 0x70]
call fcn.140003c44
nop
lea rcx, [rbp - 0x50]
call fcn.140003c44
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 0x140065640
inc rax
jmp 0x140065647
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
mov ebx, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x343000000000
or rbx, rax
jmp 0x140065682
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
movabs rbx, 0x8000000000
lea rcx, [rbp - 0x30]
call fcn.140003c44
nop
lea rcx, [rbp - 0x10]
call fcn.140003c44
nop
lea rcx, [rbp + 0x10]
call fcn.140003c44
nop
lea rcx, [rbp + 0x30]
call fcn.140003c44
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140066490
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret