Function at 0x14005f02c
Capabilities:
Impersonate user

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400bc298]
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 [0x140093ca0]
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.14005e860
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x14005f420
cmp qword [rbp + 0x20], r14
jne 0x14005f0cb
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.140010124
nop
lea ebx, [r14 + 1]
jmp 0x14005f11b
lea r8, [0x14008645c]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x58]
call fcn.140038924
nop
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.140017478
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r12
mov word [rax], r14w
lea rax, [rsp + 0x68]
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 0x14005f151
and ebx, 0xfffffffb
lea rcx, [rsp + 0x68]
call fcn.140003388
nop
test bl, 2
je 0x14005f163
and ebx, 0xfffffffd
lea rcx, [rbp - 0x58]
call fcn.140003388
nop
test bl, 1
je 0x14005f171
lea rcx, [rbp - 0x38]
call fcn.140003388
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], r12
mov word [rbp - 0x78], r14w
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.14005eae0
mov rbx, rax
cmp eax, 0x6ba
jne 0x14005f1ac
mov qword [rbp - 0x68], r14
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rax, qword [rbp - 0x78]
mov word [rax], r14w
jmp 0x14005f1ba
shr rax, 0x27
not eax
test al, 1
jne 0x14005f40c
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 - 0x68], r14
je 0x14005f1fe
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rax, qword [rbp - 0x78]
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rsp + 0x68]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x58]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093cb0]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov r12d, 0x23
mov edx, r12d
lea rcx, [rbp - 0x38]
call fcn.1400389a8
mov dword [rbp - 0x18], 0x188
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x58]
lea edx, [r12 - 0x1f]
lea rcx, [rbp - 0x38]
call fcn.140038730
nop
lea rcx, [rbp - 0x38]
call fcn.140006108
nop
lea rcx, [rbp - 0x58]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x14005f3fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r14w
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rbp - 0x58]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rsp + 0x68]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0x50]
call fcn.1400386d8
mov rbx, rax
movdqa xmm0, xmmword [0x140093cb0]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, r12d
lea rcx, [rbp - 0x38]
call fcn.1400389a8
mov dword [rbp - 0x18], 0x18c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009320
mov r9, rbx
lea r8, [rsp + 0x68]
lea edx, [r12 - 0x22]
lea rcx, [rbp - 0x38]
call fcn.140038838
nop
lea rcx, [rbp - 0x38]
call fcn.140006108
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x60]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
nop
lea rcx, [rbp - 0x58]
call fcn.140003388
lea edx, [r12 + 0x39]
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 0x14005f3ca
inc rax
jmp 0x14005f3d1
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
mov ebx, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x313000000000
or rbx, rax
jmp 0x14005f40c
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
movabs rbx, 0x8000000000
lea rcx, [rbp - 0x78]
call fcn.140003388
nop
lea rcx, [rbp - 0x10]
call fcn.140003388
nop
lea rcx, [rbp + 0x10]
call fcn.140003388
nop
lea rcx, [rbp + 0x30]
call fcn.140003388
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140060130
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret