Function at 0x140024690
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7e8]
sub rsp, 0x8c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov dword [rsp + 0x3c], edx
mov r12, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x30], r15d
mov dword [rbp - 0x60], r15d
test rcx, rcx
je 0x140024706
cmp dword [rcx + 0x148], r15d
je 0x140024706
cmp dword [0x1400bea10], r15d
je 0x140024d05
lea rbx, [rcx + 0xd0]
mov rax, qword [rbx + 0x48]
test rax, rax
jne 0x140024722
mov rcx, rbx
call fcn.14000bef0
mov rax, qword [rbx + 0x48]
cmp qword [rax + 0x10], rsi
jbe 0x140024d0c
mov r14, qword [rax]
test r14, r14
je 0x140024d57
mov r14, qword [r14 + 0x10]
test r14, r14
je 0x140024d0c
mov rax, qword [r14]
lea rdx, [rbp - 0x60]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x140024761
mov r8d, SafeArrayCopyData
jmp 0x140024d12
mov ecx, dword [rbp - 0x60]
mov eax, 4
mul rcx
mov r13, 0xffffffffffffffff
cmovo rax, r13
mov rcx, rax
call fcn.140066244
mov rdi, rax
test rax, rax
jne 0x140024792
mov r8d, SafeArrayCopyData
jmp 0x140024d12
mov r8d, dword [rbp - 0x60]
shl r8, 2
xor edx, edx
mov rcx, rdi
call fcn.14006d020
mov dword [rsp + 0x34], r15d
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_IntSpk
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.1400418b0
test eax, eax
jne 0x140024803
lea rcx, [rsp + 0x48]
call fcn.1400497b0
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.1400418b0
test eax, eax
jne 0x140024803
xor bl, bl
jmp 0x140024805
mov bl, 1
test sil, 1
je 0x140024835
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 0x140024831
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rsp + 0x30]
test bl, bl
je 0x1400249c6
mov ebx, r15d
cmp dword [rbp - 0x60], ebx
jbe 0x140024883
mov r12d, dword [rsp + 0x34]
nop word [rax + rax]
mov eax, ebx
mov dword [rdi + rax*4], r12d
mov dword [rsp + 0x20], r12d
mov r9d, ebx
mov r8d, 0x1ad
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_speaker_default_volume_from_registry___pdwVolumes__d____d
call fcn.140026f80
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x140024850
mov r12, qword [rsp + 0x50]
mov dword [rsp + 0x38], r15d
mov r9d, 1
lea r8, [rsp + 0x38]
lea rdx, [0x140080d30]
mov rcx, r12
call fcn.140002450
test eax, eax
je 0x140024a0d
cmp dword [rsp + 0x38], 0
je 0x140024a0d
cmp dword [rsp + 0x3c], 0
je 0x1400249a5
call fcn.1400209b0
cmp dword [rax + 0xc], 0
je 0x1400249a5
mov dword [rbp - 0x5c], 0x400
lea rdx, [rbp - 0x5c]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.140003520
mov rcx, rax
test rax, rax
je 0x140024d62
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x58]
call fcn.140004a90
test al, al
jne 0x14002493b
lea rcx, [rbp - 0x50]
mov rax, r13
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024920
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x58]
call fcn.140002f50
nop
mov rbx, qword [rbp - 0x58]
cmp dword [rbx - 0x10], 0
jl 0x140024963
lea rdx, str.defaultuser
mov rcx, rbx
call fcn.14006c5dc
test rax, rax
je 0x140024963
sub rax, rbx
sar rax, 1
test eax, eax
je 0x140024985
movups xmm0, xmmword [0x1400897c8]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x68]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002499f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rsp + 0x30]
jmp 0x140024a0d
movups xmm0, xmmword [0x1400897c8]
movaps xmmword [rbp - 0x80], xmm0
mov rax, qword [r14]
lea r9, [rbp - 0x80]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x68]
jmp 0x140024a0d
mov rax, qword [r14]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x80]
mov ebx, r15d
cmp dword [rbp - 0x60], ebx
jbe 0x140024a0d
mov eax, ebx
mov ecx, dword [rdi + rax*4]
mov dword [rsp + 0x20], ecx
mov r9d, ebx
mov r8d, 0x1cc
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_speaker_default_volume_from_MainLineCtrl___pdwVolumes__d____d
call fcn.140026f80
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x1400249e1
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, [0x1400bf590]
mov rax, qword [0x1400bf590]
call qword [rax + 0x38]
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_HpForDell
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.1400418b0
test eax, eax
jne 0x140024ab8
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_Hp
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.1400418b0
test eax, eax
jne 0x140024ab8
lea rcx, [rsp + 0x58]
call fcn.1400497b0
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.1400418b0
test eax, eax
jne 0x140024ab8
xor bl, bl
jmp 0x140024aba
mov bl, 1
test sil, 2
je 0x140024ade
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140024ade
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x140024b80
mov ebx, r15d
cmp dword [rbp - 0x60], ebx
jbe 0x140024b1e
mov esi, dword [rsp + 0x34]
mov eax, ebx
mov dword [rdi + rax*4], esi
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov r8d, 0x1e4
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_headphone_default_volume_from_registry___pdwVolumes__d____d
call fcn.140026f80
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x140024af2
mov r9d, 1
lea r8, [rsp + 0x40]
lea rdx, [0x140080d78]
mov rcx, r12
call fcn.140002450
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.140026f80
test ebx, ebx
je 0x140024bcc
test esi, esi
je 0x140024bcc
movups xmm0, xmmword [0x1400897c8]
movaps xmmword [rbp - 0x70], xmm0
mov rax, qword [r14]
lea r9, [rbp - 0x70]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x68]
jmp 0x140024bcc
mov rax, qword [r14]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x80]
mov ebx, r15d
cmp dword [rbp - 0x60], ebx
jbe 0x140024bcc
nop dword [rax + rax]
mov eax, ebx
mov ecx, dword [rdi + rax*4]
mov dword [rsp + 0x20], ecx
mov r9d, ebx
mov r8d, 0x1ef
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_headphone_default_volume_from_MainLineCtrl___pdwVolumes__d____d
call fcn.140026f80
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x140024ba0
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, [0x1400bf590]
mov rax, qword [0x1400bf590]
call qword [rax + 0x38]
mov rcx, rdi
call fcn.14006624c
xor r9d, r9d
lea r8, str.HeadphoneMute
lea rdx, str.Others
lea rcx, [0x1400bf590]
mov rax, qword [0x1400bf590]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor r9d, r9d
lea r8, str.SpeakerMute
lea rdx, str.Others
lea rcx, [0x1400bf590]
mov rax, qword [0x1400bf590]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov r9d, 1
lea r8, [rsp + 0x44]
lea rdx, [0x140080d78]
mov rcx, r12
call fcn.140002450
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.140026f80
test ebx, ebx
je 0x140024c8f
test edi, edi
je 0x140024c8f
mov r15d, 1
mov r9d, r15d
mov r8d, 0x1fc
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___Headphones_Mode___d
call fcn.140026f80
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, [0x140081b98]
cmp dword [r12 + 0x148], 0
je 0x140024cd8
mov r8d, 0x1ff
call fcn.140026f80
lea r8, str.InHPMode_USB
jmp 0x140024cea
mov r8d, 0x204
call fcn.140026f80
lea r8, str.InHPMode
mov rax, qword [0x1400bf590]
mov r9d, r15d
lea rdx, str.Others
lea rcx, [0x1400bf590]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov eax, 1
jmp 0x140024d27
mov r8d, 0x195
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140026f80
xor eax, eax
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140065bd0
lea r11, [rsp + 0x8c0]
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
mov ecx, 0x80004005
call fcn.140003270
int3
mov ecx, 0x80004005
call fcn.140003270
int3