Function at 0x140029810
Capabilities:
Delete registry value
Print debug messages
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x4180]
mov eax, 0x4280
call fcn.1400c7b20
sub rsp, rax
mov rax, qword [0x140158010]
xor rax, rsp
mov qword [rbp + 0x4150], rax
cmp qword [0x1401602e0], 0
jne 0x140029849
xor eax, eax
jmp 0x140029c57
mov r8, rcx
mov qword [rsp + 0x4298], rbx
lea rcx, [rbp + 0x1150]
mov edx, 0x800
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, str.HDAUDIO
lea rcx, [rbp + 0x1150]
call fcn.1400c4db0
mov ecx, 7
test rax, rax
jne 0x1400298a0
lea rdx, str.INTELAUDIO
lea rcx, [rbp + 0x1150]
call fcn.1400c4db0
mov ecx, 0xa
test rax, rax
je 0x1400298c4
cmp word [rax + rcx*2], 0x5c
mov ebx, 0x23
jne 0x1400298b0
mov word [rax + rcx*2], bx
lea rdx, str.REV_
mov rcx, rax
call fcn.1400c4db0
test rax, rax
jne 0x1400298d8
lea rcx, str._npPos_NULL_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140029c4f
cmp word [rax + 0x10], 0x5c
mov qword [rsp + 0x4270], r13
jne 0x1400298eb
mov word [rax + 0x10], bx
lea r9, str.6994AD04_93EF_11D0_A3CC_00A0C9223196
mov edx, 0x800
lea rax, [rbp + 0x1150]
mov qword [rsp + 0x28], r9
lea r8, str.SYSTEMCurrentControlSetControlDeviceClasses_s__s_s
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x2150]
call fcn.140029740
lea rax, [rsp + 0x38]
xor r13d, r13d
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x38], r13
lea rdx, [rbp + 0x2150]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rax, qword [0x1401602e0]
cmp dword [rax], r13d
je 0x140029c37
mov qword [rsp + 0x4278], r12
lea r12d, [r13 + 4]
mov qword [rsp + 0x4268], r14
mov r14d, r13d
mov qword [rsp + 0x4260], r15
mov r15d, r13d
mov qword [rsp + 0x42a0], rsi
mov qword [rsp + 0x42a8], rdi
nop dword [rax]
mov rax, qword [0x1401602e0]
cmp qword [r14 + rax + 8], r13
je 0x140029c0f
cmp qword [rsp + 0x38], r13
jne 0x1400299b4
cmp dword [r14 + rax], 3
jne 0x140029bef
mov qword [rsp + 0x30], r13
mov edx, dword [r14 + rax]
mov rcx, qword [r14 + rax + 8]
cmp edx, 3
jne 0x1400299e4
mov r9, rcx
lea r8, str.SYSTEMCurrentControlSetControlMediaCategories_s
lea rcx, [rbp + 0x3150]
mov edx, 0x800
call fcn.140029740
jmp 0x140029a15
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x2150]
bt edx, 0xc
lea rcx, [rbp + 0x3150]
mov edx, 0x800
lea r8, str._s_sDevice_ParametersFX0
jb 0x140029a10
lea r8, str._s_sDevice_ParametersEP0
call fcn.140029740
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x3150]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
cmp qword [rsp + 0x30], r13
je 0x140029bef
mov rbx, qword [0x1401602e0]
add rbx, r14
mov esi, dword [rbx]
bt esi, 8
jae 0x140029a60
mov edi, 3
jmp 0x140029a6d
bt esi, 9
mov edi, 1
cmovb edi, r12d
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x1000
call fcn.1400c53e0
cmp esi, 2
jne 0x140029a9a
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x140029be4
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x140029af6
cmp edi, 3
jne 0x140029adf
mov r8d, dword [rbx + 0x20]
test r8, r8
je 0x140029b2e
cmp r8, 0x1000
ja 0x140029acb
mov rdx, rax
lea rcx, [rbp + 0x150]
call fcn.1400c5690
jmp 0x140029b2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x140029b2e
mov r8, rax
lea rcx, [rbp + 0x150]
mov edx, 0x800
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x140029b2e
mov edx, dword [rbx + 0x20]
test edx, edx
jne 0x140029b07
cmp edi, r12d
je 0x140029b0c
jmp 0x140029be4
cmp edi, r12d
jne 0x140029b14
mov dword [rbp + 0x150], edx
jmp 0x140029b2e
mov rcx, qword [0x14015fb88]
lea r8, [rbp + 0x150]
mov r9d, 0x7ff
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
cmp word [rbp + 0x150], r13w
jne 0x140029b41
cmp edi, r12d
jne 0x140029be4
cmp edi, 3
jne 0x140029b54
mov rax, qword [0x1401602e0]
mov ebx, dword [r14 + rax + 0x20]
jmp 0x140029b7c
cmp edi, r12d
jne 0x140029b5e
mov ebx, r12d
jmp 0x140029b7c
lea rax, [rbp + 0x150]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x140029b70
add ebx, ebx
mov rdx, qword [0x1401602e0]
cmp dword [rdx + r14 + 0x20], r13d
je 0x140029bbe
cmp edi, 1
jne 0x140029bbe
mov r8, qword [rdx + r14 + 0x10]
lea rax, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x28], 0x104
lea r9d, [rdi - 2]
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov r9d, edi
lea rdx, [rsp + 0x40]
jmp 0x140029bc6
mov rdx, qword [rdx + r14 + 0x10]
mov r9d, edi
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x150]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc r15
lea rcx, [r15 + r15*4]
lea r14, [rcx*8]
mov rcx, qword [0x1401602e0]
cmp dword [r14 + rcx], r13d
jne 0x140029990
mov rdi, qword [rsp + 0x42a8]
mov rsi, qword [rsp + 0x42a0]
mov r12, qword [rsp + 0x4278]
mov r14, qword [rsp + 0x4268]
mov r15, qword [rsp + 0x4260]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r13, qword [rsp + 0x4270]
mov eax, 1
mov rbx, qword [rsp + 0x4298]
mov rcx, qword [rbp + 0x4150]
xor rcx, rsp
call fcn.1400beb20
add rsp, 0x4280
pop rbp
ret