Function at 0x140001780
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 - 0x3150]
mov eax, 0x3250
call fcn.140006560
sub rsp, rax
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x3140], rax
xor r15d, r15d
lea rdx, str._nNvTrueHDR___TrueHDR_toggler__v1.0_nby_emoose___https:__github.com_emoose_n_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003de0
cmp dword [0x140017a58], r15d
je 0x140001822
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.140003de0
xor eax, eax
mov rcx, qword [rbp + 0x3140]
xor rcx, rsp
call fcn.140005710
lea r11, [rsp + 0x3250]
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 + 0x63], r15b
xor r12b, r12b
mov byte [rsp + 0x61], r12b
mov byte [rsp + 0x62], r12b
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 0x1400018c2
lea r8, [rbp + 0x2f98]
mov rdx, qword [rbp + 0x2f90]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400018b5
mov dword [rbp + 0x2f98], r15d
mov rcx, qword [rbp + 0x2f90]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x2f98], r15d
sete bl
mov byte [rsp + 0x60], bl
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 + 0x3000]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r13d, 1
mov edi, r13d
mov dword [rbp + 0x2f98], r13d
cmp dword [rbp + 0x3000], r13d
jle 0x140001c85
add rax, 8
mov qword [rbp + 0x2fa0], rax
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rax]
lea rcx, [rbp + 0x3008]
call fcn.140003650
nop
lea r8, [rbp + 0x3008]
mov r12, qword [rbp + 0x3020]
cmp r12, 7
seta bl
mov rsi, qword [rbp + 0x3008]
cmova r8, rsi
mov r14, qword [rbp + 0x3018]
cmp r14, 6
jne 0x1400019fc
mov rdx, r14
lea rax, str.__help
mov rcx, rax
sub r8, rax
nop dword [rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x1400019fc
add rcx, 2
sub rdx, 1
jne 0x140001990
lea rdx, str.usage:_nvtruehdr____enable_____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.140003de0
nop
test bl, bl
je 0x1400019f1
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400019e9
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028ac
mov rcx, rsi
call fcn.140005774
mov r13d, 3
jmp 0x140002e1a
lea r8, [rbp + 0x3008]
test bl, bl
cmovne r8, rsi
cmp r14, 5
jne 0x140001a47
mov rdx, r14
lea rax, str.__hud
mov rcx, rax
sub r8, rax
nop
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001a47
add rcx, 2
sub rdx, 1
jne 0x140001a20
mov byte [rsp + 0x63], 1
mov byte [rsp + 0x61], 1
mov byte [rsp + 0x62], dl
jmp 0x140001c19
lea r8, [rbp + 0x3008]
test bl, bl
cmovne r8, rsi
cmp r14, 8
jne 0x140001a96
mov rdx, r14
lea rax, str.__enable
mov rcx, rax
sub r8, rax
nop word [rax + rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001a96
add rcx, 2
sub rdx, 1
jne 0x140001a70
mov byte [rsp + 0x63], dl
mov byte [rsp + 0x61], 1
mov byte [rsp + 0x62], dl
jmp 0x140001c19
lea r8, [rbp + 0x3008]
test bl, bl
cmovne r8, rsi
cmp r14, 9
jne 0x140001ae6
mov rdx, r14
lea rax, str.__disable
mov rcx, rax
sub r8, rax
nop dword [rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001ae6
add rcx, 2
sub rdx, 1
jne 0x140001ac0
mov byte [rsp + 0x63], dl
mov byte [rsp + 0x61], dl
mov byte [rsp + 0x62], 1
jmp 0x140001c19
lea r8, [rbp + 0x3008]
test bl, bl
cmovne r8, rsi
cmp r14, 7
jne 0x140001b2f
mov rdx, r14
lea rcx, str.__admin
mov rax, rcx
sub r8, rcx
nop dword [rax]
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x140001b2f
add rax, 2
sub rdx, 1
jne 0x140001b10
xor bl, bl
mov byte [rsp + 0x60], bl
jmp 0x140001c1e
mov rdi, qword [rbp + 0x2fb8]
test rdi, rdi
je 0x140001b99
mov rdx, qword [rbp + 0x2fc0]
mov rax, rdx
sub rax, rdi
lea rcx, [rbp + 0x2fa8]
cmp rax, 1
jb 0x140001b7e
lea rax, [rdi + 1]
mov qword [rbp + 0x2fb8], rax
cmp rdx, 7
cmova rcx, qword [rbp + 0x2fa8]
mov eax, dword [0x140007688]
mov word [rcx + rdi*2], ax
mov word [rcx + rdi*2 + 2], r15w
jmp 0x140001b92
mov qword [rsp + 0x20], r13
lea r9, [0x140007688]
mov rdx, r13
call fcn.140004b20
mov rdi, qword [rbp + 0x2fb8]
lea r9, [rbp + 0x3008]
test bl, bl
cmovne r9, rsi
mov rcx, qword [rbp + 0x2fc0]
mov rax, rcx
sub rax, rdi
cmp r14, rax
ja 0x140001bf1
lea rax, [r14 + rdi]
mov qword [rbp + 0x2fb8], rax
lea rbx, [rbp + 0x2fa8]
cmp rcx, 7
cmova rbx, qword [rbp + 0x2fa8]
lea rcx, [rbx + rdi*2]
lea r8, [r14 + r14]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rdi]
mov word [rbx + rax*2], r15w
jmp 0x140001c13
mov qword [rsp + 0x20], r14
mov rdx, r14
lea rcx, [rbp + 0x2fa8]
call fcn.140004b20
mov r12, qword [rbp + 0x3020]
mov rsi, qword [rbp + 0x3008]
mov edi, dword [rbp + 0x2f98]
movzx ebx, byte [rsp + 0x60]
cmp r12, 7
jbe 0x140001c59
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001c51
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028ac
mov rcx, rsi
call fcn.140005774
inc edi
mov dword [rbp + 0x2f98], edi
mov rax, qword [rbp + 0x2fa0]
add rax, 8
mov qword [rbp + 0x2fa0], rax
cmp edi, dword [rbp + 0x3000]
jl 0x140001940
movzx r12d, byte [rsp + 0x61]
test bl, bl
je 0x140001f69
lea rdx, str.84_C0_75___B8_77_FF_FF_FF_E9________
lea rcx, [rbp + 0x30a0]
call fcn.140003650
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30c0], xmm0
movups xmmword [rbp + 0x30d0], xmm0
movups xmmword [rbp + 0x30e0], xmm0
movups xmmword [rbp + 0x30f0], xmm0
movups xmmword [rbp + 0x3100], xmm0
movups xmmword [rbp + 0x3110], xmm0
movups xmmword [rbp + 0x3120], xmm0
mov qword [rbp + 0x3130], rax
lea rcx, [rbp + 0x30c0]
call fcn.1400034b0
nop
lea r8, [rbp + 0x30a0]
cmp qword [rbp + 0x30b8], 7
cmova r8, qword [rbp + 0x30a0]
mov rax, qword [rbp + 0x30b0]
lea r9, [r8 + rax*2]
lea rdx, [rbp + 0x2fc8]
lea rcx, [rbp + 0x30c0]
call fcn.1400039e0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x3030], xmm0
movups xmmword [rbp + 0x3040], xmm0
movups xmmword [rbp + 0x3050], xmm0
movups xmmword [rbp + 0x3060], xmm0
movups xmmword [rbp + 0x3070], xmm0
movups xmmword [rbp + 0x3080], xmm0
movups xmmword [rbp + 0x3090], xmm0
lea rax, [rbp + 0x2fc8]
cmp qword [rbp + 0x2fe0], 0xf
cmova rax, qword [rbp + 0x2fc8]
mov qword [rbp + 0x2ff0], rax
mov rax, qword [rbp + 0x2fd8]
mov qword [rbp + 0x2ff8], rax
lea rcx, str.nvapi64.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
movups xmmword [rbp + 0x3030], xmm0
mov qword [rbp + 0x3040], r15
mov qword [rbp + 0x3048], 0xf
mov byte [rbp + 0x3030], 0
movups xmmword [rbp + 0x3050], xmm0
mov qword [rbp + 0x3060], r15
mov qword [rbp + 0x3068], 0xf
mov byte [rbp + 0x3050], 0
movdqa xmmword [rbp + 0x3070], xmm0
mov qword [rbp + 0x3080], r15
mov byte [rbp + 0x3088], 0
mov qword [rbp + 0x3090], rax
mov qword [rbp + 0x3098], r15
movaps xmm0, xmmword [rbp + 0x2ff0]
movdqa xmmword [rbp + 0x2ff0], xmm0
lea r8, [rbp + 0x3050]
lea rdx, [rbp + 0x3030]
lea rcx, [rbp + 0x2ff0]
call fcn.140005110
nop
mov edx, 0xffffffff
lea rcx, [rbp + 0x3030]
call fcn.140005290
mov rax, qword [rbp + 0x3078]
sub rax, qword [rbp + 0x3070]
sar rax, 3
cmp rax, 1
jb 0x140001ea9
mov edx, r13d
lea rcx, [rbp + 0x3030]
call fcn.140005290
mov rax, qword [rbp + 0x3070]
mov rbx, qword [rax]
lea r9, [rbp + 0x2f98]
mov edx, 5
lea r8d, [rdx + 0x3b]
lea rcx, [rbx + 9]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movabs rax, 0x9090909090909090
mov dword [rbx + 9], eax
mov byte [rbx + 0xd], al
lea r9, [rbp + 0x2f98]
mov r8d, dword [rbp + 0x2f98]
mov edx, 5
lea rcx, [rbx + 9]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
lea rcx, [rbp + 0x3030]
call fcn.140001510
nop
mov rdx, qword [rbp + 0x2fe0]
cmp rdx, 0xf
jbe 0x140001efa
inc rdx
mov rcx, qword [rbp + 0x2fc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ef5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ef5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005774
mov qword [rbp + 0x2fd8], r15
mov qword [rbp + 0x2fe0], 0xf
mov byte [rbp + 0x2fc8], 0
lea rcx, [rbp + 0x30c0]
call fcn.1400033c0
nop
mov rdx, qword [rbp + 0x30b8]
cmp rdx, 7
jbe 0x140001f69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005774
cmp qword [rbp + 0x2fb8], 0
jne 0x140001ff2
mov byte [0x140017a18], 1
lea rdx, str.usage:_nvtruehdr____enable_____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.140003de0
lea rdx, [0x1400076ec]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003de0
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.140003de0
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.140004d60
lea rdx, [0x1400076ec]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003de0
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.140003fb0
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140004f10
mov rcx, rax
lea rdx, str...._n
call fcn.140003fb0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x2ff0], 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 0x140002e77
movabs rax, 0x7fffffffffffffff
mov ecx, 0xa
mov qword [rbp + 0x2fe0], 7
cmp rsi, 7
ja 0x1400020c2
mov qword [rbp + 0x2fd8], rsi
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0x2fc8], xmm0
jmp 0x140002160
mov rbx, rsi
or rbx, 7
cmp rbx, rdi
jbe 0x1400020d7
mov rbx, rdi
lea rcx, [rax + rax]
jmp 0x1400020f7
cmp rbx, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x140002e71
add rcx, rcx
cmp rcx, 0x1000
jb 0x140002129
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002e71
mov rcx, rax
call fcn.140005730
mov rcx, rax
test rax, rax
je 0x140002122
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140002138
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140002135
call fcn.140005730
jmp 0x140002138
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 + 0x2ff0]
lea rdx, [rbp + 0x2fc8]
call fcn.140001620
test eax, eax
je 0x14000236b
mov rdx, qword [rbp + 0x2fb8]
test rdx, rdx
je 0x14000231e
mov r8, qword [rbp + 0x2fc0]
mov rax, r8
sub rax, rdx
lea rcx, [rbp + 0x2fa8]
cmp rax, 4
jb 0x1400021cf
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 0x1400021e9
mov qword [rsp + 0x20], 4
lea r9, str..exe
mov edx, 4
call fcn.140004b20
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 0x140002e7d
mov qword [rbp + 0x2fe0], 7
cmp rbx, 7
ja 0x14000224f
mov qword [rbp + 0x2fd8], rbx
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x2fc8], xmm0
jmp 0x140002307
mov rax, rbx
or rax, 7
cmp rax, rdi
jbe 0x14000226b
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000229e
cmp rax, 0xa
mov ecx, 0xa
cmovb rax, rcx
mov rdi, rax
lea rcx, [rax + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140002e6b
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400022d0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002e6b
mov rcx, rax
call fcn.140005730
mov rcx, rax
test rax, rax
je 0x1400022c9
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400022df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400022dc
call fcn.140005730
jmp 0x1400022df
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 + 0x2ff0]
lea rdx, [rbp + 0x2fc8]
call fcn.140001620
test eax, eax
je 0x14000236b
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.140004190
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140004f10
mov rcx, rax
lea rdx, str._n__Try_adding_it_in_NVIDIA_Control_Panel__retry._n
call fcn.140004190
jmp 0x140002e1a
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.140003fb0
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140004f10
mov rcx, rax
lea rdx, [0x1400077dc]
call fcn.140004190
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, [0x140011100]
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, [0x14000b0c0]
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, [0x140014120]
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, [0x14000e0e0]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rbp + 0x2f98], r15d
mov rax, qword [0x140017a08]
lea rcx, [rbp + 0x2f98]
mov qword [rsp + 0x20], rcx
lea r9, [0x140011100]
mov r8d, 0xdd48fb
mov r14, qword [rbp + 0x2ff8]
mov rdx, r14
mov rdi, qword [rbp + 0x2ff0]
mov rcx, rdi
call rax
mov ebx, eax
mov dword [rbp + 0x2f90], r15d
mov r10, qword [0x140017a08]
lea rax, [rbp + 0x2f90]
mov qword [rsp + 0x20], rax
lea r9, [0x14000b0c0]
mov r8d, 0x432f84
mov rdx, r14
mov rcx, rdi
call r10
mov esi, eax
mov dword [rbp + 0x2f98], r15d
mov r10, qword [0x140017a08]
lea rax, [rbp + 0x2f98]
mov qword [rsp + 0x20], rax
lea r9, [0x140014120]
mov r8d, 0x980896
mov rdx, r14
mov rcx, rdi
call r10
mov dword [rbp + 0x2fa0], eax
mov dword [rbp + 0x2f90], r15d
mov r10, qword [0x140017a08]
lea rax, [rbp + 0x2f90]
mov qword [rsp + 0x20], rax
lea r9, [0x14000e0e0]
mov r8d, 0x1077a11a
mov rdx, r14
mov rcx, rdi
call r10
test ebx, ebx
jne 0x140002670
cmp dword [0x14001311c], 1
jne 0x140002670
mov r8b, 1
jmp 0x140002673
xor r8b, r8b
test esi, esi
jne 0x140002683
cmp dword [0x14000d0dc], esi
je 0x140002683
mov dl, 1
jmp 0x140002685
xor dl, dl
cmp dword [rbp + 0x2fa0], 0
jne 0x14000269b
cmp dword [0x14001613c], 1
jne 0x14000269b
mov cl, 1
jmp 0x14000269d
xor cl, cl
test eax, eax
jne 0x1400026ae
cmp dword [0x1400100fc], 1
jne 0x1400026ae
mov al, 1
jmp 0x1400026b0
xor al, al
test r8b, r8b
je 0x1400026c6
test dl, dl
je 0x1400026c6
test cl, cl
je 0x1400026c6
test al, al
je 0x1400026c6
mov sil, 1
jmp 0x1400026c9
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.140003de0
mov rcx, rax
mov rdx, rbx
call fcn.140003de0
mov rcx, rax
lea rdx, [0x140007840]
call fcn.140003de0
mov edx, dword [0x14001311c]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x14000d0dc]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x14001613c]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x1400100fc]
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, [0x140007838]
call fcn.140003de0
lea rcx, str.__HDR_indicator_HUD_enabled_
lea rdx, [0x140007516]
cmp dword [0x14000d0dc], 3
cmove rdx, rcx
mov rcx, rax
call fcn.140003de0
mov rcx, rax
lea rdx, [0x1400076ec]
call fcn.140003de0
cmp byte [0x140017a18], 0
je 0x14000292c
lea rdx, str._nEnter_action__Enable___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.140003de0
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.140004d60
mov rdi, qword [rbp + 0x2fe0]
mov rbx, qword [rbp + 0x2fc8]
cmp qword [rbp + 0x2fd8], 0
je 0x140002861
lea rcx, [rbp + 0x2fc8]
cmp rdi, 7
seta byte [rsp + 0x61]
cmova rcx, rbx
movzx ecx, word [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp ax, 0x65
jne 0x1400028b3
mov r12b, 1
lea rdx, [0x1400076ec]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003de0
nop
cmp rdi, 7
jbe 0x140002925
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000291d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000291d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp ax, 0x64
jne 0x1400028c0
mov byte [rsp + 0x62], 1
jmp 0x140002861
cmp ax, 0x68
jne 0x1400028d0
mov r12b, 1
mov byte [rsp + 0x63], r12b
jmp 0x140002861
cmp ax, 0x78
je 0x1400028dc
cmp ax, 0x71
jne 0x140002861
cmp byte [rsp + 0x61], 0
je 0x140002e17
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140002910
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028ac
mov rcx, rbx
call fcn.140005774
jmp 0x140002e17
mov rcx, rbx
call fcn.140005774
mov rdi, qword [rbp + 0x2ff0]
xor sil, 1
movzx eax, sil
test r12b, r12b
cmove r13d, eax
cmp byte [rsp + 0x62], 0
je 0x140002962
xor al, al
mov dword [0x14001311c], r15d
mov dword [0x14000d0dc], r15d
mov dword [0x14001613c], r15d
mov dword [0x1400100fc], r15d
jmp 0x14000299d
movzx eax, r13b
mov dword [0x14001311c], eax
movzx ecx, r13b
add ecx, ecx
mov dword [0x14000d0dc], ecx
mov dword [0x14001613c], eax
mov dword [0x1400100fc], eax
movzx eax, r13b
test r13b, r13b
je 0x14000299d
cmp byte [rsp + 0x63], 0
je 0x14000299d
or ecx, 1
mov dword [0x14000d0dc], ecx
lea r13, str.Disabled
mov rbx, r13
test al, al
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.140003de0
mov rcx, rax
mov rdx, rbx
call fcn.140003de0
mov rcx, rax
lea rdx, [0x140007840]
call fcn.140003de0
mov edx, dword [0x14001311c]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x14000d0dc]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x14001613c]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x1400100fc]
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, [0x140007838]
call fcn.140003de0
lea rdx, [0x140007516]
cmp dword [0x14000d0dc], 3
lea rcx, str.__HDR_indicator_HUD_enabled_
cmove rdx, rcx
mov rcx, rax
call fcn.140003de0
mov rcx, rax
lea rdx, [0x1400076ec]
call fcn.140003de0
mov dword [0x140012104], 0xdd48fb
mov dword [0x14000c0c4], 0x432f84
mov dword [0x140015124], 0x980896
mov dword [0x14000f0e4], 0x1077a11a
mov rax, qword [0x140017a38]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x140011100]
mov rdx, r14
mov rcx, rdi
call rax
mov r12d, eax
mov r10, qword [0x140017a38]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x14000b0c0]
mov rdx, r14
mov rcx, rdi
call r10
mov ebx, eax
mov r10, qword [0x140017a38]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x140014120]
mov rdx, r14
mov rcx, rdi
call r10
mov edi, eax
mov r10, qword [0x140017a38]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x14000e0e0]
mov rdx, r14
mov rsi, qword [rbp + 0x2ff0]
mov rcx, rsi
call r10
test r12d, r12d
jne 0x140002dc3
test ebx, ebx
jne 0x140002dcc
test edi, edi
jne 0x140002dd4
test eax, eax
jne 0x140002ddc
mov rax, qword [0x1400179f8]
mov rcx, qword [0x140017a40]
call rax
mov ebx, eax
test eax, eax
je 0x140002b9e
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.140003de0
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.140003de0
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.140003de0
mov dword [rbp + 0x2fa0], r15d
mov rax, qword [0x140017a08]
lea rcx, [rbp + 0x2fa0]
mov qword [rsp + 0x20], rcx
lea r9, [0x140011100]
mov r8d, 0xdd48fb
mov rdx, r14
mov rcx, rsi
call rax
mov ebx, eax
mov dword [rbp + 0x2f90], r15d
mov r10, qword [0x140017a08]
lea rax, [rbp + 0x2f90]
mov qword [rsp + 0x20], rax
lea r9, [0x14000b0c0]
mov r8d, 0x432f84
mov rdx, r14
mov rcx, rsi
call r10
mov edi, eax
mov dword [rbp + 0x2fa0], r15d
mov r10, qword [0x140017a08]
lea rax, [rbp + 0x2fa0]
mov qword [rsp + 0x20], rax
lea r9, [0x140014120]
mov r8d, 0x980896
mov rdx, r14
mov rcx, rsi
call r10
mov r12d, eax
mov dword [rbp + 0x2f90], r15d
mov r10, qword [0x140017a08]
lea rax, [rbp + 0x2f90]
mov qword [rsp + 0x20], rax
lea r9, [0x14000e0e0]
mov r8d, 0x1077a11a
mov rdx, r14
mov rcx, rsi
call r10
test ebx, ebx
jne 0x140002c89
cmp dword [0x14001311c], 1
jne 0x140002c89
mov r8b, 1
jmp 0x140002c8c
xor r8b, r8b
test edi, edi
jne 0x140002c9c
cmp dword [0x14000d0dc], edi
je 0x140002c9c
mov dl, 1
jmp 0x140002c9e
xor dl, dl
test r12d, r12d
jne 0x140002cb0
cmp dword [0x14001613c], 1
jne 0x140002cb0
mov cl, 1
jmp 0x140002cb2
xor cl, cl
test eax, eax
jne 0x140002cc3
cmp dword [0x1400100fc], 1
jne 0x140002cc3
mov al, 1
jmp 0x140002cc5
xor al, al
test r8b, r8b
je 0x140002cda
test dl, dl
je 0x140002cda
test cl, cl
je 0x140002cda
test al, al
je 0x140002cda
mov al, 1
jmp 0x140002cdc
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.140003de0
mov rcx, rax
mov rdx, r13
call fcn.140003de0
mov rcx, rax
lea rdx, [0x140007840]
call fcn.140003de0
mov edx, dword [0x14001311c]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x14000d0dc]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x14001613c]
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, [0x14000783c]
call fcn.140003de0
mov edx, dword [0x1400100fc]
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, [0x140007838]
call fcn.140003de0
cmp dword [0x14000d0dc], 3
lea rcx, [0x140007516]
lea rdx, str.__HDR_indicator_HUD_enabled_
cmove rcx, rdx
mov rdx, rcx
mov rcx, rax
call fcn.140003de0
mov rcx, rax
lea rdx, [0x1400076ec]
call fcn.140003de0
jmp 0x140002e17
cmp r12d, 0xffffff77
je 0x140002dfe
cmp ebx, 0xffffff77
je 0x140002dfe
cmp edi, 0xffffff77
je 0x140002dfe
cmp eax, 0xffffff77
je 0x140002dfe
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.140003de0
mov r15d, 2
jmp 0x140002e17
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_char__struct_std::char_traits_char___std::cout]
call fcn.140003de0
mov r15d, 3
mov r13d, r15d
mov rdx, qword [rbp + 0x2fc0]
cmp rdx, 7
jbe 0x140002e63
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2fa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005774
mov eax, r13d
jmp 0x1400017f2
call fcn.140001280
int3
call fcn.140001280
int3
call fcn.140001320
int3
call fcn.140001320
int3