Function at 0x140064b40
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 [0x1400b02e8]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rbp + 0x38], r14
lea r15d, [r14 + 7]
mov qword [rbp + 0x40], r15
mov word [rbp + 0x28], r14w
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x20], r15
mov word [rbp + 8], r14w
lea r8, [rbp + 8]
lea rdx, [rbp + 0x28]
call fcn.1400640b0
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x140065114
cmp qword [rbp + 0x18], r14
jne 0x140064bca
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x40]
call fcn.1400157ec
nop
lea ebx, [r14 + 1]
jmp 0x140064bfd
lea r8, [0x140089d2c]
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x60]
call fcn.14003c90c
nop
mov dword [rsp + 0x20], 2
lea r8, [rbp + 0x28]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14003c974
mov ebx, 6
mov qword [rbp - 8], r14
mov qword [rbp], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
mov word [rax], r14w
test bl, 4
je 0x140064c50
and ebx, 0xfffffffb
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140064c43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.140003d24
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r15
mov word [rbp - 0x80], r14w
test bl, 2
je 0x140064c85
and ebx, 0xfffffffd
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140064c75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
mov word [rsp + 0x60], r14w
test bl, 1
je 0x140064ca5
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140064ca5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
call fcn.140003d24
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r15
mov word [rbp - 0x60], r14w
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14006438c
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
je 0x140064e07
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rbp - 0x50], r14
mov word [rax], r14w
cmp ebx, 0x6ba
je 0x140064e07
cmp ebx, 0x534
je 0x140064e07
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x40]
call fcn.14003c848
mov dword [rbp - 0x20], 0x193
call fcn.14000a8e4
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r15
mov word [rbp - 0x80], r14w
lea rdx, str.::GetRoamingProfileDir___failed_with_error_code__1_.
lea rcx, [rbp - 0x80]
call fcn.140003b34
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x48]
call fcn.14003c478
nop
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000d41c
mov rbx, rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
mov word [rsp + 0x60], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rsp + 0x60]
call fcn.140003b34
nop
mov r9, rbx
lea r8, [rsp + 0x60]
mov edx, 1
lea rcx, [rbp - 0x40]
call fcn.14003c72c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140064daf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
mov word [rsp + 0x60], r14w
lea rcx, [rbp + 0x48]
call fcn.14003cd5c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140064de4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.140003d24
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r15
mov word [rbp - 0x80], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140064e07
inc rdx
mov rcx, qword [rbp - 0x40]
call fcn.140003d24
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 - 0x18]
cmp qword [rbp], 8
cmovae rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], rax
cmp qword [rbp - 0x50], r14
je 0x140064e54
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x40]
call fcn.14003c848
mov dword [rbp - 0x20], 0x1a2
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
mov word [rsp + 0x60], r14w
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rsp + 0x60]
call fcn.140003b34
nop
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r15
mov word [rbp - 0x80], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x80]
call fcn.140003b34
nop
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x80]
mov edx, 4
lea rcx, [rbp - 0x40]
call fcn.14003c4b0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140064ede
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.140003d24
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r15
mov word [rbp - 0x80], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140064f08
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
mov word [rsp + 0x60], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140064f2e
inc rdx
mov rcx, qword [rbp - 0x40]
call fcn.140003d24
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400650b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x40]
call fcn.14003c848
mov dword [rbp - 0x20], 0x1a6
call fcn.14000a8e4
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
mov word [rsp + 0x60], r14w
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rsp + 0x60]
call fcn.140003b34
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x48]
call fcn.14003c478
nop
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000d41c
mov rbx, rax
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r15
mov word [rbp - 0x80], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x80]
call fcn.140003b34
nop
mov r9, rbx
lea r8, [rbp - 0x80]
mov edx, 1
lea rcx, [rbp - 0x40]
call fcn.14003c72c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140065006
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.140003d24
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r15
mov word [rbp - 0x80], r14w
lea rcx, [rbp + 0x48]
call fcn.14003cd5c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14006503a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
mov word [rsp + 0x60], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140065060
inc rdx
mov rcx, qword [rbp - 0x40]
call fcn.140003d24
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 0x140065082
inc rax
jmp 0x140065089
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400b1690]
call fcn.140013934
shl rax, 0x34
mov ebx, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x343000000000
or rbx, rax
jmp 0x1400650c4
mov rax, qword [rsp + 0x58]
mov qword [rsi], rax
movabs rbx, 0x8000000000
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400650df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
call fcn.140003d24
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r15
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140065107
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
call fcn.140003d24
mov qword [rbp - 8], r14
mov qword [rbp], r15
mov word [rbp - 0x18], r14w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x14006512f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
call fcn.140003d24
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x20], r15
mov word [rbp + 8], r14w
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x140065157
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
call fcn.140003d24
mov rax, rbx
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.140066420
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret