Function at 0x18005b068
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x358]
sub rsp, 0x420
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r12, rdx
mov rbx, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rbp - 0x68], r13d
call fcn.18003e228
lea esi, [r13 + 7]
lea r14, str.WmiBrightnessControl.cpp
lea r15, str.EventSink::SetBrightness
cmp dword [rax + 0x20], 5
jl 0x18005b1b8
lea rax, [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x2d0]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x248], rsi
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
mov rcx, r14
call fcn.1800d9868
mov r8, rax
mov rdx, r14
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
mov qword [rbp + 0x2e8], rsi
mov qword [rbp + 0x2e0], r13
mov word [rbp + 0x2d0], r13w
mov rcx, r15
call fcn.1800d9868
mov r8, rax
mov rdx, r15
lea rcx, [rbp + 0x2d0]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x298], rax
lea rax, str.ACELOG:_Enter
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x58], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____14____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x70], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xba
lea r9, [rbp + 0x2d0]
lea r8, [rbp - 0x78]
lea edx, [rsi - 2]
call fcn.180019ae4
cmp byte [rbx + 0xd], r13b
jne 0x18005b2c7
call fcn.180059370
mov byte [rbx + 0xd], al
cmp al, r13b
jne 0x18005b2c7
call fcn.18003e228
cmp dword [rax + 0x20], 5
jl 0x18005ca45
lea rax, [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x2d0]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x248], rsi
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
mov rcx, r14
call fcn.1800d9868
mov r8, rax
mov rdx, r14
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
mov qword [rbp + 0x2e8], rsi
mov qword [rbp + 0x2e0], r13
mov word [rbp + 0x2d0], r13w
mov rcx, r15
call fcn.1800d9868
mov r8, rax
mov rdx, r15
lea rcx, [rbp + 0x2d0]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x298], rax
lea rax, str.ACELOG:_Not_a_DDS_system
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x58], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____25____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x70], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xc5
mov edx, 5
lea r8, [rbp - 0x78]
lea r9, [rbp + 0x2d0]
call fcn.180019ae4
jmp 0x18005ca45
call fcn.180061d7c
mov dword [rbp - 0x60], eax
test eax, eax
jne 0x18005b3bb
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18005ca45
lea rax, [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x2d0]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x248], rsi
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
mov rcx, r14
call fcn.1800d9868
mov r8, rax
mov rdx, r14
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
mov qword [rbp + 0x2e8], rsi
mov qword [rbp + 0x2e0], r13
mov word [rbp + 0x2d0], r13w
mov rcx, r15
call fcn.1800d9868
mov r8, rax
mov rdx, r15
lea rcx, [rbp + 0x2d0]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x298], rax
lea rax, str.ACELOG:_Not_handling_brightness_change_due_to_bad_PWM_cycle_length
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x58], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____67____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x70], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xcd
mov edx, 3
jmp 0x18005b2b2
mov r15d, dword [0x1801fad20]
imul r14d, dword [r12], 0x64
mov sil, r13b
mov byte [rbp + 0x230], r13b
lea rcx, [rbp + 0x2b0]
call fcn.18006cc10
nop
mov dword [rsp + 0x28], r13d
mov byte [rsp + 0x20], 1
mov r9d, 0xf003f
mov r8, rax
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x230]
call fcn.180013b2c
test eax, eax
sete bl
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2b0]
call fcn.18001ea24
test bl, bl
je 0x18005b519
mov dword [rsp + 0x6c], r13d
mov dword [rsp + 0x54], r13d
lea rcx, [rbp + 0x270]
call fcn.18006cb80
nop
mov ebx, 4
mov edi, ebx
mov dword [rbp - 0x68], ebx
mov dword [rbp - 0x78], ebx
cmp qword [rax + 0x18], 8
jb 0x18005b450
mov rax, qword [rax]
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005b4da
cmp dword [rsp + 0x58], ebx
jne 0x18005b4da
lea rcx, [rbp + 0x2b0]
call fcn.18006cb38
mov edi, recv
mov dword [rsp + 0x58], ebx
cmp qword [rax + 0x18], 8
jb 0x18005b4a4
mov rax, qword [rax]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x78]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005b4da
cmp dword [rbp - 0x78], ebx
mov bl, 1
je 0x18005b4dd
mov bl, r13b
test dil, 8
je 0x18005b4f8
and edi, 0xfffffff7
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2b0]
call fcn.18001ea24
nop
and edi, 0xfffffffb
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x270]
call fcn.18001ea24
test bl, bl
je 0x18005b519
cmp dword [rsp + 0x54], r13d
setne sil
cmp byte [rbp + 0x230], r13b
je 0x18005b52f
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x1801fa45f], r13b
je 0x18005c420
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rbp + 0x60]
call fcn.1800cf2b0
mov dword [rbp + 0x60], 0x10030
mov dword [rbp + 0x68], 0xc8
neg sil
sbb esi, esi
and esi, 0x27100
add esi, 0x13880
mov byte [rbp + 0x230], r13b
lea rcx, [rbp + 0x270]
call fcn.18006cc10
nop
mov dword [rsp + 0x28], r13d
mov byte [rsp + 0x20], 1
mov r9d, 0xf003f
mov r8, rax
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x230]
call fcn.180013b2c
test eax, eax
sete bl
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x270]
call fcn.18001ea24
mov r14d, 0x3bc6
test bl, bl
je 0x18005b63a
mov dword [rsp + 0x54], r13d
lea rcx, [rbp + 0x270]
call fcn.18006cbc8
mov dword [rsp + 0x58], 4
cmp qword [rax + 0x18], 8
jb 0x18005b5e7
mov rax, qword [rax]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x6c]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x18005b622
cmp dword [rsp + 0x6c], 4
cmovne ebx, r14d
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x270]
call fcn.18001ea24
test ebx, ebx
cmove esi, dword [rsp + 0x54]
cmp byte [rbp + 0x230], r13b
je 0x18005b650
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x6c], esi
call fcn.180059728
mov r15d, eax
movsd xmm0, qword [0x180167508]
movsd qword [rbp - 0x78], xmm0
xorps xmm7, xmm7
movsd qword [rbp - 0x60], xmm7
mov r14d, 0x64
mov byte [rbp + 0x2d0], r13b
lea esi, [r14 - 0x5d]
mov qword [rbp + 0x2c8], rsi
mov qword [rbp + 0x2c0], r13
mov word [rbp + 0x2b0], r13w
mov qword [rbp + 0x2a8], rsi
mov qword [rbp + 0x2a0], r13
mov word [rbp + 0x290], r13w
lea rcx, str.limitMaxPanelBrightnessPercent
call fcn.1800d9868
mov r8, rax
lea rdx, str.limitMaxPanelBrightnessPercent
lea rcx, [rbp + 0x290]
call fcn.18001eca0
nop
mov qword [rbp + 0x268], rsi
mov qword [rbp + 0x260], r13
mov word [rbp + 0x250], r13w
lea rcx, [0x180161478]
call fcn.1800d9868
mov r8, rax
lea rdx, [0x180161478]
lea rcx, [rbp + 0x250]
call fcn.18001eca0
nop
mov qword [rbp + 0x248], rsi
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
lea rcx, str.SYSTEMCurrentControlSetServices_nvlddmkmGlobalNvHybridPersistence
call fcn.1800d9868
mov r8, rax
lea rdx, str.SYSTEMCurrentControlSetServices_nvlddmkmGlobalNvHybridPersistence
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x250]
lea r8, [rbp + 0x230]
lea rcx, [rbp + 0x2d0]
call fcn.18005a6c8
mov ebx, eax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x230]
call fcn.18001ea24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x250]
call fcn.18001ea24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x290]
call fcn.18001ea24
call fcn.18003e228
cmp dword [rax + 0x20], 5
jl 0x18005b8b5
lea rax, [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x248], rsi
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
mov qword [rbp + 0x268], rsi
mov qword [rbp + 0x260], r13
mov word [rbp + 0x250], r13w
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x250]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x298], rax
lea rax, str.RegQuery_PersistenceACE:
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], ebx
lea rax, [rbp - 0x50]
mov qword [rbp - 0x38], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_unsigned_long_int__class_Nvidia::Logging::Chain_char_const_____27____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x80], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf8
lea r9, [rbp + 0x250]
lea r8, [rsp + 0x78]
lea edx, [rsi - 2]
call fcn.180019ae4
mov esi, 6
test ebx, ebx
jne 0x18005ba96
mov dword [rsp + 0x54], r13d
mov qword [rbp + 0x248], 7
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
lea rcx, str.limitMaxPanelBrightnessPercent
call fcn.1800d9868
mov r8, rax
lea rdx, str.limitMaxPanelBrightnessPercent
lea rcx, [rbp + 0x230]
call fcn.18001eca0
mov dword [rsp + 0x58], 4
lea rdx, [rbp + 0x230]
cmp qword [rbp + 0x248], 8
cmovae rdx, qword [rbp + 0x230]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
mov rcx, qword [rbp + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x18005b95e
cmp dword [rsp + 0x6c], 4
mov eax, 0x3bc6
cmovne ebx, eax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x230]
call fcn.18001ea24
test ebx, ebx
jne 0x18005ba96
call fcn.18003e228
cmp dword [rax + 0x20], esi
jl 0x18005ba88
lea rax, [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x70], rax
mov ebx, 7
mov qword [rbp + 0x248], rbx
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
mov qword [rbp + 0x268], rbx
mov qword [rbp + 0x260], r13
mov word [rbp + 0x250], r13w
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x250]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x298], rax
lea rax, str.limitMaxPanelBrightnessPercent:
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x80], rax
mov eax, dword [rsp + 0x54]
mov dword [rbp - 0x40], eax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_unsigned_long_int__class_Nvidia::Logging::Chain_char_const_____33____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x101
lea r9, [rbp + 0x250]
lea r8, [rbp - 0x50]
mov edx, esi
call fcn.180019ae4
mov ecx, dword [rsp + 0x54]
lea eax, [rcx - 1]
cmp eax, 0x63
cmovbe r14d, ecx
mov byte [rbp + 0x230], r13b
mov qword [rbp + 0x268], 7
mov qword [rbp + 0x260], r13
mov word [rbp + 0x250], r13w
lea rcx, str.SYSTEMCurrentControlSetServices_nvlddmkmGlobalNvHybridPersistenceACE
call fcn.1800d9868
mov r8, rax
lea rdx, str.SYSTEMCurrentControlSetServices_nvlddmkmGlobalNvHybridPersistenceACE
lea rcx, [rbp + 0x250]
call fcn.18001eca0
nop
mov dword [rsp + 0x28], r13d
mov byte [rsp + 0x20], r13b
mov r9d, 0x20019
lea r8, [rbp + 0x250]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x230]
call fcn.180013b2c
test eax, eax
sete bl
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x250]
call fcn.18001ea24
test bl, bl
je 0x18005bc2f
movsd qword [rsp + 0x70], xmm7
movsd qword [rsp + 0x60], xmm7
lea rcx, [rbp + 0x250]
call fcn.18006cd74
nop
or edi, 1
mov dword [rbp - 0x68], edi
mov dword [rsp + 0x54], 8
cmp qword [rax + 0x18], 8
jb 0x18005bb53
mov rax, qword [rax]
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [rsp + 0x54]
test eax, eax
jne 0x18005bbe4
cmp dword [rsp + 0x58], 3
jne 0x18005bbe4
lea rcx, [rbp + 0x270]
call fcn.18006cdbc
or edi, 2
mov dword [rsp + 0x58], ebx
cmp qword [rax + 0x18], 8
jb 0x18005bbab
mov rax, qword [rax]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x6c]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005bbe4
cmp dword [rsp + 0x6c], 3
mov bl, 1
je 0x18005bbe7
mov bl, r13b
test dil, 2
je 0x18005bbff
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x270]
call fcn.18001ea24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x250]
call fcn.18001ea24
test bl, bl
je 0x18005bc2f
movsd xmm0, qword [rsp + 0x70]
movsd qword [rbp - 0x78], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rbp - 0x60], xmm1
jmp 0x18005bf01
mov dword [rbp + 0x90], 0x101a0
xor edx, edx
mov r8d, 0x19c
lea rcx, [rbp + 0x94]
call fcn.1800cf2b0
mov dword [rsp + 0x78], r15d
lea rax, [rbp + 0x90]
mov qword [rbp - 0x80], rax
lea rax, [0x1800a5360]
mov qword [rbp + 0x250], rax
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbp + 0x258], xmm1
movups xmm0, xmmword [rbp + 0x250]
movaps xmmword [rbp + 0x250], xmm0
unpckhpd xmm1, xmm1
movsd qword [rbp + 0x260], xmm1
mov qword [rsp + 0x60], 0x895440
lea rdx, [rbp + 0x250]
lea rcx, [rsp + 0x60]
call fcn.18006501c
test eax, eax
jne 0x18005bf01
call fcn.18003e228
mov edi, 7
cmp dword [rax + 0x20], esi
jl 0x18005bde0
lea rax, [rbp + 0x250]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x268], rdi
mov qword [rbp + 0x260], r13
mov word [rbp + 0x250], r13w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x250]
call fcn.18001eca0
nop
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x48], r13
mov word [rbp + 0x38], r13w
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x38]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x298], rax
lea rax, str.brCalib.minLuminance:
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x80], rax
movss xmm0, dword [rbp + 0x94]
movss dword [rbp - 0x40], xmm0
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
lea rax, str._brCalib.maxLuminance:
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
movss xmm0, dword [rbp + 0x98]
movss dword [rbp - 0x30], xmm0
lea rax, [rbp - 0x50]
mov qword [rbp - 0x28], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x11d
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x20]
mov edx, esi
call fcn.180019ae4
movss xmm0, dword [rbp + 0x94]
cvtps2pd xmm0, xmm0
movsd qword [rbp - 0x78], xmm0
mov eax, r14d
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
mulss xmm1, dword [rbp + 0x98]
cvtps2pd xmm0, xmm1
divsd xmm0, qword [0x180167510]
movsd qword [rbp - 0x60], xmm0
mov qword [rbp + 0x268], rdi
mov qword [rbp + 0x260], r13
mov word [rbp + 0x250], r13w
lea rcx, str.SYSTEMCurrentControlSetServices_nvlddmkmGlobalNvHybridPersistenceACE
call fcn.1800d9868
mov r8, rax
lea rdx, str.SYSTEMCurrentControlSetServices_nvlddmkmGlobalNvHybridPersistenceACE
lea rcx, [rbp + 0x250]
call fcn.18001eca0
nop
mov dword [rsp + 0x28], r13d
mov byte [rsp + 0x20], r13b
mov r9d, 0x20006
lea r8, [rbp + 0x250]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x230]
call fcn.180013b2c
test eax, eax
sete bl
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x250]
call fcn.18001ea24
test bl, bl
je 0x18005bf06
lea rcx, [rbp + 0x270]
call fcn.18006cd74
nop
mov ebx, 8
mov r9d, ebx
lea r8, [rbp - 0x78]
mov rdx, rax
lea rcx, [rbp + 0x238]
call fcn.18005ab40
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x270]
call fcn.18001ea24
lea rcx, [rbp + 0x270]
call fcn.18006cdbc
nop
mov r9d, ebx
lea r8, [rbp - 0x60]
mov rdx, rax
lea rcx, [rbp + 0x238]
call fcn.18005ab40
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x270]
call fcn.18001ea24
jmp 0x18005bf06
mov edi, 7
cmp byte [rbp + 0x230], r13b
je 0x18005bf1c
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd xmm6, qword [0x180167500]
lea rbx, str._to:
comisd xmm6, xmmword [rbp - 0x78]
jbe 0x18005c06b
call fcn.18003e228
cmp dword [rax + 0x20], esi
jl 0x18005c066
lea rax, [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x248], rdi
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
mov qword [rbp + 0x268], rdi
mov qword [rbp + 0x260], r13
mov word [rbp + 0x250], r13w
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x250]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x298], rax
lea rax, str.round_up_minNits:
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x18], rax
movsd xmm0, qword [rbp - 0x78]
movsd qword [rbp - 0x30], xmm0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x80], rax
movss xmm0, dword [0x1801674f8]
movss dword [rbp - 0x40], xmm0
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x137
lea r9, [rbp + 0x250]
lea r8, [rbp - 0x50]
mov edx, esi
call fcn.180019ae4
movsd qword [rbp - 0x78], xmm6
movsd xmm6, qword [0x180167520]
movsd xmm0, qword [rbp - 0x60]
ucomisd xmm0, xmm7
jp 0x18005c080
je 0x18005c08f
movsd xmm0, qword [rbp - 0x60]
comisd xmm0, xmm6
jbe 0x18005c1c4
call fcn.18003e228
cmp dword [rax + 0x20], esi
jl 0x18005c1bf
lea rax, [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x248], rdi
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
mov qword [rbp + 0x268], rdi
mov qword [rbp + 0x260], r13
mov word [rbp + 0x250], r13w
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x250]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x298], rax
lea rax, str.round_maxNits:
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x290]
mov qword [rbp - 0x18], rax
movsd xmm0, qword [rbp - 0x60]
movsd qword [rbp - 0x30], xmm0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x80], rax
movss xmm0, dword [0x180167544]
movss dword [rbp - 0x40], xmm0
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x13d
lea r9, [rbp + 0x250]
lea r8, [rbp - 0x50]
mov edx, esi
call fcn.180019ae4
movsd qword [rbp - 0x60], xmm6
mov al, byte [r12]
mov byte [rsp + 0x50], al
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x50]
call fcn.180061f6c
mov dword [rbp + 0x64], eax
call fcn.18003e228
cmp dword [rax + 0x20], 5
jl 0x18005c386
lea rax, [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x270]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x248], rdi
mov qword [rbp + 0x240], r13
mov word [rbp + 0x230], r13w
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x230]
call fcn.18001eca0
nop
mov qword [rbp + 0x288], rdi
mov qword [rbp + 0x280], r13
mov word [rbp + 0x270], r13w
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x270]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x258], rax
lea rax, str._brightnessMillinits:
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x250]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x64]
mov dword [rbp - 0x30], eax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
lea rax, str._brightnessPercent:
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x80], rax
mov eax, dword [r12]
mov dword [rbp - 0x40], eax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
lea rax, str._sdrWhiteLevelMillinits:
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
mov eax, dword [rbp + 0x6c]
mov dword [rbp - 8], eax
lea rax, [rbp - 0x50]
mov qword [rbp], rax
lea rax, str._minNits:
mov qword [rbp + 8], rax
lea rax, [rbp - 8]
mov qword [rbp + 0x10], rax
movsd xmm0, qword [rbp - 0x78]
movsd qword [rbp + 0x18], xmm0
lea rax, [rbp + 8]
mov qword [rbp + 0x20], rax
lea rax, str._maxNits:
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x18]
mov qword [rbp + 0x30], rax
movsd xmm0, qword [rbp - 0x60]
movsd qword [rbp + 0x38], xmm0
lea rax, [rbp + 0x28]
mov qword [rbp + 0x40], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp + 0x290], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x298], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x144
lea r9, [rbp + 0x270]
lea r8, [rbp + 0x290]
mov edx, 5
call fcn.180019ae4
cmp dword [rbp + 0x64], r13d
je 0x18005c3ef
mov dword [rbp + 0x290], r15d
lea rax, [rbp + 0x60]
mov qword [rbp + 0x298], rax
lea rax, [0x1800a5420]
mov qword [rbp + 0x230], rax
movups xmm1, xmmword [rbp + 0x290]
movups xmmword [rbp + 0x238], xmm1
movups xmm0, xmmword [rbp + 0x230]
movaps xmmword [rbp + 0x230], xmm0
unpckhpd xmm1, xmm1
movsd qword [rbp + 0x240], xmm1
mov qword [rsp + 0x60], 0x895440
lea rdx, [rbp + 0x230]
lea rcx, [rsp + 0x60]
call fcn.180065388
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2b0]
call fcn.18001ea24
nop
cmp byte [rbp + 0x2d0], r13b
je 0x18005ca45
mov rcx, qword [rbp + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18005ca45
mov edi, r13d
mov dword [rbp - 0x68], r13d
lea rdx, [rbp - 0x68]
xor ecx, ecx
call fcn.18005d604
mov r13d, 0x51eb851f
mov eax, r13d
cmp r14d, r15d
jae 0x18005c448
mov ecx, r15d
sub ecx, r14d
jmp 0x18005c44e
mov ecx, r14d
sub ecx, r15d
mul ecx
mov ebx, edx
shr ebx, 5
mov esi, r15d
xor ecx, ecx
mov r12d, ecx
test ebx, ebx
je 0x18005c892
mov r13d, dword [rbp - 0x60]
call fcn.18003e228
xor edx, edx
cmp dword [rax + 0x20], 5
jl 0x18005c5a5
lea rax, [rbp + 0x270]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x288], 7
mov qword [rbp + 0x280], rdx
mov word [rbp + 0x270], dx
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x270]
call fcn.18001eca0
nop
mov qword [rbp + 0x2c8], 7
xor eax, eax
mov qword [rbp + 0x2c0], rax
mov word [rbp + 0x2b0], ax
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x2b0]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x258], rax
lea rax, str.ACELOG:_difference:
mov qword [rbp + 0x290], rax
lea rax, [rbp + 0x250]
mov qword [rbp + 0x298], rax
mov dword [rbp + 0x38], ebx
lea rax, [rbp + 0x290]
mov qword [rbp + 0x40], rax
lea rax, str.power:
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x18], r12d
lea rax, [rbp + 0x28]
mov qword [rbp + 0x20], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp + 8], rax
lea rax, [rbp + 0x18]
mov qword [rbp + 0x10], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x270]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x157
lea r9, [rbp + 0x2b0]
lea r8, [rbp + 8]
mov edx, 5
call fcn.180019ae4
test bl, 1
je 0x18005c881
mov eax, r12d
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
movsd xmm0, qword [0x180167500]
call fcn.1800e1b40
cvttsd2si eax, xmm0
imul edi, eax, 0x64
mov eax, edi
neg eax
cmp r14d, r15d
cmovb edi, eax
add esi, edi
call fcn.18003e228
xor edx, edx
cmp dword [rax + 0x20], 5
jl 0x18005c70e
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x270]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x2c8], 7
mov qword [rbp + 0x2c0], rdx
mov word [rbp + 0x2b0], dx
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x2b0]
call fcn.18001eca0
nop
mov qword [rbp + 0x288], 7
xor eax, eax
mov qword [rbp + 0x280], rax
mov word [rbp + 0x270], ax
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x270]
call fcn.18001eca0
nop
lea rax, [rbp - 0x10]
mov qword [rbp + 0x2d8], rax
lea rax, str.ACELOG:_stepSize:
mov qword [rbp - 8], rax
lea rax, [rbp + 0x2d0]
mov qword [rbp], rax
mov dword [rbp - 0x20], edi
lea rax, [rbp - 8]
mov qword [rbp - 0x18], rax
lea rax, str.next_step_brightness:
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
mov dword [rsp + 0x78], esi
lea rax, [rbp - 0x30]
mov qword [rbp - 0x80], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x15d
lea r9, [rbp + 0x270]
lea r8, [rbp - 0x40]
mov edx, 5
call fcn.180019ae4
xor edx, edx
mov dword [rsp + 0x54], edx
lea rdx, [rsp + 0x54]
mov ecx, esi
call fcn.180061c54
test al, al
je 0x18005c87d
mov ecx, dword [rsp + 0x54]
imul ecx, r13d
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
mov eax, edx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
call fcn.1800e1acc
cvttsd2si rdi, xmm0
mov dword [rsp + 0x54], edi
call fcn.18003e228
xor edx, edx
cmp dword [rax + 0x20], 5
jl 0x18005c864
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x270]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x2c8], 7
mov qword [rbp + 0x2c0], rdx
mov word [rbp + 0x2b0], dx
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x2b0]
call fcn.18001eca0
nop
mov qword [rbp + 0x288], 7
xor eax, eax
mov qword [rbp + 0x280], rax
mov word [rbp + 0x270], ax
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x270]
call fcn.18001eca0
nop
lea rax, [rsp + 0x68]
mov qword [rbp + 0x238], rax
lea rax, str.ACELOG:_Interpolated_dGPU_brightness:
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x230]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x60], edi
lea rax, [rbp - 0x50]
mov qword [rbp - 0x58], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_unsigned_long_int__class_Nvidia::Logging::Chain_char_const_____39____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x70], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x162
lea r9, [rbp + 0x270]
lea r8, [rbp - 0x78]
mov edx, 5
call fcn.180019ae4
lea rdx, [rsp + 0x54]
mov edi, 1
mov ecx, edi
call fcn.18005d604
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [rsp + 0x54]
inc r12d
sar ebx, 1
jne 0x18005c469
mov r13d, 0x51eb851f
call fcn.18003e228
mov esi, 6
cmp dword [rax + 0x20], esi
jl 0x18005ca3e
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x270]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x2c8], 7
xor ebx, ebx
mov qword [rbp + 0x2c0], rbx
mov word [rbp + 0x2b0], bx
lea rcx, str.WmiBrightnessControl.cpp
call fcn.1800d9868
mov r8, rax
lea rdx, str.WmiBrightnessControl.cpp
lea rcx, [rbp + 0x2b0]
call fcn.18001eca0
nop
mov qword [rbp + 0x288], 7
mov qword [rbp + 0x280], rbx
mov word [rbp + 0x270], bx
lea rcx, str.EventSink::SetBrightness
call fcn.1800d9868
mov r8, rax
lea rdx, str.EventSink::SetBrightness
lea rcx, [rbp + 0x270]
call fcn.18001eca0
nop
lea rax, [rsp + 0x68]
mov qword [rbp + 0x238], rax
lea rax, str.ACELOG:_PrevOsBright_
mov qword [rbp + 0x290], rax
lea rax, [rbp + 0x230]
mov qword [rbp + 0x298], rax
mov eax, r13d
mul r15d
shr edx, 5
mov dword [rbp + 0x38], edx
lea rax, [rbp + 0x290]
mov qword [rbp + 0x40], rax
lea rax, str.OsBrightnessTgt_
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x30], rax
mov eax, r13d
mul r14d
shr edx, 5
mov dword [rbp + 0x18], edx
lea rax, [rbp + 0x28]
mov qword [rbp + 0x20], rax
lea rax, str.CurrentPwm:
mov qword [rbp + 8], rax
lea rax, [rbp + 0x18]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp - 0x68]
mov dword [rbp - 8], eax
lea rax, [rbp + 8]
mov qword [rbp], rax
lea rax, str.NewPwm:
mov qword [rbp - 0x20], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x30], edi
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
lea rax, str.NumSteps:
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x40], r12d
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x16d
lea r9, [rbp + 0x270]
lea r8, [rbp - 0x50]
mov edx, esi
call fcn.180019ae4
mov dword [0x1801fad20], r14d
xor eax, eax
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret