Function at 0x140058c00
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x7a0], 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 - 0x70], r15d
test rcx, rcx
jne 0x140058c78
mov r8d, 0x19c
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
xor eax, eax
jmp 0x1400592f3
cmp dword [rcx + 0x178], esi
je 0x140058c8c
cmp dword [0x140143c10], esi
je 0x1400592ee
add rcx, 0xc8
call fcn.140010410
mov r14, rax
test rax, rax
jne 0x140058ca8
mov r8d, 0x1a3
jmp 0x140058c5e
mov rax, qword [rax]
lea rdx, [rbp - 0x70]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
test eax, eax
jne 0x140058cc8
mov r8d, 0x1a6
jmp 0x140058c5e
mov ecx, dword [rbp - 0x70]
mov eax, 4
mul rcx
mov r13, 0xffffffffffffffff
cmovo rax, r13
mov rcx, rax
call fcn.1400c1b80
mov rdi, rax
mov r8d, dword [rbp - 0x70]
shl r8, 2
xor edx, edx
mov rcx, rax
call fcn.1400c7980
mov dword [rsp + 0x34], r15d
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_IntSpk
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.14007edf0
test eax, eax
jne 0x140058d5a
lea rcx, [rsp + 0x48]
call fcn.14008e500
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.14007edf0
test eax, eax
jne 0x140058d5a
xor bl, bl
jmp 0x140058d5c
mov bl, 1
test sil, 1
je 0x140058d96
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 0x140058d92
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov esi, dword [rsp + 0x30]
test bl, bl
je 0x140058f58
mov ebx, r15d
cmp dword [rbp - 0x70], ebx
jbe 0x140058de3
mov r12d, dword [rsp + 0x34]
nop dword [rax + rax]
mov eax, ebx
mov dword [rdi + rax*4], r12d
mov dword [rsp + 0x20], r12d
mov r9d, ebx
mov r8d, 0x1bb
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_speaker_default_volume_from_registry___pdwVolumes__d____d
call fcn.14005b9a0
inc ebx
cmp ebx, dword [rbp - 0x70]
jb 0x140058db0
mov r12, qword [rsp + 0x50]
mov dword [rsp + 0x38], r15d
lea rcx, [r12 + 0x10]
mov r9d, 1
lea r8, [rsp + 0x38]
lea rdx, [0x1400de2a8]
call fcn.140002680
test eax, eax
je 0x140058fac
cmp dword [rsp + 0x38], 0
je 0x140058fac
cmp dword [rsp + 0x3c], 0
je 0x140058f2e
call fcn.1400529f0
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x90]
call qword [case.0x140048c62.0]
test eax, eax
je 0x140058f2e
mov dword [rbp - 0x6c], 0x400
lea rdx, [rbp - 0x6c]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.1400046f0
mov rcx, rax
test rax, rax
je 0x140059323
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x68]
call fcn.140003e50
test al, al
jne 0x140058eb0
lea rcx, [rbp - 0x60]
mov rax, r13
inc rax
cmp word [rcx + rax*2], 0
jne 0x140058e95
mov r8d, eax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400040e0
nop
mov rbx, qword [rbp - 0x68]
cmp dword [rbx - 0x10], 0
jl 0x140058ed8
lea rdx, str.defaultuser
mov rcx, rbx
call fcn.1400c7374
test rax, rax
je 0x140058ed8
sub rax, rbx
sar rax, 1
test eax, eax
je 0x140058f01
movups xmm0, xmmword [0x1400e9918]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [r14]
lea r9, [rsp + 0x60]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
mov rax, qword [rax + 0x68]
call qword [case.0x140048c62.0]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058f25
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov esi, dword [rsp + 0x30]
jmp 0x140058fac
movups xmm0, xmmword [0x1400e9918]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
mov rax, qword [rax + 0x68]
call qword [case.0x140048c62.0]
jmp 0x140058fac
mov rax, qword [r14]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
mov rax, qword [rax + 0x80]
call qword [case.0x140048c62.0]
mov ebx, r15d
cmp dword [rbp - 0x70], ebx
jbe 0x140058fac
nop word [rax + rax]
mov eax, ebx
mov ecx, dword [rdi + rax*4]
mov dword [rsp + 0x20], ecx
mov r9d, ebx
mov r8d, 0x1da
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_speaker_default_volume_from_MainLineCtrl___pdwVolumes__d____d
call fcn.14005b9a0
inc ebx
cmp ebx, dword [rbp - 0x70]
jb 0x140058f80
mov eax, dword [rbp - 0x70]
lea ecx, [rax*4]
mov rax, qword [0x14013c480]
mov dword [rsp + 0x20], ecx
mov r9, rdi
lea r8, str.SpeakerVolume
lea rdx, str.Others
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x48]
call qword [case.0x140048c62.0]
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_HpForDell
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.14007edf0
test eax, eax
jne 0x14005905e
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_Hp
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.14007edf0
test eax, eax
jne 0x14005905e
lea rcx, [rsp + 0x58]
call fcn.14008e500
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.14007edf0
test eax, eax
jne 0x14005905e
xor bl, bl
jmp 0x140059060
mov bl, 1
test sil, 2
je 0x14005908e
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x14005908e
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
test bl, bl
je 0x140059139
mov ebx, r15d
cmp dword [rbp - 0x70], ebx
jbe 0x1400590ce
mov esi, dword [rsp + 0x34]
mov eax, ebx
mov dword [rdi + rax*4], esi
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov r8d, 0x1f2
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_headphone_default_volume_from_registry___pdwVolumes__d____d
call fcn.14005b9a0
inc ebx
cmp ebx, dword [rbp - 0x70]
jb 0x1400590a2
lea rcx, [r12 + 0x10]
mov r9d, 5
lea r8, [rsp + 0x40]
lea rdx, [0x1400de2f0]
call fcn.140002680
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.14005b9a0
test ebx, ebx
je 0x14005918c
test esi, esi
je 0x14005918c
movups xmm0, xmmword [0x1400e9918]
movaps xmmword [rbp - 0x80], xmm0
mov rax, qword [r14]
lea r9, [rbp - 0x80]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
mov rax, qword [rax + 0x68]
call qword [case.0x140048c62.0]
jmp 0x14005918c
mov rax, qword [r14]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
mov rax, qword [rax + 0x80]
call qword [case.0x140048c62.0]
mov ebx, r15d
cmp dword [rbp - 0x70], ebx
jbe 0x14005918c
nop dword [rax + rax]
mov eax, ebx
mov ecx, dword [rdi + rax*4]
mov dword [rsp + 0x20], ecx
mov r9d, ebx
mov r8d, 0x1fd
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___get_headphone_default_volume_from_MainLineCtrl___pdwVolumes__d____d
call fcn.14005b9a0
inc ebx
cmp ebx, dword [rbp - 0x70]
jb 0x140059160
mov eax, dword [rbp - 0x70]
lea ecx, [rax*4]
mov rax, qword [0x14013c480]
mov dword [rsp + 0x20], ecx
mov r9, rdi
lea r8, str.HeadphoneVolume
lea rdx, str.Others
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x48]
call qword [case.0x140048c62.0]
mov rcx, rdi
call fcn.1400c1818
mov rax, qword [0x14013c480]
xor r9d, r9d
lea r8, str.HeadphoneMute
lea rdx, str.Others
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x28]
call qword [case.0x140048c62.0]
mov rax, qword [0x14013c480]
xor r9d, r9d
lea r8, str.SpeakerMute
lea rdx, str.Others
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x28]
call qword [case.0x140048c62.0]
lea rcx, [r12 + 0x10]
mov r9d, 5
lea r8, [rsp + 0x44]
lea rdx, [0x1400de2f0]
call fcn.140002680
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.14005b9a0
test ebx, ebx
je 0x140059266
test edi, edi
je 0x140059266
mov r15d, 1
mov r9d, r15d
mov r8d, 0x20a
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___Headphones_Mode___d
call fcn.14005b9a0
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, [0x1400e3358]
cmp dword [r12 + 0x178], 0
je 0x1400592ba
mov r8d, 0x20d
call fcn.14005b9a0
mov rax, qword [0x14013c480]
lea r8, str.InHPMode_USB
mov rax, qword [rax + 0x28]
jmp 0x1400592d7
mov r8d, 0x212
call fcn.14005b9a0
mov rcx, qword [0x14013c480]
mov rax, qword [rcx + 0x28]
lea r8, str.InHPMode
mov r9d, r15d
lea rdx, str.Others
lea rcx, [0x14013c480]
call qword [case.0x140048c62.0]
mov eax, 1
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400c17f0
lea r11, [rsp + 0x8b0]
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.140004820
int3