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

Disassembly:
mov r11, rsp
sub rsp, 0x888
mov rax, qword [0x14007d038]
xor rax, rsp
mov qword [rsp + 0x860], rax
test byte [rcx + 0x298], 4
mov qword [r11 + 0x10], rbx
mov rbx, qword [rcx + 0x3b0]
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x10], rdi
mov rdi, rcx
mov qword [r11 - 0x18], r14
je 0x140017a10
lea r8, str.Enter_Metering::SetDefaultFunction_r_n
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.140002050
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebp, ebp
mov r14d, ebp
cmp dword [rdi + 0x3c0], ebp
jbe 0x140017bcc
mov qword [rsp + 0x880], rsi
nop dword [rax]
test rbx, rbx
je 0x140017bad
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140017a40
test rax, rax
je 0x140017bad
cmp byte [rdi + 0x2a0], bpl
je 0x140017a7c
lea rdx, [0x140080440]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140017a7c
cmp dword [rdi + 0x280], ebp
jne 0x140017bad
mov r8d, dword [rbx + 0x108]
xor r9d, r9d
mov rdx, rbx
mov rcx, rdi
call fcn.14001a5b0
mov r8d, dword [rbx + 0x10c]
xor r9d, r9d
mov rdx, rbx
mov rcx, rdi
call fcn.14001ab50
mov eax, dword [rbx + 0x120]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x58], eax
call fcn.140015180
xor r9d, r9d
mov rdx, rbx
mov rcx, rdi
test eax, eax
je 0x140017afa
movups xmm0, xmmword [0x140068080]
mov r8d, dword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x384
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x20], rax
call fcn.1400152c0
jmp 0x140017b75
lea r8, [rsp + 0x50]
call fcn.140019b30
test al, al
je 0x140017b75
xor edx, edx
lea rcx, [rsp + 0x460]
mov r8d, 0x400
call fcn.140028230
mov r9d, 0x384
lea r8, str.2b24be42_a892_11dc_8314_0800200c9a66__d
lea rcx, [rsp + 0x460]
lea edx, [r9 + 0x7c]
call fcn.140002050
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x460]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [0x140068080]
mov eax, dword [rbx + 0x12c]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov r9d, 0x385
mov dword [rsp + 0x28], ebp
mov rdx, rbx
mov rcx, rdi
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x20], eax
call fcn.14001a200
add rbx, 0x130
inc r14d
cmp r14d, dword [rdi + 0x3c0]
jb 0x140017a30
mov rsi, qword [rsp + 0x880]
mov rbx, qword [rdi + 0x3b8]
mov r14, qword [rsp + 0x870]
cmp dword [rdi + 0x3c4], ebp
jbe 0x140017ca2
test rbx, rbx
je 0x140017c8d
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140017c00
test rax, rax
je 0x140017c8d
mov r8d, dword [rbx + 0x108]
mov r9d, 1
mov rdx, rbx
mov rcx, rdi
call fcn.14001a5b0
mov r8d, dword [rbx + 0x10c]
mov r9d, 1
mov rdx, rbx
mov rcx, rdi
call fcn.14001ab50
mov r8d, dword [rbx + 0x10c]
mov rdx, rbx
mov rcx, rdi
call fcn.14001ae30
movups xmm0, xmmword [0x140068080]
mov eax, dword [rbx + 0x12c]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov r9d, 0x385
mov dword [rsp + 0x28], 1
mov rdx, rbx
mov rcx, rdi
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x20], eax
call fcn.14001a200
add rbx, 0x130
inc ebp
cmp ebp, dword [rdi + 0x3c4]
jb 0x140017be7
test byte [rdi + 0x298], 4
mov rdi, qword [rsp + 0x878]
mov rbp, qword [rsp + 0x8a0]
mov rbx, qword [rsp + 0x898]
je 0x140017ce4
lea r8, str.Leave_Metering::SetDefaultFunction_r_n
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.140002050
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, 1
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140024cf0
add rsp, 0x888
ret