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

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c8]
sub rsp, 0x4c8
mov rax, qword [0x14004e038]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov byte [r9], 0
mov rdi, r9
test byte [rcx + 0x270], 4
mov r12d, r8d
mov dword [rsp + 0x50], r8d
mov r15, rdx
mov rbx, rcx
je 0x140007c2f
mov dword [rsp + 0x20], r8d
lea rcx, [rbp - 0x60]
mov r9, rdx
lea r8, str.Enter_Metering::GetFMFunctionStatus__s__Function__d_r_n
mov edx, 0x400
call fcn.140001140
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea r14, [rbx + 0x1e0]
mov qword [rsp + 0x4c0], rsi
mov rcx, r14
mov qword [rsp + 0x40], r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rdx, r15
mov rcx, rbx
call fcn.1400067f0
test al, al
jne 0x140007c74
test byte [rbx + 0x270], 1
je 0x140007eb7
lea r8, str.Metering::GetFMFunctionStatus__s:_Not_Support_r_n
jmp 0x140007e9c
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [r15 + rdx*2], 0
jne 0x140007c80
inc rdx
lea rcx, [rbx + 0x40]
mov r8, r15
call fcn.140017e40
cmp r12d, 0x15
jne 0x140007e07
xor esi, esi
xor ecx, ecx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x60]
xor edx, edx
lea r9, [0x14004eba8]
mov qword [rsp + 0x20], rax
lea r8d, [r12 + 2]
lea rcx, [0x14004eb98]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jne 0x140007dd8
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov r14d, 1
mov r8d, r14d
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140007dc3
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140007db3
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x68]
xor eax, eax
lea rdx, [0x140042498]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x140007da8
mov rcx, qword [rsp + 0x70]
lea rdx, str.VEN_8086
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140007d70
mov esi, r14d
jmp 0x140007da8
mov rcx, qword [rsp + 0x50]
lea r8, [rbp - 0x78]
mov qword [rbp - 0x78], rax
lea rdx, [0x140042468]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x140007d9e
cmp dword [rbp - 0x70], r14d
cmove esi, r14d
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140007dc3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007dd3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140007de8
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
test esi, esi
je 0x140007eb7
mov rcx, r14
mov byte [rdi], 1
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x1400083ee
mov rcx, rbx
cmp r12d, 0x12
jne 0x140007e48
lea rax, [rbp - 0x80]
xor esi, esi
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_16
mov dword [rbp - 0x80], esi
mov qword [rsp + 0x20], rax
call fcn.140008cc0
test eax, eax
je 0x140007eb7
cmp dword [rbp - 0x80], esi
je 0x140007e3a
mov byte [rdi], 1
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x1400083ee
mov r9d, dword [rbx + 0x230]
lea r8, [rsp + 0x40]
mov rdx, r15
call fcn.140008620
test al, al
jne 0x140007e72
test byte [rbx + 0x270], 1
je 0x140007eb7
lea r8, str.Metering::GetFMFunctionStatus__s:_Cannot_get_K2_value_r_n
jmp 0x140007e9c
mov r9d, dword [rbx + 0x230]
lea r8, [rbp - 0x80]
mov rdx, r15
mov rcx, rbx
call fcn.140008940
test al, al
jne 0x140007ec7
test byte [rbx + 0x270], 1
je 0x140007eb7
lea r8, str.Metering::GetFMFunctionStatus__s:_Cannot_get_K7_value_r_n
mov r9, r15
lea rcx, [rbp - 0x60]
mov edx, 0x400
call fcn.140001140
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xor al, al
jmp 0x1400083f0
cmp dword [rbx + 0x230], 0
mov rdx, r15
mov qword [rsp + 0x4b8], r13
mov rcx, rbx
jne 0x140008220
lea r13, [rbx + 0x20c]
mov r8, r13
call fcn.140008800
test al, al
jne 0x140007f1b
lea rcx, str.Reset_Pre_K2_value_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov r8d, 3
mov dword [r13], 3
mov rdx, r15
mov rcx, rbx
call fcn.1400086c0
xor r9d, r9d
mov dword [rsp + 0x60], 4
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, rbx
call fcn.140008450
mov esi, dword [rsp + 0x40]
test al, al
je 0x140007f87
mov r14, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_202
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, r14
test eax, eax
jne 0x140007f81
mov r12d, dword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140007fa7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rcx, str.Reset_Orientation_value_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov r8d, esi
mov rdx, r15
mov rcx, rbx
call fcn.140008760
mov r12d, dword [rsp + 0x50]
lea r8, [rbp - 0x7c]
mov rdx, r15
mov rcx, rbx
call fcn.140005fa0
test byte [rbx + 0x270], 0x40
mov r14d, dword [rbp - 0x80]
je 0x140007ff6
mov eax, dword [r13]
lea r8, str._s:_Get_K2_0x_x__K7_0x_x__Pre_K2_0x_x_r_n
mov dword [rsp + 0x30], eax
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x28], r14d
mov r9, r15
mov edx, 0x400
mov dword [rsp + 0x20], esi
call fcn.140001140
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
movsxd rax, dword [rsp + 0x50]
cmp eax, 0xb
ja case.default.0x140008015
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x8418]
add rcx, rdx
jmp rcx
movzx eax, word [rbx + 0x148]
cmp esi, eax
je 0x14000803e
cmp esi, 0xb
je 0x140008047
and sil, 1
lea r8, str.AEC__x_r_n
mov byte [rdi], sil
movzx r9d, sil
jmp 0x140008390
movzx eax, byte [r13]
and al, 1
mov byte [rdi], al
movzx r9d, byte [rdi]
lea r8, str.AEC__x_r_n
jmp 0x140008390
lea eax, [rsi - 0xc]
cmp eax, 1
jbe 0x140008088
movzx eax, word [rbx + 0x148]
cmp esi, eax
je 0x140008088
cmp esi, 0xb
je 0x140008088
shr esi, 1
lea r8, str.BF__x_r_n
and sil, 1
mov byte [rdi], sil
movzx r9d, sil
jmp 0x140008390
movzx eax, word [rbx + 0x148]
cmp esi, eax
jne 0x14000809e
movzx eax, byte [r13]
shr al, 1
and al, 1
mov byte [rdi], al
movzx r9d, byte [rdi]
lea r8, str.BF__x_r_n
jmp 0x140008390
shr r14d, 4
lea r8, str.NS__x_r_n
not r14b
and r14b, 1
mov byte [rdi], r14b
movzx r9d, r14b
jmp 0x140008390
movzx eax, word [rbx + 0x148]
cmp esi, eax
je 0x1400080f3
and esi, 0xc
lea r8, str.FFP__x_r_n
cmp sil, 0xc
sete al
mov byte [rdi], al
movzx r9d, al
jmp 0x140008390
mov eax, dword [r13]
and eax, 0xc
cmp al, 0xc
jne 0x140008113
mov al, 1
mov byte [rdi], 1
movzx r9d, al
lea r8, str.FFP__x_r_n
jmp 0x140008390
xor al, al
mov byte [rdi], 0
movzx r9d, al
lea r8, str.FFP__x_r_n
jmp 0x140008390
shr r14d, 8
lea r8, str.KSS__x_r_n
and r14b, 1
mov byte [rdi], r14b
movzx r9d, r14b
jmp 0x140008390
movzx eax, word [rbx + 0x148]
lea r8, str.VR__x_r_n
cmp esi, eax
sete al
mov byte [rdi], al
movzx r9d, al
jmp 0x140008390
cmp esi, 0xb
lea r8, str.FMV__x_r_n
sete al
mov byte [rdi], al
movzx r9d, al
jmp 0x140008390
shr r14d, 2
lea r8, str.Mic_Disable_Effect__x_r_n
and r14b, 1
mov byte [rdi], r14b
movzx r9d, r14b
jmp 0x140008390
shr r12d, 1
lea r8, str.Orientation_BF__x_r_n
and r12b, 1
mov byte [rdi], r12b
movzx r9d, r12b
jmp 0x140008390
and r14d, 1
lea r8, str.EXTERNAL_MIC_NS__x_r_n
mov byte [rdi], r14b
jmp 0x14000838d
mov eax, dword [rbp - 0x7c]
lea r8, str.NLD__x_r_n
and eax, 1
mov byte [rdi], al
mov r9d, eax
jmp 0x140008390
lea rax, [rbp - 0x7c]
xor esi, esi
lea r9, str.13AE3061_F6DC_45C1_B90C_F5E992141790_11
mov dword [rbp - 0x7c], esi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140008cc0
cmp dword [rbp - 0x7c], esi
je 0x14000839e
mov byte [rdi], 1
jmp 0x14000839e
lea r8, str.No_Support_r_n
mov edx, 0x400
lea rcx, [rbp - 0x60]
call fcn.140001140
jmp 0x14000839e
mov r14d, 1
mov dword [rsp + 0x50], 4
mov r9d, r14d
lea r8, [rsp + 0x48]
mov esi, 0x40860000
call fcn.140008450
test al, al
je 0x14000828c
mov r13, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_7
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, r13
test eax, eax
jne 0x140008286
mov esi, dword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400082b7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test byte [rbx + 0x270], r14b
je 0x1400082b7
mov r9, r15
lea r8, str.Metering::GetFMFunctionStatus__s:_Cannot_get_PreK7_value_r_n
mov edx, 0x400
lea rcx, [rbp - 0x60]
call fcn.140001140
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
test byte [rbx + 0x270], 0x40
mov r13d, dword [rbp - 0x80]
je 0x140008301
mov eax, dword [rsp + 0x40]
lea r8, str._s__d_:_Get_K2_0x_x__K7_0x_x__PreK7_0x_x_r_n
mov dword [rsp + 0x38], esi
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x30], r13d
mov r9, r15
mov dword [rsp + 0x28], eax
mov edx, 0x400
mov eax, dword [rbx + 0x268]
mov dword [rsp + 0x20], eax
call fcn.140001140
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp r12d, 0x10
jne 0x140008356
cmp dword [rbx + 0x268], 0
jne 0x140008329
shr esi, 2
lea r8, str.SPKNS__x_r_n
not sil
and sil, r14b
mov byte [rdi], sil
movzx r9d, sil
jmp 0x140008390
test r13b, 4
jne 0x140008343
mov byte [rdi], r14b
lea r8, str.SPKNS__x_r_n
movzx esi, r14b
movzx r9d, r14b
jmp 0x140008390
xor sil, sil
mov byte [rdi], 0
movzx r9d, sil
lea r8, str.SPKNS__x_r_n
jmp 0x140008390
cmp r12d, 0x11
jne 0x14000839e
mov eax, dword [rbx + 0x268]
test eax, eax
jne 0x14000836b
mov byte [rdi], r14b
jmp 0x140008386
cmp eax, r14d
jne 0x14000837e
test byte [rbx + 0x220], 2
je 0x14000837e
mov byte [rdi], r14b
jmp 0x140008386
xor esi, esi
mov byte [rdi], 0
mov r14d, esi
lea r8, str.SPKNS_SUPPORT__x_r_n
mov r9d, r14d
mov edx, 0x400
lea rcx, [rbp - 0x60]
call fcn.140001140
test byte [rbx + 0x270], 0x40
mov r13, qword [rsp + 0x4b8]
je 0x1400083b9
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea rcx, [rbx + 0x1e0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test byte [rbx + 0x270], 4
je 0x1400083ee
lea r8, str.Leave_Metering::GetFMFunctionStatus_r_n
mov edx, 0x400
lea rcx, [rbp - 0x60]
call fcn.140001140
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov al, 1
mov rsi, qword [rsp + 0x4c0]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14000c610
add rsp, 0x4c8
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret