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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
call fcn.14000b2a0
movzx ebx, word [rax + 0x340]
call fcn.14000b2a0
movzx esi, word [rax + 0x342]
call fcn.14000b2a0
movzx edi, word [rax + 0x344]
call fcn.14000b2a0
movzx ecx, word [rax + 0x346]
shl esi, 0x10
or esi, ebx
mov dword [0x1401439f0], esi
shl ecx, 0x10
or ecx, edi
mov dword [0x1401439f4], ecx
cmp ecx, 0x17aa380a
jne 0x1400517c8
cmp esi, 0x17aa381c
jne 0x1400517c8
call fcn.14000b2a0
test dword [rax + 0xc0], 0x100
je 0x1400517c8
mov dword [rsp + 0x78], 0xffffffff
xor r9d, r9d
lea r8, [rsp + 0x78]
lea edx, [r9 + 1]
lea rcx, str.powercfg__SETDCVALUEINDEX_SCHEME_BALANCED_SUB_NONE_CONNECTIVITYINSTANDBY_1
call fcn.140051fe0
mov dword [rsp + 0x7c], 0xffffffff
xor r9d, r9d
lea r8, [rsp + 0x7c]
lea edx, [r9 + 1]
lea rcx, str.powercfg__SETACVALUEINDEX_SCHEME_BALANCED_SUB_NONE_CONNECTIVITYINSTANDBY_1
call fcn.140051fe0
mov dword [rbp - 0x80], 0xffffffff
xor r9d, r9d
lea r8, [rbp - 0x80]
lea edx, [r9 + 1]
lea rcx, str.powercfg__S_SCHEME_BALANCED
call fcn.140051fe0
mov dword [rbp - 0x7c], 1
lea r8, [rbp - 0x7c]
lea rdx, str.Enable_CONNECTIVITYINSTANDBY
call fcn.140051590
call fcn.14000b2a0
test dword [rax + 0x1a0], 0x10000
je 0x14005182b
lea rax, [0x14013c3b0]
mov qword [0x140143d48], rax
mov rcx, qword [0x140145340]
mov r8d, dword [rcx - 0x10]
test r8d, r8d
js 0x140051b0c
mov edx, 1
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, r8d
or eax, edx
jge 0x140051826
lfence
mov edx, r8d
lea rcx, [0x140145340]
call fcn.1400042a0
mov rcx, qword [0x140145340]
call fcn.14002af70
call fcn.14000b2a0
test dword [rax + 0x214], 0x10000
je 0x140051ad0
mov dword [rsp + 0x68], 0x157c
mov dword [rbp - 0x78], 4
mov dword [rsp + 0x6c], 4
call fcn.14000b2a0
mov r14, rax
test rax, rax
je 0x14005194c
cmp dword [rax + 0x58], 0
je 0x14005194c
xor edi, edi
movsxd rcx, dword [0x140145308]
mov r12, rcx
test ecx, ecx
jle 0x140051a2a
xor ebx, ebx
xor esi, esi
nop word [rax + rax]
cmp ecx, edi
jg 0x1400518b1
mov r8d, 0x2d3
lea rdx, str.CDriverPropertyClient::GetPropDevicePath
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
xor edx, edx
jmp 0x1400518cd
test rbx, rbx
js 0x140051afc
cmp edi, ecx
jge 0x140051afc
mov rax, qword [0x140145300]
mov rdx, qword [rax + rbx*8]
lea rcx, [rsp + 0x50]
call fcn.140003d80
mov rcx, rax
call fcn.14008e620
test eax, eax
je 0x14005190a
test rbx, rbx
js 0x140051b17
cmp edi, dword [r14 + 0x358]
jge 0x140051b17
mov rdx, qword [r14 + 0x350]
test byte [rsi + rdx + 0x400], 0x10
jne 0x14005192a
inc edi
inc rbx
add rsi, 0x434
cmp rbx, r12
jge 0x140051a2a
mov ecx, dword [0x140145308]
jmp 0x140051890
test edi, edi
js 0x140051b17
movsxd rax, edi
imul rcx, rax, 0x434
mov eax, dword [rcx + rdx + 0x430]
mov dword [rsp + 0x68], eax
jmp 0x140051a2a
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x70]
call fcn.14008e500
nop
lea r8, str.Settings
lea rdx, [0x1400fb9c0]
lea rcx, [rsp + 0x70]
call fcn.14000ba80
mov qword [rsp + 0x58], 0
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 0x1400519c1
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 0x1400519ff
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
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
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140051a2a
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
lea rax, [rbp - 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
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 0x140051aae
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
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 0x140051ad0
mov r9d, eax
lea r8, str._nGlobalPolicy.SupportFakeMicArray_RegCreateKeyEx_Fail:0x_08x__n
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14002aeb0
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.1400c17f0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
mov edx, 1
mov ecx, 0xc000008c
call fcn.1400149b0
int3
mov ecx, 0x80070057
call fcn.140004820
int3
mov edx, 1
mov ecx, 0xc000008c
call fcn.1400149b0
int3