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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
call fcn.1400097d0
movzx ebx, word [rax + 0x2cc]
call fcn.1400097d0
movzx esi, word [rax + 0x2ce]
call fcn.1400097d0
movzx edi, word [rax + 0x2d0]
call fcn.1400097d0
movzx ecx, word [rax + 0x2d2]
shl esi, 0x10
or esi, ebx
mov dword [0x1400dc4fc], esi
shl ecx, 0x10
or ecx, edi
mov dword [0x1400dc4f8], ecx
mov ebx, 1
cmp ecx, 0x17aa380a
jne 0x14002aac3
cmp esi, 0x17aa381c
jne 0x14002aac3
call fcn.1400097d0
test dword [rax + 0x48], 0x100
je 0x14002aac3
mov dword [rsp + 0x78], 0xffffffff
lea r8, [rsp + 0x78]
mov edx, ebx
lea rcx, str.powercfg__SETDCVALUEINDEX_SCHEME_BALANCED_SUB_NONE_CONNECTIVITYINSTANDBY_1
call fcn.14002b130
mov dword [rsp + 0x7c], 0xffffffff
lea r8, [rsp + 0x7c]
mov edx, ebx
lea rcx, str.powercfg__SETACVALUEINDEX_SCHEME_BALANCED_SUB_NONE_CONNECTIVITYINSTANDBY_1
call fcn.14002b130
mov dword [rbp - 0x80], 0xffffffff
lea r8, [rbp - 0x80]
mov edx, ebx
lea rcx, str.powercfg__S_SCHEME_BALANCED
call fcn.14002b130
mov dword [rbp - 0x7c], ebx
lea r8, [rbp - 0x7c]
lea rdx, str.Enable_CONNECTIVITYINSTANDBY
call fcn.14002a8b0
call fcn.1400097d0
test dword [rax + 0x128], 0x10000
je 0x14002ab1f
lea rax, [0x1400d82d0]
mov qword [0x1400dc850], rax
mov rcx, qword [0x1400dd988]
mov edx, dword [rcx - 0x10]
test edx, edx
jns 0x14002aafb
mov ecx, 0x80070057
call fcn.140003fc0
int3
sub ebx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edx
or eax, ebx
jge 0x14002ab1a
lea rcx, [0x1400dd988]
call fcn.140003f00
mov rcx, qword [0x1400dd988]
call fcn.140015a50
call fcn.1400097d0
test dword [rax + 0x19c], 0x10000
je 0x14002acb7
mov dword [rsp + 0x6c], 0x157c
mov dword [rbp - 0x78], 4
mov dword [rsp + 0x68], 4
xor eax, eax
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140058e80
nop
lea r8, str.Settings
lea rdx, str.SettingsEx
lea rcx, [rsp + 0x70]
call fcn.140009e00
xor ebx, ebx
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14002abbc
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegCreateKeyW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002abfa
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.DefaultDefaultMicGain
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002ac19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftSpeech_OneCoreAudioInputMicWiz
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002ac95
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.DefaultDefaultMicGain
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14002acb7
mov r9d, eax
lea r8, str._nGlobalPolicy.SupportFakeMicArray_RegCreateKeyEx_Fail:0x_08x__n
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.140015960
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140079e30
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret