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

Disassembly:
push rbp
lea rbp, [rsp - 0x4180]
mov eax, 0x4280
call fcn.1400c26e0
sub rsp, rax
mov rax, qword [0x14014f010]
xor rax, rsp
mov qword [rbp + 0x4150], rax
cmp qword [0x140156df0], 0
jne 0x140028d99
xor eax, eax
jmp 0x14002918b
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.1400bf970
mov ecx, 7
test rax, rax
jne 0x140028df0
lea rdx, str.INTELAUDIO
lea rcx, [rbp + 0x1150]
call fcn.1400bf970
mov ecx, 0xa
test rax, rax
je 0x140028e14
cmp word [rax + rcx*2], 0x5c
mov ebx, 0x23
jne 0x140028e00
mov word [rax + rcx*2], bx
lea rdx, str.REV_
mov rcx, rax
call fcn.1400bf970
test rax, rax
jne 0x140028e28
lea rcx, str._npPos_NULL_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140029183
cmp word [rax + 0x10], 0x5c
mov qword [rsp + 0x4270], r13
jne 0x140028e3b
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.140028c90
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 [0x140156df0]
cmp dword [rax], r13d
je 0x14002916b
mov qword [rsp + 0x4278], r12
mov r12d, r13d
mov qword [rsp + 0x4260], r15
mov r15d, r13d
mov qword [rsp + 0x42a0], rsi
mov qword [rsp + 0x42a8], rdi
mov qword [rsp + 0x4268], r14
nop dword [rax + rax]
mov rax, qword [0x140156df0]
cmp qword [r15 + rax + 8], r13
je 0x140029143
cmp qword [rsp + 0x38], r13
jne 0x140028f04
cmp dword [r15 + rax], 3
jne 0x140029123
mov qword [rsp + 0x30], r13
mov edx, dword [r15 + rax]
mov rcx, qword [r15 + rax + 8]
cmp edx, 3
jne 0x140028f34
mov r9, rcx
lea r8, str.SYSTEMCurrentControlSetControlMediaCategories_s
lea rcx, [rbp + 0x3150]
mov edx, 0x800
call fcn.140028c90
jmp 0x140028f65
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 0x140028f60
lea r8, str._s_sDevice_ParametersEP0
call fcn.140028c90
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]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x140029123
mov r14, qword [0x140156df0]
mov ebx, dword [r15 + r14]
bt ebx, 8
jae 0x140028fb2
mov edi, 3
jmp 0x140028fc3
bt ebx, 9
mov edi, 1
mov eax, 4
cmovb edi, eax
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x1000
call fcn.1400bffa0
cmp ebx, 2
jne 0x140028ff4
mov rdx, qword [r15 + r14 + 0x10]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
jmp 0x14002911d
mov rax, qword [r15 + r14 + 0x18]
test rax, rax
je 0x140029029
lea rcx, [rbp + 0x150]
cmp edi, 3
jne 0x140029019
mov r8d, dword [r15 + r14 + 0x20]
mov rdx, rax
call fcn.1400c0250
jmp 0x14002906f
mov r8, rax
mov edx, 0x800
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x140029063
mov edx, dword [r15 + r14 + 0x20]
test edx, edx
jne 0x14002903c
cmp edi, 4
je 0x140029041
jmp 0x14002911a
cmp edi, 4
jne 0x140029049
mov dword [rbp + 0x150], edx
jmp 0x14002906f
mov rcx, qword [0x140156a88]
lea r8, [rbp + 0x150]
mov r9d, 0x7ff
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
mov r14, qword [0x140156df0]
mov rsi, qword [rsp + 0x30]
cmp word [rbp + 0x150], r13w
jne 0x140029082
cmp edi, 4
jne 0x14002911a
cmp edi, 3
jne 0x14002908e
mov ebx, dword [r15 + r14 + 0x20]
jmp 0x1400290b1
cmp edi, 4
jne 0x140029097
mov ebx, edi
jmp 0x1400290b1
lea rax, [rbp + 0x150]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x1400290a5
add ebx, ebx
cmp dword [r15 + r14 + 0x20], r13d
je 0x1400290f1
cmp edi, 1
jne 0x1400290f1
mov r8, qword [r15 + r14 + 0x10]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x104
lea r9d, [rdi - 2]
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, edi
jmp 0x1400290fc
mov rdx, qword [r15 + r14 + 0x10]
mov r9d, edi
mov rcx, rsi
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 rsi, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc r12
lea rcx, [r12 + r12*4]
lea r15, [rcx*8]
mov rcx, qword [0x140156df0]
cmp dword [r15 + rcx], r13d
jne 0x140028ee0
mov r14, qword [rsp + 0x4268]
mov rdi, qword [rsp + 0x42a8]
mov rsi, qword [rsp + 0x42a0]
mov r12, qword [rsp + 0x4278]
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.1400b96d0
add rsp, 0x4280
pop rbp
ret