Function at 0x140006cd0
Capabilities:
Print debug messages
Set registry value

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x388]
sub rsp, 0x480
mov rax, qword [0x14004e038]
xor rax, rsp
mov qword [rbp + 0x350], rax
test byte [rcx + 0x270], 4
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rsi, rcx
mov qword [r11 + 0x20], rdi
mov rdi, qword [rcx + 0x238]
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
je 0x140006d3b
lea r8, str.Enter_Metering::SetDefaultFunction_r_n
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.140001140
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor r15d, r15d
mov r14d, r15d
cmp dword [rsi + 0x248], r15d
jbe 0x140006edf
mov qword [rsp + 0x478], r12
lea r12, [0x140050f70]
mov qword [rsp + 0x470], r13
lea r13, [0x140050d70]
nop dword [rax]
test rdi, rdi
je 0x140006eb8
mov rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], r15w
jne 0x140006d80
test rax, rax
je 0x140006e7c
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140006e7c
mov eax, dword [rdi + 0x108]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x48], eax
mov rdx, r12
mov rcx, rsi
call fcn.140008450
test al, al
je 0x140006e02
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rdi + 0x10c]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x48], eax
mov rdx, r12
mov rcx, rsi
call fcn.140008450
test al, al
je 0x140006e5c
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test dword [rsi + 0x21c], 0x800
je 0x140006e7c
mov r9b, 1
mov r8d, 0xb
mov rdx, r12
mov rcx, rsi
call fcn.1400070e0
mov rax, 0xffffffffffffffff
inc rax
cmp word [r13 + rax*2], r15w
jne 0x140006e83
test rax, rax
je 0x140006eb8
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140006eb8
mov r9b, 1
mov r8d, 2
mov rdx, r13
mov rcx, rsi
call fcn.1400070e0
add rdi, 0x118
inc r14d
cmp r14d, dword [rsi + 0x248]
jb 0x140006d70
mov r13, qword [rsp + 0x470]
mov r12, qword [rsp + 0x478]
mov rbx, qword [rsi + 0x240]
cmp dword [rsi + 0x24c], r15d
jbe 0x140007067
lea r14, [0x140050e70]
nop word [rax + rax]
test rbx, rbx
je 0x140007050
mov rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], 0
jne 0x140006f10
test rax, rax
je 0x140007050
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140007050
mov eax, dword [rbx + 0x108]
lea r8, [rsp + 0x38]
mov r9d, 1
mov dword [rsp + 0x48], eax
mov rdx, rbx
mov rcx, rsi
call fcn.140008450
test al, al
je 0x140006f96
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbx + 0x10c]
lea r8, [rsp + 0x30]
mov r9d, 1
mov dword [rsp + 0x48], eax
mov rdx, rbx
mov rcx, rsi
call fcn.140008450
test al, al
je 0x140006ff3
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbx + 0x10c]
lea r8, [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x48], eax
mov rdx, rbx
mov rcx, rsi
call fcn.140008450
test al, al
je 0x140007050
mov rdi, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rbx, 0x118
inc r15d
cmp r15d, dword [rsi + 0x24c]
jb 0x140006f00
test byte [rsi + 0x270], 4
mov rsi, qword [rsp + 0x4a0]
mov r15, qword [rsp + 0x460]
mov r14, qword [rsp + 0x468]
mov rdi, qword [rsp + 0x4a8]
mov rbx, qword [rsp + 0x498]
je 0x1400070b9
lea r8, str.Leave_Metering::SetDefaultFunction_r_n
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.140001140
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov al, 1
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14000c610
add rsp, 0x480
pop rbp
ret