Function at 0x14002d1f0
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7f8]
sub rsp, 0x8d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov dword [rsp + 0x3c], edx
mov r12, rcx
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x30], r14d
mov dword [rbp - 0x60], r14d
test rcx, rcx
je 0x14002d266
cmp dword [rcx + 0x148], r14d
je 0x14002d266
cmp dword [0x1400d9634], r14d
je 0x14002d885
add rcx, 0xd0
call fcn.14000cfe0
mov r15, rax
test rax, rax
jne 0x14002d29a
mov r8d, 0x1a2
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
xor eax, eax
jmp 0x14002d88a
mov rax, qword [rax]
lea rdx, [rbp - 0x60]
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x14002d2b3
mov r8d, 0x1a5
jmp 0x14002d280
mov ecx, dword [rbp - 0x60]
mov eax, 4
mul rcx
mov r13, 0xffffffffffffffff
cmovo rax, r13
mov rcx, rax
call fcn.1400769a0
mov rdi, rax
test rax, rax
jne 0x14002d2e1
mov r8d, 0x1a7
jmp 0x14002d280
mov r8d, dword [rbp - 0x60]
shl r8, 2
xor edx, edx
mov rcx, rdi
call fcn.14007eaa0
mov dword [rsp + 0x34], r14d
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_IntSpk
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.14004bdd0
test eax, eax
jne 0x14002d352
lea rcx, [rsp + 0x48]
call fcn.140055030
nop
mov esi, 1
mov dword [rsp + 0x30], esi
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_IntSpk
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call fcn.14004bdd0
test eax, eax
jne 0x14002d352
xor bl, bl
jmp 0x14002d354
mov bl, 1
test sil, 1
je 0x14002d384
and esi, 0xfffffffe
mov dword [rsp + 0x30], esi
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002d380
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rsp + 0x30]
test bl, bl
je 0x14002d545
mov ebx, r14d
cmp dword [rbp - 0x60], ebx
jbe 0x14002d3d3
mov r12d, dword [rsp + 0x34]
nop dword [rax]
mov eax, ebx
mov dword [rdi + rax*4], r12d
mov dword [rsp + 0x20], r12d
mov r9d, ebx
mov r8d, 0x1ba
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_speaker_default_volume_from_registry___pdwVolumes__d____d
call fcn.14002f950
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x14002d3a0
mov r12, qword [rsp + 0x50]
mov dword [rsp + 0x38], r14d
mov r9d, 1
lea r8, [rsp + 0x38]
lea rdx, [0x140092080]
mov rcx, r12
call fcn.140002e10
test eax, eax
je 0x14002d58c
mov eax, r14d
cmp dword [rsp + 0x38], eax
setne al
test eax, eax
je 0x14002d58c
cmp dword [rsp + 0x3c], 0
je 0x14002d524
call fcn.140027b30
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
test eax, eax
je 0x14002d524
mov dword [rbp - 0x50], 0x400
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.140004150
mov rcx, rax
test rax, rax
jne 0x14002d45a
mov ecx, 0x80004005
call fcn.140003ec0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x58], rbx
lea rcx, [rbp - 0x40]
lea rax, [rbp - 0x40]
test rax, 0xffffffffffff0000
jne 0x14002d498
movzx esi, cx
mov ecx, esi
call fcn.1400055d0
test rax, rax
je 0x14002d4be
mov r8d, esi
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140005290
jmp 0x14002d4ba
lea rcx, [rbp - 0x40]
mov rax, r13
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14002d4a0
mov r8d, eax
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x58]
call fcn.140003c30
mov rbx, qword [rbp - 0x58]
cmp dword [rbx - 0x10], 0
jl 0x14002d4e2
lea rdx, str.defaultuser
mov rcx, rbx
call fcn.14007e078
test rax, rax
je 0x14002d4e2
sub rax, rbx
sar rax, 1
test eax, eax
je 0x14002d504
movups xmm0, xmmword [0x14009c418]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [r15]
lea r9, [rsp + 0x70]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r15
call qword [rax + 0x68]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002d51e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rsp + 0x30]
jmp 0x14002d58c
movups xmm0, xmmword [0x14009c418]
movaps xmmword [rbp - 0x80], xmm0
mov rax, qword [r15]
lea r9, [rbp - 0x80]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r15
call qword [rax + 0x68]
jmp 0x14002d58c
mov rax, qword [r15]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r15
call qword [rax + 0x80]
mov ebx, r14d
cmp dword [rbp - 0x60], ebx
jbe 0x14002d58c
mov eax, ebx
mov ecx, dword [rdi + rax*4]
mov dword [rsp + 0x20], ecx
mov r9d, ebx
mov r8d, 0x1d9
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_speaker_default_volume_from_MainLineCtrl___pdwVolumes__d____d
call fcn.14002f950
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x14002d560
mov eax, dword [rbp - 0x60]
lea eax, [rax*4]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str.SpeakerVolume
lea rdx, str.Others
lea rcx, [0x1400da1c0]
mov rax, qword [0x1400da1c0]
call qword [rax + 0x38]
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_HpForDell
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.14004bdd0
test eax, eax
jne 0x14002d637
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_Hp
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.14004bdd0
test eax, eax
jne 0x14002d637
lea rcx, [rsp + 0x58]
call fcn.140055030
nop
or esi, 2
mov dword [rsp + 0x30], esi
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_Hp
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call fcn.14004bdd0
test eax, eax
jne 0x14002d637
xor bl, bl
jmp 0x14002d639
mov bl, 1
test sil, 2
je 0x14002d65d
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x14002d65d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14002d6ff
mov ebx, r14d
cmp dword [rbp - 0x60], ebx
jbe 0x14002d69d
mov esi, dword [rsp + 0x34]
mov eax, ebx
mov dword [rdi + rax*4], esi
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov r8d, 0x1f1
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_headphone_default_volume_from_registry___pdwVolumes__d____d
call fcn.14002f950
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x14002d671
mov r9d, 1
lea r8, [rsp + 0x40]
lea rdx, [0x1400920c8]
mov rcx, r12
call fcn.140002e10
mov ebx, eax
mov esi, dword [rsp + 0x40]
mov r9d, esi
mov r8d, eax
lea rdx, str.CAudioDevice::IsInHeadphonesMode
lea rcx, str._s_bSuccess_d_dwHpMode_d
call fcn.14002f950
test ebx, ebx
je 0x14002d74c
test esi, esi
je 0x14002d74c
movups xmm0, xmmword [0x14009c418]
movaps xmmword [rbp - 0x70], xmm0
mov rax, qword [r15]
lea r9, [rbp - 0x70]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r15
call qword [rax + 0x68]
jmp 0x14002d74c
mov rax, qword [r15]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r15
call qword [rax + 0x80]
mov ebx, r14d
cmp dword [rbp - 0x60], ebx
jbe 0x14002d74c
nop word [rax + rax]
mov eax, ebx
mov ecx, dword [rdi + rax*4]
mov dword [rsp + 0x20], ecx
mov r9d, ebx
mov r8d, 0x1fc
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_headphone_default_volume_from_MainLineCtrl___pdwVolumes__d____d
call fcn.14002f950
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x14002d720
mov eax, dword [rbp - 0x60]
lea eax, [rax*4]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str.HeadphoneVolume
lea rdx, str.Others
lea rcx, [0x1400da1c0]
mov rax, qword [0x1400da1c0]
call qword [rax + 0x38]
mov rcx, rdi
call fcn.140076db4
xor r9d, r9d
lea r8, str.HeadphoneMute
lea rdx, str.Others
lea rcx, [0x1400da1c0]
mov rax, qword [0x1400da1c0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor r9d, r9d
lea r8, str.SpeakerMute
lea rdx, str.Others
lea rcx, [0x1400da1c0]
mov rax, qword [0x1400da1c0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov r9d, 1
lea r8, [rsp + 0x44]
lea rdx, [0x1400920c8]
mov rcx, r12
call fcn.140002e10
mov ebx, eax
mov edi, dword [rsp + 0x44]
mov r9d, edi
mov r8d, eax
lea rdx, str.CAudioDevice::IsInHeadphonesMode
lea rcx, str._s_bSuccess_d_dwHpMode_d
call fcn.14002f950
test ebx, ebx
je 0x14002d80f
test edi, edi
je 0x14002d80f
mov r14d, 1
mov r9d, r14d
mov r8d, 0x209
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___Headphones_Mode___d
call fcn.14002f950
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, [0x1400934a8]
cmp dword [r12 + 0x148], 0
je 0x14002d858
mov r8d, 0x20c
call fcn.14002f950
lea r8, str.InHPMode_USB
jmp 0x14002d86a
mov r8d, 0x211
call fcn.14002f950
lea r8, str.InHPMode
mov rax, qword [0x1400da1c0]
mov r9d, r14d
lea rdx, str.Others
lea rcx, [0x1400da1c0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov eax, 1
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140076320
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret