Function at 0x140063dc4
Capabilities:
Impersonate user

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r15
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 [0x1400c1270]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov qword [rbp + 0x20], r15
lea eax, [r15 + 7]
mov qword [rbp + 0x28], rax
mov word [rbp + 0x10], r15w
mov qword [rbp], r15
mov qword [rbp + 8], rax
mov word [rbp - 0x10], r15w
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.1400633e4
mov rbx, rax
shr rax, 0x27
not eax
lea r12d, [r15 + 2]
lea r13d, [r15 + 1]
test r13b, al
jne 0x140064225
cmp qword [rbp], r15
jne 0x140063e8a
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.14000333c
lea rax, [rsp + 0x68]
mov ebx, r13d
jmp 0x140063eb9
lea r8, [0x14008c6ec]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.14003a2d0
nop
mov dword [rsp + 0x20], r12d
lea r8, [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14003a3cc
mov ebx, 6
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400077f0
nop
test bl, 4
je 0x140063ee8
and ebx, 0xfffffffb
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140063ee8
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x78]
call fcn.140002ec0
nop
test r12b, bl
je 0x140063f0a
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140063f0a
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x38]
call fcn.140002ec0
nop
test r13b, bl
je 0x140063f29
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140063f29
inc rdx
mov r8, r12
mov rcx, qword [rsp + 0x68]
call fcn.140002ec0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.14006370c
mov rbx, rax
cmp eax, 0x6ba
jne 0x140063f68
mov qword [rbp - 0x48], r15
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rax, qword [rbp - 0x58]
mov word [rax], r15w
jmp 0x140063f77
shr rax, 0x27
not eax
test r13b, al
jne 0x1400641f1
mov ebx, 0x38
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
mov dword [rsp + 0x30], ebx
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rax, qword [rbp + 0x30]
mov qword [rsp + 0x38], rax
cmp qword [rbp - 0x48], r15
je 0x140063fbb
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rax, qword [rbp - 0x58]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x68], r15
mov ebx, 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x78], r15w
lea r8d, [rbx + 0x40]
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rbp - 0x78]
call fcn.1400030f0
nop
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x68], r15w
lea r8d, [rbx + 0xe]
lea rdx, str.VirtualizationManager
lea rcx, [rsp + 0x68]
call fcn.1400030f0
nop
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x38]
call fcn.140039f38
mov dword [rbp - 0x18], 0x188
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x68]
lea edx, [rbx - 3]
lea rcx, [rbp - 0x38]
call fcn.140039d80
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14006404e
inc rdx
mov r8, r13
mov rcx, qword [rbp - 0x38]
call fcn.140002ec0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140064069
inc rdx
mov r8, r12
mov rcx, qword [rsp + 0x68]
call fcn.140002ec0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140064082
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x78]
call fcn.140002ec0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x1400641df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x68], r15w
mov r8d, 0x2f
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rsp + 0x68]
call fcn.1400030f0
nop
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x78], r15w
mov r8d, SafeArrayUnaccessData
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x78]
call fcn.1400030f0
nop
call fcn.140007558
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x50]
call fcn.140039d08
mov rbx, rax
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x38]
call fcn.140039f38
mov dword [rbp - 0x18], 0x18c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009520
mov r9, rbx
lea r8, [rbp - 0x78]
mov edx, r13d
lea rcx, [rbp - 0x38]
call fcn.140039eb4
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140064155
inc rdx
mov r8, r13
mov rcx, qword [rbp - 0x38]
call fcn.140002ec0
nop
lea rcx, [rbp + 0x50]
call fcn.14003a5c4
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140064179
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x78]
call fcn.140002ec0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140064193
inc rdx
mov r8, r12
mov rcx, qword [rsp + 0x68]
call fcn.140002ec0
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 0x1400641af
add rax, r13
jmp 0x1400641b6
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c2688]
call fcn.14000f3ec
shl rax, 0x34
mov ebx, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x313000000000
or rbx, rax
jmp 0x1400641f1
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
movabs rbx, 0x8000000000
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14006420b
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x58]
call fcn.140002ec0
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x140064225
inc rdx
mov r8, r12
mov rcx, qword [rbp + 0x30]
call fcn.140002ec0
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x14006423f
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x10]
call fcn.140002ec0
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140064258
inc rdx
mov r8, r12
mov rcx, qword [rbp + 0x10]
call fcn.140002ec0
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400651a0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret