Function at 0x140001730
Capabilities:
Accept command line arguments
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3030]
mov eax, 0x3130
call fcn.140005360
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x3020], rax
xor r15d, r15d
lea rdx, str._nNvTrueHDR___RTX_HDR_toggler__v1.1_nby_emoose_n_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
cmp dword [0x140015868], r15d
je 0x1400017d2
lea rdx, str.Error:_failed_to_load_nvapi64.dll__do_you_have_NV_drivers_installed__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
xor eax, eax
mov rcx, qword [rbp + 0x3020]
xor rcx, rsp
call fcn.140004510
lea r11, [rsp + 0x3130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov byte [rsp + 0x61], r15b
xor r13b, r13b
mov byte [rsp + 0x60], r13b
mov dword [rsp + 0x64], 2
mov dword [rbp + 0x2f98], r15d
mov dword [rbp + 0x2fa0], r15d
mov word [rbp + 0x2fa4], 0x500
lea rax, [rbp + 0x2f90]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x2fa0]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001875
lea r8, [rbp + 0x2f98]
mov rdx, qword [rbp + 0x2f90]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140001868
mov dword [rbp + 0x2f98], r15d
mov rcx, qword [rbp + 0x2f90]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
xorps xmm0, xmm0
movups xmmword [rbp + 0x2fa8], xmm0
mov qword [rbp + 0x2fb8], r15
mov qword [rbp + 0x2fc0], 7
mov word [rbp + 0x2fa8], r15w
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rbp + 0x2fec]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rbp + 0x2f90], rax
mov r12d, 1
mov dword [rbp + 0x2f98], r12d
cmp dword [rbp + 0x2fec], r12d
jle 0x140001d8e
mov ecx, r12d
mov qword [rbp + 0x2fa0], rcx
nop word [rax + rax]
mov rdx, qword [rax + rcx*8]
xorps xmm0, xmm0
movups xmmword [rbp + 0x2ff0], xmm0
mov qword [rbp + 0x3000], r15
mov qword [rbp + 0x3008], r15
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140001903
lea rcx, [rbp + 0x2ff0]
call fcn.140003890
nop
lea r8, [rbp + 0x2ff0]
mov r14, qword [rbp + 0x3008]
cmp r14, 7
seta bl
mov rsi, qword [rbp + 0x2ff0]
cmova r8, rsi
mov rdi, qword [rbp + 0x3000]
cmp rdi, 6
jne 0x1400019cd
mov rdx, rdi
lea rax, str.__help
mov rcx, rax
test rdi, rdi
je 0x140001975
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400019cd
add rcx, 2
sub rdx, 1
jne 0x140001961
lea rdx, str.usage:_nvtruehdr____high_____medium_____low_____disable_____hud___appExeName__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
nop
test bl, bl
je 0x1400019c2
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400019ba
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028e3
mov rcx, rsi
call fcn.140004574
mov r12d, 3
jmp 0x140002ec5
lea r8, [rbp + 0x2ff0]
test bl, bl
cmovne r8, rsi
cmp rdi, 5
jne 0x140001a1b
mov rdx, rdi
lea rax, str.__hud
mov rcx, rax
test rdi, rdi
je 0x140001a09
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001a1b
add rcx, 2
sub rdx, 1
jne 0x1400019f5
mov byte [rsp + 0x61], 1
mov r13b, 1
mov byte [rsp + 0x60], 0
jmp 0x140001d20
lea r8, [rbp + 0x2ff0]
test bl, bl
cmovne r8, rsi
cmp rdi, 8
jne 0x140001a69
mov rdx, rdi
lea rax, str.__enable
mov rcx, rax
test rdi, rdi
je 0x140001a57
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001a69
add rcx, 2
sub rdx, 1
jne 0x140001a43
mov byte [rsp + 0x61], 0
mov r13b, 1
mov byte [rsp + 0x60], 0
jmp 0x140001d20
lea r8, [rbp + 0x2ff0]
test bl, bl
cmovne r8, rsi
cmp rdi, 6
jne 0x140001ab9
mov rdx, rdi
lea rax, str.__high
mov rcx, rax
test rdi, rdi
je 0x140001af5
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001ab9
add rcx, 2
sub rdx, 1
jne 0x140001a91
mov r13b, 1
mov byte [rsp + 0x60], dl
mov dword [rsp + 0x64], 2
jmp 0x140001d20
lea r8, [rbp + 0x2ff0]
test bl, bl
cmovne r8, rsi
cmp rdi, 0xa
jne 0x140001b0a
mov rdx, rdi
lea rax, str.__veryhigh
mov rcx, rax
test rdi, rdi
je 0x140001af5
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001b0a
add rcx, 2
sub rdx, 1
jne 0x140001ae1
mov r13b, 1
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x64], 2
jmp 0x140001d20
lea r8, [rbp + 0x2ff0]
test bl, bl
cmovne r8, rsi
cmp rdi, 8
jne 0x140001b58
mov rdx, rdi
lea rax, str.__medium
mov rcx, rax
test rdi, rdi
je 0x140001b46
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001b58
add rcx, 2
sub rdx, 1
jne 0x140001b32
mov r13b, 1
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x64], r12d
jmp 0x140001d20
lea r8, [rbp + 0x2ff0]
test bl, bl
cmovne r8, rsi
cmp rdi, 5
jne 0x140001ba6
mov rdx, rdi
lea rax, str.__low
mov rcx, rax
test rdi, rdi
je 0x140001b94
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001ba6
add rcx, 2
sub rdx, 1
jne 0x140001b80
mov r13b, 1
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x64], r15d
jmp 0x140001d20
lea r8, [rbp + 0x2ff0]
test bl, bl
cmovne r8, rsi
cmp rdi, 9
jne 0x140001bf6
mov rdx, rdi
lea rax, str.__disable
mov rcx, rax
test rdi, rdi
je 0x140001be4
sub r8, rax
nop
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001bf6
add rcx, 2
sub rdx, 1
jne 0x140001bd0
mov byte [rsp + 0x61], 0
xor r13b, r13b
mov byte [rsp + 0x60], 1
jmp 0x140001d20
lea r8, [rbp + 0x2ff0]
test bl, bl
cmovne r8, rsi
cmp rdi, 7
jne 0x140001c3b
mov rdx, rdi
lea rcx, str.__admin
mov rax, rcx
test rdi, rdi
je 0x140001d20
sub r8, rcx
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x140001c3b
add rax, 2
sub rdx, 1
jne 0x140001c22
jmp 0x140001d20
mov r14, qword [rbp + 0x2fb8]
test r14, r14
je 0x140001ca6
mov rdx, qword [rbp + 0x2fc0]
mov rax, rdx
sub rax, r14
lea rcx, [rbp + 0x2fa8]
cmp rax, 1
jb 0x140001c8b
lea rax, [r14 + 1]
mov qword [rbp + 0x2fb8], rax
cmp rdx, 7
cmova rcx, qword [rbp + 0x2fa8]
mov eax, dword [0x1400066c8]
mov word [rcx + r14*2], ax
mov word [rcx + r14*2 + 2], r15w
jmp 0x140001c9f
mov qword [rsp + 0x20], r12
lea r9, [0x1400066c8]
mov rdx, r12
call fcn.140003d10
mov r14, qword [rbp + 0x2fb8]
lea r9, [rbp + 0x2ff0]
test bl, bl
cmovne r9, rsi
mov rcx, qword [rbp + 0x2fc0]
mov rax, rcx
sub rax, r14
cmp rdi, rax
ja 0x140001cfe
lea rax, [rdi + r14]
mov qword [rbp + 0x2fb8], rax
lea rbx, [rbp + 0x2fa8]
cmp rcx, 7
cmova rbx, qword [rbp + 0x2fa8]
lea rcx, [rbx + r14*2]
lea r8, [rdi + rdi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + r14]
mov word [rbx + rax*2], r15w
jmp 0x140001d19
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp + 0x2fa8]
call fcn.140003d10
mov rsi, qword [rbp + 0x2ff0]
mov r14, qword [rbp + 0x3008]
cmp r14, 7
jbe 0x140001d5b
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001d53
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028e3
mov rcx, rsi
call fcn.140004574
mov eax, dword [rbp + 0x2f98]
inc eax
mov dword [rbp + 0x2f98], eax
mov rcx, qword [rbp + 0x2fa0]
inc rcx
mov qword [rbp + 0x2fa0], rcx
cmp eax, dword [rbp + 0x2fec]
jge 0x140001d8e
mov rax, qword [rbp + 0x2f90]
jmp 0x1400018e0
mov r8, qword [rbp + 0x2fb8]
test r8, r8
jne 0x140001e41
mov byte [0x140015828], 1
lea rdx, str.usage:_nvtruehdr____high_____medium_____low_____disable_____hud___appExeName__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
lea rdx, [0x1400066cc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
lea rdx, str.Entering_interactive_mode_n_nEnter_app_executable_name_n_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const___ptr64]
movzx r8d, ax
lea rdx, [rbp + 0x2fa8]
mov rcx, rbx
call fcn.140003f50
lea rdx, [0x1400066cc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
mov r8, qword [rbp + 0x2fb8]
test r8, r8
jne 0x140001e41
lea rdx, str.Invalid_exe_name__exiting..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
jmp 0x140002ec5
cmp r8, 1
jbe 0x140001f33
lea rcx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
seta r10b
mov r9, qword [rbp + 0x2fa8]
cmova rcx, r9
cmp word [rcx], 0x22
jne 0x140001f33
lea rcx, [r8 - 1]
lea rax, [rbp + 0x2fa8]
test r10b, r10b
cmovne rax, r9
cmp word [rax + rcx*2], 0x22
jne 0x140001f33
add r8, 0xfffffffffffffffe
xorps xmm0, xmm0
movups xmmword [rbp + 0x2fc8], xmm0
mov qword [rbp + 0x2fd8], r15
mov qword [rbp + 0x2fe0], r15
cmp rcx, r8
cmovb r8, rcx
lea rdx, [rbp + 0x2fa8]
test r10b, r10b
cmovne rdx, r9
add rdx, 2
lea rcx, [rbp + 0x2fc8]
call fcn.140003890
mov rdx, qword [rbp + 0x2fc0]
cmp rdx, 7
jbe 0x140001f17
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2fa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028e3
call fcn.140004574
movups xmm0, xmmword [rbp + 0x2fc8]
movups xmmword [rbp + 0x2fa8], xmm0
movups xmm1, xmmword [rbp + 0x2fd8]
movups xmmword [rbp + 0x2fb8], xmm1
lea rdx, str.Fetching_settings_for_app_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003330
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140004100
mov rcx, rax
lea rdx, str...._n
call fcn.140003330
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3010], xmm0
movups xmmword [rbp + 0x2fc8], xmm0
mov qword [rbp + 0x2fd8], r15
mov qword [rbp + 0x2fe0], r15
mov rsi, qword [rbp + 0x2fb8]
lea r14, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova r14, qword [rbp + 0x2fa8]
movabs rdi, 0x7ffffffffffffffe
cmp rsi, rdi
ja 0x140002f22
movabs rax, 0x7fffffffffffffff
mov ecx, 0xa
mov qword [rbp + 0x2fe0], 7
cmp rsi, 7
ja 0x140002003
mov qword [rbp + 0x2fd8], rsi
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0x2fc8], xmm0
jmp 0x1400020a1
mov rbx, rsi
or rbx, 7
cmp rbx, rdi
jbe 0x140002018
mov rbx, rdi
lea rcx, [rax + rax]
jmp 0x140002038
cmp rbx, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x140002f1c
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000206a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002f1c
mov rcx, rax
call fcn.140004530
mov rcx, rax
test rax, rax
je 0x140002063
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140002079
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140002076
call fcn.140004530
jmp 0x140002079
mov rax, r15
mov qword [rbp + 0x2fc8], rax
mov qword [rbp + 0x2fd8], rsi
mov qword [rbp + 0x2fe0], rbx
lea r8, [rsi*2 + 2]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rbp + 0x3010]
lea rdx, [rbp + 0x2fc8]
call fcn.140001400
mov r14d, 4
test eax, eax
je 0x1400022ab
mov rdx, qword [rbp + 0x2fb8]
test rdx, rdx
je 0x14000225e
mov r8, qword [rbp + 0x2fc0]
mov rax, r8
sub rax, rdx
lea rcx, [rbp + 0x2fa8]
cmp rax, r14
jb 0x140002115
lea rax, [rdx + 4]
mov qword [rbp + 0x2fb8], rax
cmp r8, 7
cmova rcx, qword [rbp + 0x2fa8]
mov rax, qword [str..exe]
mov qword [rcx + rdx*2], rax
mov word [rcx + rdx*2 + 8], r15w
jmp 0x140002129
mov qword [rsp + 0x20], r14
lea r9, str..exe
mov rdx, r14
call fcn.140003d10
xorps xmm0, xmm0
movups xmmword [rbp + 0x2fc8], xmm0
mov qword [rbp + 0x2fd8], r15
mov qword [rbp + 0x2fe0], r15
mov rbx, qword [rbp + 0x2fb8]
lea rsi, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rsi, qword [rbp + 0x2fa8]
cmp rbx, rdi
ja 0x140002f28
mov qword [rbp + 0x2fe0], 7
cmp rbx, 7
ja 0x14000218f
mov qword [rbp + 0x2fd8], rbx
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x2fc8], xmm0
jmp 0x140002247
mov rax, rbx
or rax, 7
cmp rax, rdi
jbe 0x1400021ab
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1400021de
cmp rax, 0xa
mov ecx, 0xa
cmovb rax, rcx
mov rdi, rax
lea rcx, [rax + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140002f16
add rcx, rcx
cmp rcx, 0x1000
jb 0x140002210
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002f16
mov rcx, rax
call fcn.140004530
mov rcx, rax
test rax, rax
je 0x140002209
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000221f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000221c
call fcn.140004530
jmp 0x14000221f
mov rax, r15
mov qword [rbp + 0x2fc8], rax
mov qword [rbp + 0x2fd8], rbx
mov qword [rbp + 0x2fe0], rdi
lea r8, [rbx*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rbp + 0x3010]
lea rdx, [rbp + 0x2fc8]
call fcn.140001400
test eax, eax
je 0x1400022ab
lea rdx, str.Failed_to_locate_app_profile_for_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003330
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140004100
mov rcx, rax
lea rdx, str._n__Try_adding_it_in_NVIDIA_Control_Panel__retry_with_the_full_EXE_path._n
call fcn.140003330
jmp 0x140002ec5
lea rdx, str.Found_settings_for_app_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003330
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140004100
mov rcx, rax
call fcn.140003510
mov dword [rsp + 0x70], 0x13020
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xf74], r15
mov qword [rbp + 0xf7c], r15
mov qword [rbp + 0xf84], r15
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0xf8c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x1f8c], r15d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1f90]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x3020
lea rdx, [rsp + 0x70]
lea rcx, [0x14000f100]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x70], 0x13020
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xf74], r15
mov qword [rbp + 0xf7c], r15
mov qword [rbp + 0xf84], r15
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0xf8c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x1f8c], r15d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1f90]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x3020
lea rdx, [rsp + 0x70]
lea rcx, [0x1400090c0]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x70], 0x13020
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xf74], r15
mov qword [rbp + 0xf7c], r15
mov qword [rbp + 0xf84], r15
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0xf8c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x1f8c], r15d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1f90]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x3020
lea rdx, [rsp + 0x70]
lea rcx, [0x140012120]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x70], 0x13020
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xf74], r15
mov qword [rbp + 0xf7c], r15
mov qword [rbp + 0xf84], r15
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0xf8c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x1f8c], r15d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1f90]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x3020
lea rdx, [rsp + 0x70]
lea rcx, [0x14000c0e0]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rbp + 0x2f98], r15d
mov rax, qword [0x140015818]
lea rcx, [rbp + 0x2f98]
mov qword [rsp + 0x20], rcx
lea r9, [0x14000f100]
mov r8d, 0xdd48fb
mov rdi, qword [rbp + 0x3018]
mov rdx, rdi
mov rsi, qword [rbp + 0x3010]
mov rcx, rsi
call rax
mov ebx, eax
mov dword [rbp + 0x2fe8], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2fe8]
mov qword [rsp + 0x20], rax
lea r9, [0x1400090c0]
mov r8d, 0x432f84
mov rdx, rdi
mov rcx, rsi
call r10
mov dword [rbp + 0x2f90], eax
mov dword [rbp + 0x2f98], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2f98]
mov qword [rsp + 0x20], rax
lea r9, [0x140012120]
mov r8d, 0x980896
mov rdx, rdi
mov rcx, rsi
call r10
mov dword [rbp + 0x2fa0], eax
mov dword [rbp + 0x2fe8], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2fe8]
mov qword [rsp + 0x20], rax
lea r9, [0x14000c0e0]
mov r8d, 0x1077a11a
mov rdx, rdi
mov rcx, rsi
call r10
test ebx, ebx
jne 0x1400025ad
cmp dword [0x14001111c], 1
jne 0x1400025ad
mov r8b, 1
jmp 0x1400025b0
xor r8b, r8b
cmp dword [rbp + 0x2f90], 0
jne 0x1400025c6
cmp dword [0x14000b0dc], 0
je 0x1400025c6
mov dl, 1
jmp 0x1400025c8
xor dl, dl
cmp dword [rbp + 0x2fa0], 0
jne 0x1400025de
cmp dword [0x14001413c], 1
jne 0x1400025de
mov cl, 1
jmp 0x1400025e0
xor cl, cl
test eax, eax
jne 0x1400025f1
cmp dword [0x14000e0fc], 1
jne 0x1400025f1
mov al, 1
jmp 0x1400025f3
xor al, al
test r8b, r8b
je 0x140002609
test dl, dl
je 0x140002609
test cl, cl
je 0x140002609
test al, al
je 0x140002609
mov sil, 1
jmp 0x14000260c
xor sil, sil
lea rax, str.Enabled
lea rbx, str.Disabled
test sil, sil
cmovne rbx, rax
lea rdx, str._nCurrent_TrueHDR_state:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
mov rcx, rax
mov rdx, rbx
call fcn.140003160
mov rcx, rax
lea rdx, [0x1400068ac]
call fcn.140003160
mov edx, dword [0x14001111c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14000b0dc]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14001413c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14000e0fc]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a4]
call fcn.140003160
mov rbx, rax
mov edx, dword [0x14000b0dc]
lea rcx, [rbp + 0x2fc8]
call fcn.140001560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400026ea
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400042d0
mov rcx, rax
lea rdx, [0x1400066cc]
call fcn.140003160
nop
mov rdx, qword [rbp + 0x2fe0]
cmp rdx, 0xf
jbe 0x140002749
inc rdx
mov rcx, qword [rbp + 0x2fc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002744
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002744
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
cmp byte [0x140015828], 0
je 0x1400028f9
lea rdx, str._nEnter_action__VeryHigh___Medium___Low___Disable___Hud___Quit___or_hit_enter_to_toggle_n_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
xorps xmm0, xmm0
movups xmmword [rbp + 0x2fc8], xmm0
mov qword [rbp + 0x2fd8], r15
mov qword [rbp + 0x2fe0], 7
mov word [rbp + 0x2fc8], r15w
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const___ptr64]
movzx r8d, ax
lea rdx, [rbp + 0x2fc8]
mov rcx, rbx
call fcn.140003f50
mov rdi, qword [rbp + 0x2fe0]
mov rbx, qword [rbp + 0x2fc8]
cmp qword [rbp + 0x2fd8], 0
je 0x1400028a0
lea rcx, [rbp + 0x2fc8]
cmp rdi, 7
seta byte [rsp + 0x68]
cmova rcx, rbx
movzx ecx, word [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp ax, 0x76
je 0x140002895
cmp ax, 0x65
je 0x140002895
cmp ax, 0x6d
jne 0x140002816
mov dword [rsp + 0x64], r12d
jmp 0x14000289d
cmp ax, 0x6c
jne 0x140002823
mov dword [rsp + 0x64], r15d
jmp 0x14000289d
cmp ax, 0x64
jne 0x140002830
mov byte [rsp + 0x60], 1
jmp 0x1400028a0
cmp ax, 0x68
jne 0x140002848
mov r13b, 1
mov byte [rsp + 0x61], r13b
mov dword [rsp + 0x64], 2
jmp 0x1400028a0
cmp ax, 0x78
je 0x140002854
cmp ax, 0x71
jne 0x1400028a0
cmp byte [rsp + 0x68], 0
je 0x140002ebf
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140002888
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028e3
mov rcx, rbx
call fcn.140004574
jmp 0x140002ebf
mov dword [rsp + 0x64], 2
mov r13b, 1
lea rdx, [0x1400066cc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
nop
cmp rdi, 7
jbe 0x1400028f2
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400028ea
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400028ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140004574
mov rdi, qword [rbp + 0x3018]
xor sil, 1
movzx eax, sil
test r13b, r13b
cmove r12d, eax
cmp byte [rsp + 0x60], 0
je 0x140002930
xor r12b, r12b
mov dword [0x14001111c], r15d
mov dword [0x14000b0dc], r15d
mov dword [0x14001413c], r15d
mov dword [0x14000e0fc], r15d
jmp 0x140002980
movzx eax, r12b
mov dword [0x14001111c], eax
movzx ecx, r12b
add ecx, ecx
mov dword [0x14000b0dc], ecx
mov dword [0x14001413c], eax
mov dword [0x14000e0fc], eax
test r12b, r12b
je 0x140002980
cmp byte [rsp + 0x61], 0
je 0x140002961
or ecx, 1
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x140002977
cmp eax, 1
mov r14d, 8
je 0x140002977
mov r14d, r15d
or ecx, r14d
mov dword [0x14000b0dc], ecx
lea r13, str.Disabled
mov rbx, r13
test r12b, r12b
lea rax, str.Enabled
cmovne rbx, rax
lea rdx, str.Applying_TrueHDR_state:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
mov rcx, rax
mov rdx, rbx
call fcn.140003160
mov rcx, rax
lea rdx, [0x1400068ac]
call fcn.140003160
mov edx, dword [0x14001111c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14000b0dc]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14001413c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14000e0fc]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a4]
call fcn.140003160
mov rbx, rax
mov edx, dword [0x14000b0dc]
lea rcx, [rbp + 0x2fc8]
call fcn.140001560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140002a61
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400042d0
mov rcx, rax
lea rdx, [0x1400066cc]
call fcn.140003160
nop
mov rdx, qword [rbp + 0x2fe0]
cmp rdx, 0xf
jbe 0x140002ac0
inc rdx
mov rcx, qword [rbp + 0x2fc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002abb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002abb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
mov qword [rbp + 0x2fd8], r15
mov qword [rbp + 0x2fe0], 0xf
mov byte [rbp + 0x2fc8], 0
mov dword [0x140010104], 0xdd48fb
mov dword [0x14000a0c4], 0x432f84
mov dword [0x140013124], 0x980896
mov dword [0x14000d0e4], 0x1077a11a
mov rax, qword [0x140015848]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x14000f100]
mov rdx, rdi
mov rsi, qword [rbp + 0x3010]
mov rcx, rsi
call rax
mov r12d, eax
mov r10, qword [0x140015848]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x1400090c0]
mov rdx, rdi
mov rcx, rsi
call r10
mov ebx, eax
mov r10, qword [0x140015848]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x140012120]
mov rdx, rdi
mov rcx, rsi
call r10
mov r14d, eax
mov r10, qword [0x140015848]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x14000c0e0]
mov rdx, rdi
mov rcx, rsi
call r10
test r12d, r12d
jne 0x140002e6b
test ebx, ebx
jne 0x140002e74
test r14d, r14d
jne 0x140002e7c
test eax, eax
jne 0x140002e85
mov rax, qword [0x140015808]
mov rcx, qword [0x140015850]
call rax
mov ebx, eax
test eax, eax
je 0x140002bf0
lea rdx, str.NvAPI_DRS_SaveSettings_failed_with_error
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, str._____n
call fcn.140003160
lea rdx, str._nProfile_settings_saved__changes_should_take_effect_on_next_app_launch._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
mov dword [rbp + 0x2fa0], r15d
mov rax, qword [0x140015818]
lea rcx, [rbp + 0x2fa0]
mov qword [rsp + 0x20], rcx
lea r9, [0x14000f100]
mov r8d, 0xdd48fb
mov rdx, rdi
mov rcx, rsi
call rax
mov ebx, eax
mov dword [rbp + 0x2f90], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2f90]
mov qword [rsp + 0x20], rax
lea r9, [0x1400090c0]
mov r8d, 0x432f84
mov rdx, rdi
mov rcx, rsi
call r10
mov r14d, eax
mov dword [rbp + 0x2fa0], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2fa0]
mov qword [rsp + 0x20], rax
lea r9, [0x140012120]
mov r8d, 0x980896
mov rdx, rdi
mov rcx, rsi
call r10
mov r12d, eax
mov dword [rbp + 0x2f90], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2f90]
mov qword [rsp + 0x20], rax
lea r9, [0x14000c0e0]
mov r8d, 0x1077a11a
mov rdx, rdi
mov rcx, rsi
call r10
test ebx, ebx
jne 0x140002cdc
cmp dword [0x14001111c], 1
jne 0x140002cdc
mov r8b, 1
jmp 0x140002cdf
xor r8b, r8b
test r14d, r14d
jne 0x140002cf1
cmp dword [0x14000b0dc], r14d
je 0x140002cf1
mov dl, 1
jmp 0x140002cf3
xor dl, dl
test r12d, r12d
jne 0x140002d05
cmp dword [0x14001413c], 1
jne 0x140002d05
mov cl, 1
jmp 0x140002d07
xor cl, cl
test eax, eax
jne 0x140002d18
cmp dword [0x14000e0fc], 1
jne 0x140002d18
mov al, 1
jmp 0x140002d1a
xor al, al
test r8b, r8b
je 0x140002d2f
test dl, dl
je 0x140002d2f
test cl, cl
je 0x140002d2f
test al, al
je 0x140002d2f
mov al, 1
jmp 0x140002d31
xor al, al
test al, al
lea rax, str.Enabled
cmovne r13, rax
lea rdx, str._nNew_TrueHDR_state:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
mov rcx, rax
mov rdx, r13
call fcn.140003160
mov rcx, rax
lea rdx, [0x1400068ac]
call fcn.140003160
mov edx, dword [0x14001111c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14000b0dc]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14001413c]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a8]
call fcn.140003160
mov edx, dword [0x14000e0fc]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400068a4]
call fcn.140003160
mov rbx, rax
mov edx, dword [0x14000b0dc]
lea rcx, [rbp + 0x2fc8]
call fcn.140001560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140002e07
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400042d0
mov rcx, rax
lea rdx, [0x1400066cc]
call fcn.140003160
nop
mov rdx, qword [rbp + 0x2fe0]
cmp rdx, 0xf
jbe 0x140002e66
inc rdx
mov rcx, qword [rbp + 0x2fc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
mov r12d, r15d
jmp 0x140002ec5
cmp r12d, 0xffffff77
je 0x140002ea6
cmp ebx, 0xffffff77
je 0x140002ea6
cmp r14d, 0xffffff77
je 0x140002ea6
cmp eax, 0xffffff77
je 0x140002ea6
lea rdx, str.Failed_to_apply_setting__aborting..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003160
mov eax, 2
jmp 0x140002ec2
lea rdx, str.NvAPI_DRS_SetSetting_failed_with_error_NVAPI_INVALID_USER_PRIVILEGE__aborting..._nTry_relaunching_NvTrueHDR_as_admin._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003330
mov r15d, 3
mov eax, r15d
mov r12d, eax
mov rdx, qword [rbp + 0x2fc0]
cmp rdx, 7
jbe 0x140002f0e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2fa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004574
mov eax, r12d
jmp 0x1400017a2
call fcn.140001280
int3
call fcn.140001280
int3
call fcn.140001320
int3
call fcn.140001320
int3