Function at 0x1400d9f70
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [rcx + 0x50]
mov rdi, rcx
test dword [rax + 0x84], 0x800
je 0x1400da186
mov rax, qword [rcx + 0x68]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], r14
test dword [rax + 0x84], 0x800
je 0x1400da16f
xor ebx, ebx
lea r8, str.SOFTWARERealtekAudioWOV
mov r9d, 0x2001f
mov qword [rbp - 0x30], rbx
mov rdx, 0xffffffff80000002
mov dword [rbp - 0x28], ebx
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
call fcn.140024490
test eax, eax
jne 0x1400da052
mov r14, qword [rbp - 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DefaultKeywordGlobalStatus
mov dword [rbp + 0x28], 4
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400da048
cmp dword [rbp + 0x30], 4
jne 0x1400da048
mov esi, dword [rbp + 0x20]
test r14, r14
je 0x1400da172
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
test r14, r14
je 0x1400da061
mov rcx, r14
jmp 0x1400da05b
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400da061
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rdi + 0x70]
mov esi, ebx
mov dword [rbp + 0x20], ebx
test eax, eax
je 0x1400da0b4
mov rcx, qword [rdi + 0x80]
lea rdx, [rbp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov eax, dword [rdi + 0x70]
mov esi, dword [rbp + 0x20]
test eax, eax
je 0x1400da0b4
mov rcx, qword [rdi + 0x80]
lea r8, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400da0a7
cmp dword [rbp + 0x20], ebx
je 0x1400da0b4
lea rcx, str._ZZ__HWKWS::SetDefaultKeywordEnable___fail_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rdi + 0x68]
test dword [rax + 0x84], 0x800
je 0x1400da172
mov r9d, 0x2001f
mov qword [rbp - 0x30], rbx
lea r8, str.SOFTWARERealtekAudioWOV
mov dword [rbp - 0x28], ebx
mov rdx, 0xffffffff80000002
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x30]
call fcn.140024490
test eax, eax
jne 0x1400da14c
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], 4
test esi, esi
mov qword [rsp + 0x20], rax
mov r9d, 4
lea rdx, str.DefaultKeywordGlobalStatus
setne bl
xor r8d, r8d
mov dword [rbp + 0x20], ebx
mov rbx, qword [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x1400da172
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400da172
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
mov esi, dword [rbp + 0x20]
mov r14, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
xor ebx, ebx
mov dword [rbp + 0x20], ebx
cmp dword [rcx + 0x70], ebx
je 0x1400da1a4
mov rcx, qword [rcx + 0x80]
lea rdx, [rbp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebx, dword [rbp + 0x20]
mov eax, ebx
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret