Function at 0x14005f0a0
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 [0x1400bc288]
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 [0x140093d30]
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 0x14005f582
cmp qword [rbp + 0x20], r14
jne 0x14005f13f
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.140010124
nop
lea ebx, [r14 + 1]
jmp 0x14005f18f
lea r8, [0x14008645c]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x78]
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 0x14005f1c5
and ebx, 0xfffffffb
lea rcx, [rsp + 0x68]
call fcn.140003388
nop
test bl, 2
je 0x14005f1d7
and ebx, 0xfffffffd
lea rcx, [rbp - 0x78]
call fcn.140003388
nop
test bl, 1
je 0x14005f1e5
lea rcx, [rbp - 0x58]
call fcn.140003388
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r12
mov word [rbp - 0x30], r14w
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14005eae0
mov rcx, rax
shr rax, 0x27
not eax
lea r12, str.VirtualizationManager
test al, 1
je 0x14005f326
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 0x14005f326
cmp ecx, 0x534
je 0x14005f326
mov dword [rsp + 0x20], ecx
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
lea rdx, str.::GetRoamingProfileDir___failed_with_error_code__1_.
lea rcx, [rsp + 0x68]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
mov rdx, r12
lea rcx, [rbp - 0x78]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x50]
call fcn.1400386d8
mov rbx, rax
movdqa xmm0, xmmword [0x140093d40]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rbp - 0x58]
call fcn.1400389a8
mov dword [rbp - 0x38], 0x18e
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009320
mov r9, rbx
lea r8, [rbp - 0x78]
mov edx, 1
lea rcx, [rbp - 0x58]
call fcn.140038838
nop
lea rcx, [rbp - 0x58]
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, [rbp - 0x78]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
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 0x14005f36a
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rbp - 0x78]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093d40]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rbp - 0x58]
call fcn.1400389a8
mov dword [rbp - 0x38], 0x19d
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x68]
mov edx, 4
lea rcx, [rbp - 0x58]
call fcn.140038730
nop
lea rcx, [rbp - 0x58]
call fcn.140006108
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
nop
lea rcx, [rbp - 0x78]
call fcn.140003388
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x14005f55c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rbp - 0x78]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x50]
call fcn.1400386d8
mov rbx, rax
movdqa xmm0, xmmword [0x140093d40]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rbp - 0x58]
call fcn.1400389a8
mov dword [rbp - 0x38], 0x1a1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009320
mov r9, rbx
lea r8, [rsp + 0x68]
mov edx, 1
lea rcx, [rbp - 0x58]
call fcn.140038838
nop
lea rcx, [rbp - 0x58]
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 - 0x78]
call fcn.140003388
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 0x14005f52c
inc rax
jmp 0x14005f533
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, 0x343000000000
or rbx, rax
jmp 0x14005f56e
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
movabs rbx, 0x8000000000
lea rcx, [rbp - 0x30]
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.140060290
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret