Function at 0x140042484
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 0x1400424d0
mov r14, qword [rdx]
mov r8d, 8
lea rdx, [0x14009de50]
mov rcx, r14
call fcn.1400847e0
xor r12d, r12d
test eax, eax
jg 0x140042533
movups xmm6, xmmword [0x14009c5d8]
cmp rdi, 8
jb 0x140042ab7
mov rcx, qword [rbx]
lea rdx, [rdi*2 + 2]
cmp rdx, 0x1000
jb 0x140042ab2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042b05
jmp 0x140042aaf
movups xmm6, xmmword [0x14009e7a8]
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 0x14004261f
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 0x14004261f
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140042613
sub eax, 1
je 0x14004260a
sub eax, 1
je 0x140042601
cmp eax, 1
je 0x1400425f8
movups xmm6, xmmword [0x14009e7a8]
jmp 0x14004261a
movups xmm6, xmmword [0x14009c4f0]
jmp 0x14004261a
movups xmm6, xmmword [0x14009c550]
jmp 0x14004261a
movups xmm6, xmmword [0x14009c5d8]
jmp 0x14004261a
movups xmm6, xmmword [0x14009c630]
movups xmmword [rsp + 0x70], xmm6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004262f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movq rsi, xmm6
cmp rsi, qword [0x14009e7a8]
jne 0x14004282d
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rdi, xmm0
cmp rdi, qword [0x14009e7b0]
jne 0x140042832
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 0x14004281b
movups xmm6, xmmword [0x14009c630]
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 0x14004270c
cmp dword [rsp + 0x58], 1
jne 0x14004270c
movups xmm6, xmmword [0x14009c5d8]
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 0x140042763
cmp dword [rsp + 0x58], 1
jne 0x140042763
movups xmm6, xmmword [0x14009c4f0]
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 0x1400427ba
cmp dword [rsp + 0x58], 1
jne 0x1400427ba
movups xmm6, xmmword [0x14009c550]
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 0x140042811
cmp dword [rsp + 0x58], 1
jne 0x140042811
movups xmm6, xmmword [0x14009c550]
movups xmmword [rsp + 0x70], xmm6
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140042832
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140042832
mov rdi, qword [rsp + 0x78]
cmp rsi, qword [0x14009e7a8]
jne 0x140042a7c
cmp rdi, qword [0x14009e7b0]
jne 0x140042a63
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 0x140042a63
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 0x140042a58
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 0x140042a19
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 0x140042a0e
cmp dword [rsp + 0x68], 1
jne 0x140042a0e
mov eax, dword [rsp + 0x64]
add rax, rax
cmp rax, rdi
jae 0x140042aff
lea rdx, str.isstrtc.sys
mov word [rbp + rax + 0x120], r12w
lea rcx, [rbp + 0x120]
call fcn.1400661a0
test eax, eax
jne 0x140042a0e
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 0x140042a0e
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 0x140042a0e
cmp dword [rsp + 0x68], 4
jne 0x140042a0e
cmp dword [rbp - 0x7c], 1
movups xmm6, xmmword [0x14009c5d8]
movups xmmword [rsp + 0x70], xmm6
jne 0x140042a0e
movups xmm6, xmmword [0x14009c550]
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 0x1400428db
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 [0x14009e7a8]
jne 0x140042a7c
cmp rdi, qword [0x14009e7b0]
jne 0x140042a7c
movups xmm6, xmmword [0x14009c5d8]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140042ab7
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140042ab2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042b0b
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