Function at 0x14005f2c0
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7d8]
sub rsp, 0x8b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140162010]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov dword [rsp + 0x38], edx
mov r15, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov esi, r12d
mov dword [rsp + 0x30], r12d
mov dword [rbp - 0x70], r12d
test rcx, rcx
jne 0x14005f32b
mov r8d, 0x19c
jmp 0x14005f8ce
cmp dword [rcx + 0x178], esi
je 0x14005f33f
cmp dword [0x140169d98], esi
je 0x14005f8c1
lea rbx, [rcx + 0xc8]
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x14005f354
cmp dword [rbx + 0x38], esi
jne 0x14005f360
mov rcx, rbx
call fcn.1400100f0
mov rax, qword [rbx + 0x48]
cmp qword [rax + 0x10], rsi
jbe 0x14005f8c8
mov r14, qword [rax]
test r14, r14
je 0x14005f91e
mov r14, qword [r14 + 0x10]
test r14, r14
je 0x14005f8c8
mov rax, qword [r14]
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x14005f39f
mov r8d, 0x1a6
jmp 0x14005f8ce
mov ecx, dword [rbp - 0x70]
mov eax, 4
mul rcx
mov r13, 0xffffffffffffffff
cmovo rax, r13
mov rcx, rax
call fcn.1400c5e8c
mov rdi, rax
test rax, rax
jne 0x14005f3d0
mov r8d, 0x1a8
jmp 0x14005f8ce
mov r8d, dword [rbp - 0x70]
shl r8, 2
xor edx, edx
mov rcx, rdi
call fcn.1400cc120
mov dword [rsp + 0x34], r12d
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_IntSpk
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.1400820c0
test eax, eax
jne 0x14005f441
lea rcx, [rsp + 0x40]
call fcn.1400905b0
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.1400820c0
test eax, eax
jne 0x14005f441
xor bl, bl
jmp 0x14005f443
mov bl, 1
test sil, 1
je 0x14005f473
and esi, 0xfffffffe
mov dword [rsp + 0x30], esi
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005f46f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rsp + 0x30]
test bl, bl
je 0x14005f5eb
mov ebx, r12d
cmp dword [rbp - 0x70], ebx
jbe 0x14005f4c3
mov r15d, dword [rsp + 0x34]
nop dword [rax + rax]
mov eax, ebx
mov dword [rdi + rax*4], r15d
mov dword [rsp + 0x20], r15d
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.140061d00
inc ebx
cmp ebx, dword [rbp - 0x70]
jb 0x14005f490
mov r15, qword [rsp + 0x48]
mov rcx, r15
call fcn.14000f250
test eax, eax
je 0x14005f63c
cmp dword [rsp + 0x38], 0
je 0x14005f5c8
call fcn.140058670
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x90]
test eax, eax
je 0x14005f5c8
mov dword [rbp - 0x6c], 0x400
lea rdx, [rbp - 0x6c]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x14005f913
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x68]
call fcn.140004660
test al, al
jne 0x14005f55e
lea rcx, [rbp - 0x60]
mov rax, r13
inc rax
cmp word [rcx + rax*2], 0
jne 0x14005f543
mov r8d, eax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400048e0
nop
mov rbx, qword [rbp - 0x68]
cmp dword [rbx - 0x10], 0
jl 0x14005f586
lea rdx, str.defaultuser
mov rcx, rbx
call fcn.1400cbaf0
test rax, rax
je 0x14005f586
sub rax, rbx
sar rax, 1
test eax, eax
je 0x14005f5a8
movups xmm0, xmmword [0x1400f0c00]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [r14]
lea r9, [rsp + 0x60]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x70]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005f5c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rsp + 0x30]
jmp 0x14005f63c
movups xmm0, xmmword [0x1400f0c00]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x70]
jmp 0x14005f63c
mov rax, qword [r14]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x88]
mov ebx, r12d
cmp dword [rbp - 0x70], ebx
jbe 0x14005f63c
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.140061d00
inc ebx
cmp ebx, dword [rbp - 0x70]
jb 0x14005f610
mov eax, dword [rbp - 0x70]
lea eax, [rax*4]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str.SpeakerVolume
lea rdx, str.Others
lea rcx, [0x14016b430]
mov rax, qword [0x14016b430]
call qword [rax + 0x48]
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_HpForDell
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.1400820c0
test eax, eax
jne 0x14005f6e7
lea r9, [rsp + 0x34]
lea r8, str.PbDefaultVol_Hp
lea rdx, str.SOFTWARERealtekRealtekEffectsDriver
mov rcx, 0xffffffff80000002
call fcn.1400820c0
test eax, eax
jne 0x14005f6e7
lea rcx, [rsp + 0x50]
call fcn.1400905b0
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.1400820c0
test eax, eax
jne 0x14005f6e7
xor bl, bl
jmp 0x14005f6e9
mov bl, 1
test sil, 2
je 0x14005f70d
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x14005f70d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14005f779
mov ebx, r12d
cmp dword [rbp - 0x70], ebx
jbe 0x14005f74c
mov esi, dword [rsp + 0x34]
nop dword [rax]
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.140061d00
inc ebx
cmp ebx, dword [rbp - 0x70]
jb 0x14005f720
mov rcx, r15
call fcn.14000f080
test eax, eax
je 0x14005f7c0
movups xmm0, xmmword [0x1400f0c00]
movaps xmmword [rbp - 0x80], xmm0
mov rax, qword [r14]
lea r9, [rbp - 0x80]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x70]
jmp 0x14005f7c0
mov rax, qword [r14]
mov r8d, dword [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x88]
mov ebx, r12d
cmp dword [rbp - 0x70], ebx
jbe 0x14005f7c0
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.140061d00
inc ebx
cmp ebx, dword [rbp - 0x70]
jb 0x14005f794
mov eax, dword [rbp - 0x70]
lea eax, [rax*4]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str.HeadphoneVolume
lea rdx, str.Others
lea rcx, [0x14016b430]
mov rax, qword [0x14016b430]
call qword [rax + 0x48]
mov rcx, rdi
call fcn.1400c588c
xor r9d, r9d
lea r8, str.HeadphoneMute
lea rdx, str.Others
lea rcx, [0x14016b430]
mov rax, qword [0x14016b430]
call qword [rax + 0x28]
xor r9d, r9d
lea r8, str.SpeakerMute
lea rdx, str.Others
lea rcx, [0x14016b430]
mov rax, qword [0x14016b430]
call qword [rax + 0x28]
mov rcx, r15
call fcn.14000f080
mov ebx, eax
mov r9d, eax
mov r8d, 0x20a
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d___Headphones_Mode___d
call fcn.140061d00
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, [0x1400e9c70]
cmp dword [r15 + 0x178], 0
je 0x14005f88e
mov r8d, 0x20d
call fcn.140061d00
lea r8, str.InHPMode_USB
jmp 0x14005f8a0
mov r8d, 0x212
call fcn.140061d00
lea r8, str.InHPMode
test ebx, ebx
setne r12b
mov rax, qword [0x14016b430]
mov r9d, r12d
lea rdx, str.Others
lea rcx, [0x14016b430]
call qword [rax + 0x28]
mov eax, 1
jmp 0x14005f8e3
mov r8d, 0x1a3
lea rdx, str.CIndependentVolumeMgr::InitForIndepHPVol
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140061d00
xor eax, eax
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400c5860
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.140004fd0
int3
mov ecx, 0x80004005
call fcn.140004fd0
int3