Function at 0x140060650
Capabilities:
Impersonate user

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
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 [0x1400bc178]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r12d, [r14 + 7]
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x20], r14
mov word [rbp + 0x10], r14w
mov qword [rbp + 8], r12
mov qword [rbp], r14
mov word [rbp - 0x10], r14w
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.14005fd80
mov rbx, rax
shr rax, 0x27
not eax
lea r15d, [r14 + 1]
test r15b, al
jne 0x140060a70
cmp qword [rbp], r14
sete al
test al, al
je 0x140060713
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.1400034b4
lea rax, [rsp + 0x68]
mov ebx, r15d
jmp 0x140060745
lea r8, [0x140087f1c]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x78]
call fcn.140037af4
nop
mov dword [rsp + 0x20], 2
lea r8, [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140037bfc
mov ebx, 6
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140008108
nop
test bl, 4
je 0x14006076a
and ebx, 0xfffffffb
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x50]
call fcn.14000328c
nop
test bl, 2
je 0x140060782
and ebx, 0xfffffffd
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x78]
call fcn.14000328c
nop
test r15b, bl
je 0x140060797
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x68]
call fcn.14000328c
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], r14
mov word [rbp - 0x30], r14w
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.140060074
mov rbx, rax
cmp eax, 0x6ba
jne 0x1400607d2
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov word [rax], r14w
jmp 0x1400607e1
shr rax, 0x27
not eax
test r15b, al
jne 0x140060a50
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 - 0x20], r14
sete al
test al, al
jne 0x14006082a
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
mov r8d, 0x47
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rbp - 0x50]
call fcn.140003394
nop
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
movzx eax, word [str.VirtualizationManager]
neg ax
sbb r8, r8
and r8d, 0x15
lea rdx, str.VirtualizationManager
lea rcx, [rsp + 0x68]
call fcn.140003394
nop
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x78]
call fcn.140003144
mov dword [rbp - 0x58], 0x188
lea r9, [rbp - 0x50]
lea r8, [rsp + 0x68]
mov edx, 4
lea rcx, [rbp - 0x78]
call fcn.140037840
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1400608c8
inc rdx
mov r8, r15
mov rcx, qword [rbp - 0x78]
call fcn.1400029dc
mov qword [rbp - 0x60], SafeArrayGetDim
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], r14b
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x68]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x50]
call fcn.14000328c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x140060a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
mov r8d, 0x2f
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rsp + 0x68]
call fcn.140003394
nop
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
movzx eax, word [str.VirtualizationManager]
neg ax
sbb r8, r8
and r8d, 0x15
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x50]
call fcn.140003394
nop
call fcn.140007e38
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x50]
call fcn.1400377c0
mov rbx, rax
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x78]
call fcn.140003144
mov dword [rbp - 0x58], 0x18c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000a5c4
mov r9, rbx
lea r8, [rbp - 0x50]
mov edx, r15d
lea rcx, [rbp - 0x78]
call fcn.1400379a4
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1400609d5
inc rdx
mov r8, r15
mov rcx, qword [rbp - 0x78]
call fcn.1400029dc
mov qword [rbp - 0x60], SafeArrayGetDim
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], r14b
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0x50], rax
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp + 0x60]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x50]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rsp + 0x68]
call fcn.14000328c
call fcn.14005f920
mov rbx, rax
mov eax, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x313000000000
or rbx, rax
jmp 0x140060a50
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
movabs rbx, 0x8000000000
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x30]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp + 0x30]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp - 0x10]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp + 0x10]
call fcn.14000328c
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140061880
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret