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

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x798]
sub rsp, 0x890
mov rax, qword [0x14004e038]
xor rax, rsp
mov qword [rbp + 0x770], rax
test byte [rcx + 0x270], 4
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x10], rdi
mov rdi, rcx
mov qword [r11 - 0x18], r14
je 0x1400061d8
lea rcx, str.Enter_Metering::CheckNLD_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor r14d, r14d
lea rsi, [rdi + 0x40]
xor ecx, ecx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x38]
xor edx, edx
lea r9, [0x14004eba8]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 0x17]
lea rcx, [0x14004eb98]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jne 0x14000628f
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x48]
mov edx, 1
mov r8d, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x14000628f
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x14000628f
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
xor eax, eax
lea rdx, [0x140042450]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x14000628f
test rsi, rsi
je 0x14000628f
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
mov qword [rsp + 0x8a8], rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
xor r9d, r9d
mov dword [rsp + 0x40], 4
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call fcn.140008450
test al, al
je 0x1400065db
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_3
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x1400065d5
mov ebx, dword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp ebx, 1
jne 0x1400065fd
xor edx, edx
mov dword [rsp + 0x48], 4
mov r8d, 0x400
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x70]
call fcn.140011520
test byte [rdi + 0x270], 4
je 0x140006341
lea rcx, str.Enter_Metering::GetNLTValue_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea r8, str.SOFTWAREFortemediaNoiseLevelDetection
mov edx, 0x200
lea rcx, [rbp + 0x370]
call fcn.140017e40
lea rax, [rsp + 0x38]
mov r9d, 0x2001b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x370]
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400063e2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.855C3FD1_5B64_450B_831A_9FCBB5F78D6B_1
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400063ca
mov rcx, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov bl, 1
jmp 0x140006415
test byte [rdi + 0x270], 1
je 0x140006415
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.Metering::GetNLTValue___Reg_Query_ValueEx_fail_lasterr__x_r_n
jmp 0x1400063f8
test byte [rdi + 0x270], 1
je 0x140006415
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r8, str.Metering::GetNLTValue___Reg_Open_KeyEx_fail_lasterr__x_r_n
mov r9d, eax
lea rcx, [rsp + 0x70]
mov edx, 0x400
call fcn.140001140
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
test byte [rdi + 0x270], 4
je 0x14000643f
lea r8, str.Leave_Metering::GetNLTValue_r_n
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.140001140
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov rcx, rdi
cmp bl, 1
jne 0x1400065c2
mov r9d, r14d
lea r8, str.CheckNLD:_GetNLTValue_is__x_n
mov edx, 8
call fcn.140006650
lea eax, [r14 - 1]
cmp eax, 2
ja 0x140006496
lea r9, [rsp + 0x30]
mov r8d, 5
mov rdx, rsi
mov rcx, rdi
call fcn.140007bc0
cmp byte [rsp + 0x30], bl
jne 0x140006496
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 + 5]
call fcn.1400070e0
sub r14d, 1
je 0x140006575
sub r14d, 1
je 0x140006510
cmp r14d, 1
jne 0x1400065fd
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call fcn.140007bc0
cmp byte [rsp + 0x30], 0
jne 0x1400064dc
movzx r9d, r14b
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call fcn.1400070e0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140007bc0
cmp byte [rsp + 0x30], 0
jne 0x1400065fd
mov r9b, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1400070e0
jmp 0x1400065fd
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140007bc0
cmp byte [rsp + 0x30], 1
jne 0x14000653b
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1400070e0
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.140007bc0
cmp byte [rsp + 0x30], 0
jne 0x1400065fd
mov r9b, 1
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1400070e0
jmp 0x1400065fd
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140007bc0
cmp byte [rsp + 0x30], 1
jne 0x1400065a0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1400070e0
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.140007bc0
cmp byte [rsp + 0x30], 1
jne 0x1400065fd
xor r9d, r9d
jmp 0x14000655f
lea r8, str.CheckNLD:_Get_NLT_Reg_Value_is_fail_n
mov edx, 1
call fcn.140006650
jmp 0x1400065fd
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea r8, str.CheckNLD:_Get_NLD_Reg_Value_is_fail__recovery_to_0_n
mov edx, 1
mov rcx, rdi
call fcn.140006650
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140006050
test byte [rdi + 0x270], 4
mov rdi, qword [rsp + 0x888]
mov r14, qword [rsp + 0x880]
mov rsi, qword [rsp + 0x8b0]
mov rbx, qword [rsp + 0x8a8]
je 0x140006633
lea rcx, str.Leave_Metering::CheckNLD_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor al, al
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.14000c610
add rsp, 0x890
pop rbp
ret