Function at 0x140064af0
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400b1598]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov r14, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
movdqa xmm0, xmmword [0x1400971a0]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r15w
mov qword [rbp - 0x10], r15
lea edi, [r15 + 7]
mov qword [rbp - 8], rdi
mov word [rbp - 0x20], r15w
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x28]
call fcn.140064278
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x140064fa0
cmp qword [rbp - 0x10], r15
jne 0x140064b7e
lea rdx, [rbp + 0x28]
lea rcx, [rbp]
call fcn.1400182ec
nop
lea ebx, [rdi - 6]
jmp 0x140064bce
lea r8, [0x140089cc4]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.14003db94
nop
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0x28]
mov rcx, rax
call fcn.14001fcb0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rdi
mov word [rax], r15w
lea rax, [rsp + 0x60]
mov ebx, SafeArrayGetDim
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rdi
mov word [rax], r15w
test bl, 4
je 0x140064c04
and ebx, 0xfffffffb
lea rcx, [rsp + 0x60]
call fcn.1400042a4
nop
test bl, 2
je 0x140064c16
and ebx, 0xfffffffd
lea rcx, [rbp - 0x80]
call fcn.1400042a4
nop
test bl, 1
je 0x140064c24
lea rcx, [rbp]
call fcn.1400042a4
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rdi
mov word [rbp - 0x60], r15w
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.1400645a0
mov rcx, rax
shr rax, 0x27
not eax
test al, 1
je 0x140064d4d
mov qword [rbp - 0x50], r15
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov word [rax], r15w
cmp ecx, 0x6ba
je 0x140064d4d
cmp ecx, 0x534
je 0x140064d4d
mov dword [rsp + 0x20], ecx
movdqa xmm0, xmmword [0x1400971a0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r15w
lea rdx, str.::GetRoamingProfileDir___failed_with_error_code__1_.
lea rcx, [rsp + 0x60]
call fcn.140004344
nop
movdqa xmm0, xmmword [0x1400971a0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r15w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x80]
call fcn.140004344
nop
call fcn.14000e5ac
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x48]
call fcn.14003d808
mov rdi, rax
mov r8d, 0x193
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp]
call fcn.14003d840
mov rbx, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140010cd8
mov r9, rax
lea r8, [rbp - 0x80]
mov edx, 1
mov rcx, rbx
call fcn.14003db18
nop
lea rcx, [rbp]
call fcn.140007344
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x58]
call fcn.1400042a4
nop
lea rcx, [rbp - 0x80]
call fcn.1400042a4
nop
lea rcx, [rsp + 0x60]
call fcn.1400042a4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x28], 0x38
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rax, qword [rbp - 0x40]
mov qword [rsp + 0x30], rax
cmp qword [rbp - 0x50], r15
je 0x140064d9a
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [0x1400971a0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r15w
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rbp - 0x80]
call fcn.140004344
nop
movdqa xmm0, xmmword [0x1400971a0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r15w
lea rdx, str.VirtualizationManager
lea rcx, [rsp + 0x60]
call fcn.140004344
nop
mov r8d, 0x1a2
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp]
call fcn.14003d840
nop
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x60]
mov edx, 4
mov rcx, rax
call fcn.14003d8b8
nop
lea rcx, [rbp]
call fcn.140007344
nop
lea rcx, [rsp + 0x60]
call fcn.1400042a4
nop
lea rcx, [rbp - 0x80]
call fcn.1400042a4
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
nop dword [rax + rax]
test eax, eax
jne 0x140064f7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
movdqa xmm0, xmmword [0x1400971a0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r15w
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rbp - 0x80]
call fcn.140004344
nop
movdqa xmm0, xmmword [0x1400971a0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r15w
lea rdx, str.VirtualizationManager
lea rcx, [rsp + 0x60]
call fcn.140004344
nop
call fcn.14000e5ac
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x48]
call fcn.14003d808
mov rdi, rax
mov r8d, 0x1a6
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp]
call fcn.14003d840
mov rbx, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140010cd8
mov r9, rax
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, rbx
call fcn.14003db18
nop
lea rcx, [rbp]
call fcn.140007344
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x58]
call fcn.1400042a4
nop
lea rcx, [rsp + 0x60]
call fcn.1400042a4
nop
lea rcx, [rbp - 0x80]
call fcn.1400042a4
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 0x140064f4a
inc rax
jmp 0x140064f51
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400b2950]
call fcn.140016834
shl rax, 0x34
mov ebx, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x343000000000
or rbx, rax
jmp 0x140064f8c
mov rax, qword [rsp + 0x58]
mov qword [r14], rax
movabs rbx, 0x8000000000
lea rcx, [rbp - 0x60]
call fcn.1400042a4
nop
lea rcx, [rbp - 0x40]
call fcn.1400042a4
nop
lea rcx, [rbp - 0x20]
call fcn.1400042a4
nop
lea rcx, [rbp + 0x28]
call fcn.1400042a4
mov rax, rbx
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.140066030
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret