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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov ebx, r8d
mov r15, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x350]
mov rdi, r9
call fcn.14001cd80
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call fcn.14001cd80
test byte [rsi + 0x290], 4
je 0x140013f0a
mov r9d, ebx
lea r8, str.Enter_Metering::GetFMExtStatus__d_n
mov edx, 0x400
lea rcx, [rbp + 0x350]
call fcn.140002050
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x14001429a
sub ebx, 1
je 0x140014287
sub ebx, 1
je 0x140013f55
sub ebx, 1
je 0x140013f43
cmp ebx, 1
je 0x140013f31
xor eax, eax
jmp 0x1400141ab
mov eax, dword [rsi + 0x274]
mov dword [rdi], eax
mov eax, 1
jmp 0x1400141ab
mov eax, dword [0x14006f534]
mov dword [rdi], eax
mov eax, 1
jmp 0x1400141ab
xor r9d, r9d
mov qword [rsp + 0x870], r13
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, rsi
call fcn.140012510
lea rdx, str.VEN_8086
movzx r13d, al
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea r9, [rsp + 0x50]
mov edx, 0x100
lea r8, str.GetFMExtStatus_IsEpIDIntMic___now_DeviceInstId__s_n
mov rcx, rsi
mov rbx, rax
call fcn.14000e0f0
lea rcx, [rsp + 0x50]
test rbx, rbx
jne 0x1400141f4
mov qword [rsp + 0x878], r12
lea rdx, str.ACPVEN_1022
mov qword [rsp + 0x868], r14
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov r14, rax
test rax, rax
jne 0x14001403c
lea rdx, str.VEN_1022DEV_15E2
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rdx, str.ACPDEVTYPE_0002
mov rbx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rdx, str._ACPDEVTYPE_0003
mov r12, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rbx, rbx
je 0x14001403c
test r12, r12
jne 0x140014020
test rax, rax
je 0x14001403c
lea r9, [rsp + 0x50]
mov edx, 0x100
lea r8, str.GetFMExtStatus_IsEpIDIntMic___int_mic_via_ACP_DeviceInstId__s_n
mov rcx, rsi
mov r14, rbx
call fcn.14000e0f0
xor ebx, ebx
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x50]
mov dword [rdi], ebx
lea r8, str.GetFMExtStatus_GetMMdeviceDeviceInstId_DevInstID__s_ret_d_n
mov edx, 0x100
mov rcx, rsi
call fcn.14000e0f0
mov rcx, rsi
test r14, r14
je 0x140014082
lea r8, str.GetFMExtStatus::AMD_ACP__IsEpIDIntMic1_n
mov dword [rdi], 1
mov edx, 0x100
call fcn.14000e0f0
jmp 0x1400141d6
xor r9d, r9d
mov dword [rsp + 0x38], 4
lea r8, [rsp + 0x30]
mov dword [rsp + 0x3c], ebx
mov rdx, r15
mov dword [rsp + 0x40], ebx
call fcn.1400114d0
mov r14, qword [rsp + 0x30]
test al, al
je 0x1400141c8
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_17
lea rax, [rsp + 0x3c]
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd r13, eax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_17
lea rax, [rsp + 0x38]
mov rcx, r14
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x3c]
movsxd r12, eax
test r13, r13
jne 0x140014119
cmp ecx, 1
jne 0x140014119
mov dword [rdi], ecx
mov eax, ebx
mov dword [rsp + 0x28], ecx
test r13, r13
lea r8, str.RTKIntExtKey_DevInstID__s_ok_d__Value_d_n
mov r9, r15
mov edx, 0x100
sete al
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.14000e0f0
mov ecx, dword [rsp + 0x40]
test r12, r12
jne 0x140014150
cmp ecx, 1
jne 0x140014150
mov dword [rdi], ecx
mov eax, ebx
mov dword [rsp + 0x28], ecx
test r12, r12
lea r8, str.FM_senaryIntExtKey_DevInstID__s_ok_d__Value_d_n
mov r9, r15
mov edx, 0x100
sete al
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.14000e0f0
test r12, r12
je 0x1400141c8
test r13, r13
je 0x1400141c8
test r14, r14
je 0x14001418f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rdi], ebx
xor eax, eax
mov r12, qword [rsp + 0x878]
mov r14, qword [rsp + 0x868]
mov r13, qword [rsp + 0x870]
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140019840
add rsp, 0x880
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14, r14
je 0x1400141d6
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, dword [rdi]
lea r8, str.GetFMExtStatus_pRetFMExt_ret_d_n
mov edx, 0x100
mov rcx, rsi
call fcn.14000e0f0
mov eax, 1
jmp 0x140014193
lea rdx, str.LINKTYPE_02DEVTYPE_00VEN_8086DEV_AE20
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rdx, str.LINKTYPE_02DEVTYPE_01VEN_8086DEV_AE20
mov rbx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rbx, rbx
jne 0x140014263
test rax, rax
jne 0x140014263
lea rdx, [rsp + 0x50]
call fcn.1400142b0
mov edx, 0x100
mov rcx, rsi
test eax, eax
je 0x14001424c
lea r8, str.GetFMExtStatus::Intel__Is_Intel_ISST_BT_USBTRUE__IsEpIDIntMic0_n
call fcn.14000e0f0
lea eax, [rbx + 1]
mov dword [rdi], ebx
jmp 0x1400141a3
lea r8, str.GetFMExtStatus::Intel__Is_Intel_ISST_BT_USBFALSE__not_support_type__IsEpIDIntMic0__ret0_n
call fcn.14000e0f0
xor ebx, ebx
mov dword [rdi], ebx
xor eax, eax
jmp 0x1400141a3
lea r8, str.GetFMExtStatus::Intel_Dmic_to_PCH__IsEpIDIntMic1_n
mov edx, 0x100
mov rcx, rsi
call fcn.14000e0f0
mov eax, 1
mov dword [rdi], 1
jmp 0x1400141a3
movzx eax, word [rsi + 0x254]
mov dword [rdi], eax
mov eax, 1
jmp 0x1400141ab
mov eax, dword [0x14006f530]
mov dword [rdi], eax
mov eax, 1
jmp 0x1400141ab