Function at 0x1400239fc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x368]
sub rsp, 0x440
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400b7010]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rdi, qword [rdx + 0x18]
mov rbx, rdx
mov r15, rcx
mov r14, rdx
cmp rdi, 8
jb 0x140023a48
mov r14, qword [rdx]
mov r8d, 8
lea rdx, [0x14009de50]
mov rcx, r14
call fcn.1400847e0
xor r12d, r12d
test eax, eax
jg 0x140023aab
movups xmm6, xmmword [0x14009b768]
cmp rdi, 8
jb 0x14002402f
mov rcx, qword [rbx]
lea rdx, [rdi*2 + 2]
cmp rdx, 0x1000
jb 0x14002402a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002407d
jmp 0x140024027
movups xmm6, xmmword [0x14008c8b0]
mov edi, 0x190
mov qword [rsp + 0x40], r12
lea r8, str.SOFTWAREICEpowerICEsound
mov dword [rsp + 0x60], 4
mov edx, edi
mov dword [rsp + 0x5c], 0x400
lea rcx, [rbp - 0x70]
movups xmmword [rsp + 0x70], xmm6
call fcn.14001ff84
lea rax, [rsp + 0x40]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023b97
lea r8, str.HardwareOutputPath
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.14001ff84
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140023b97
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140023b8b
sub eax, 1
je 0x140023b82
sub eax, 1
je 0x140023b79
cmp eax, 1
je 0x140023b70
movups xmm6, xmmword [0x14008c8b0]
jmp 0x140023b92
movups xmm6, xmmword [0x14009a6e8]
jmp 0x140023b92
movups xmm6, xmmword [0x14009b718]
jmp 0x140023b92
movups xmm6, xmmword [0x14009b768]
jmp 0x140023b92
movups xmm6, xmmword [0x14009b7b8]
movups xmmword [rsp + 0x70], xmm6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140023ba7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movq rsi, xmm6
cmp rsi, qword [0x14008c8b0]
jne 0x140023da5
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rdi, xmm0
cmp rdi, qword [0x14008c8b8]
jne 0x140023daa
mov r9, r14
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender_sFxProperties
mov r14d, 0x190
lea rcx, [rbp - 0x70]
mov edx, r14d
call fcn.14001ff84
lea rax, [rsp + 0x40]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023d93
movups xmm6, xmmword [0x14009b7b8]
lea rdi, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700__d
mov edx, r14d
lea r9d, [rax + 6]
mov r8, rdi
lea rcx, [rbp - 0x70]
movups xmmword [rsp + 0x70], xmm6
call fcn.14001ff84
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140023c84
cmp dword [rsp + 0x58], 1
jne 0x140023c84
movups xmm6, xmmword [0x14009b768]
movups xmmword [rsp + 0x70], xmm6
mov r9d, 0x14
lea rcx, [rbp - 0x70]
mov r8, rdi
mov rdx, r14
call fcn.14001ff84
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140023cdb
cmp dword [rsp + 0x58], 1
jne 0x140023cdb
movups xmm6, xmmword [0x14009a6e8]
movups xmmword [rsp + 0x70], xmm6
mov r9d, 4
lea rcx, [rbp - 0x70]
mov r8, rdi
mov rdx, r14
call fcn.14001ff84
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140023d32
cmp dword [rsp + 0x58], 1
jne 0x140023d32
movups xmm6, xmmword [0x14009b718]
movups xmmword [rsp + 0x70], xmm6
mov r9d, 1
lea rcx, [rbp - 0x70]
mov r8, rdi
mov rdx, r14
call fcn.14001ff84
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140023d89
cmp dword [rsp + 0x58], 1
jne 0x140023d89
movups xmm6, xmmword [0x14009b718]
movups xmmword [rsp + 0x70], xmm6
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140023daa
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140023daa
mov rdi, qword [rsp + 0x78]
cmp rsi, qword [0x14008c8b0]
jne 0x140023ff4
cmp rdi, qword [0x14008c8b8]
jne 0x140023fdb
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], r12
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x50], r12
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E96C_E325_11CE_BFC1_08002BE10318
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023fdb
mov rcx, qword [rsp + 0x40]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x38], r12
lea r8, [rbp + 0x120]
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov r14d, r12d
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x80], 0xff
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x68], r12d
mov dword [rbp - 0x7c], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x140023fd0
mov edi, 0x1fe
mov esi, 0x20119
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x80], 0xff
lea rdx, [rbp + 0x120]
inc r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023f91
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rbp + 0x120]
mov dword [rsp + 0x64], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Driver
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140023f86
cmp dword [rsp + 0x68], 1
jne 0x140023f86
mov eax, dword [rsp + 0x64]
add rax, rax
cmp rax, rdi
jae 0x140024077
lea rdx, str.isstrtc.sys
mov word [rbp + rax + 0x120], r12w
lea rcx, [rbp + 0x120]
call fcn.1400661a0
test eax, eax
jne 0x140023f86
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.HeadsetStatus
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023f86
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rbp - 0x7c]
mov dword [rsp + 0x64], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HeadsetStatus
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140023f86
cmp dword [rsp + 0x68], 4
jne 0x140023f86
cmp dword [rbp - 0x7c], 1
movups xmm6, xmmword [0x14009b768]
movups xmmword [rsp + 0x70], xmm6
jne 0x140023f86
movups xmm6, xmmword [0x14009b718]
movups xmmword [rsp + 0x70], xmm6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x38], r12
lea r8, [rbp + 0x120]
mov qword [rsp + 0x30], r12
mov edx, r14d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x140023e53
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp rsi, qword [0x14008c8b0]
jne 0x140023ff4
cmp rdi, qword [0x14008c8b8]
jne 0x140023ff4
movups xmm6, xmmword [0x14009b768]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002402f
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14002402a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140024083
mov rcx, r8
call fcn.140047244
mov qword [rbx + 0x10], r12
mov rax, r15
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
movdqu xmmword [r15], xmm6
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.140046df0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140047698
int3
call fcn.14004d3f8
int3
call fcn.14004d3f8
int3