Function at 0x140001670
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 - 0x30a0]
mov eax, 0x31a0
call fcn.1400053a0
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x3090], rax
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.140002f20
cmp dword [0x140015868], 0
je 0x14000170f
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.140002f20
xor eax, eax
mov rcx, qword [rbp + 0x3090]
xor rcx, rsp
call fcn.140004550
lea r11, [rsp + 0x31a0]
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], 0
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x62], 0
xor r15d, r15d
mov dword [rbp + 0x2fa0], r15d
mov dword [rbp + 0x2fc8], r15d
mov word [rbp + 0x2fcc], 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
lea r8d, [r15 + 0x20]
mov dl, 2
lea rcx, [rbp + 0x2fc8]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400017ad
lea r8, [rbp + 0x2fa0]
mov rdx, qword [rbp + 0x2f90]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400017a0
mov dword [rbp + 0x2fa0], r15d
mov rcx, qword [rbp + 0x2f90]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x2fa0], r15d
sete sil
mov byte [rsp + 0x60], sil
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 + 0x2ff8]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rbp + 0x2fc8], rax
mov edi, 1
mov dword [rbp + 0x2fa0], edi
movabs rdx, 0x7fffffffffffffff
movabs r13, 0x7ffffffffffffffe
lea r10d, [rdi + 9]
cmp dword [rbp + 0x2ff8], edi
jle 0x140001cce
mov ecx, edi
mov qword [rbp + 0x2f90], rcx
nop word [rax + rax]
mov r12, qword [rax + rcx*8]
xorps xmm0, xmm0
movups xmmword [rbp + 0x3000], xmm0
mov qword [rbp + 0x3010], r15
mov qword [rbp + 0x3018], r15
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [r12 + rsi*2], 0
jne 0x140001863
cmp rsi, r13
ja 0x140002d3e
mov qword [rbp + 0x3018], 7
cmp rsi, 7
ja 0x1400018c8
mov qword [rbp + 0x3010], rsi
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0x3000]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbp + rbx + 0x3000], r15w
mov r14, qword [rbp + 0x3018]
mov rsi, qword [rbp + 0x3010]
mov rbx, qword [rbp + 0x3000]
jmp 0x140001968
mov r14, rsi
or r14, 7
cmp r14, r13
jbe 0x1400018dd
mov r14, r13
lea rcx, [rdx + rdx]
jmp 0x1400018fe
cmp r14, 0xa
cmovb r14, r10
lea rcx, [r14 + 1]
cmp rcx, rdx
ja 0x140002d38
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000192a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002d38
mov rcx, rax
call fcn.140004570
test rax, rax
je 0x14000277b
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000193c
test rcx, rcx
je 0x140001939
call fcn.140004570
mov rbx, rax
jmp 0x14000193c
mov rbx, r15
mov qword [rbp + 0x3000], rbx
mov qword [rbp + 0x3010], rsi
mov qword [rbp + 0x3018], r14
lea rdi, [rsi + rsi]
mov r8, rdi
mov rdx, r12
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + rbx], r15w
lea r8, [rbp + 0x3000]
cmp r14, 7
seta dil
cmova r8, rbx
cmp rsi, 6
jne 0x140001a0c
mov rdx, rsi
lea rax, str.__help
mov rcx, rax
test rsi, rsi
je 0x1400019b4
sub r8, rax
nop word [rax + rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001a0c
add rcx, 2
sub rdx, 1
jne 0x1400019a0
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.140002f20
nop
test dil, dil
je 0x140001a02
lea rdx, [r14*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400019fa
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000277b
mov rcx, rbx
call fcn.1400045b4
mov edi, 3
jmp 0x140002cdc
lea r8, [rbp + 0x3000]
test dil, dil
cmovne r8, rbx
cmp rsi, 5
jne 0x140001a5d
mov rdx, rsi
lea rax, str.__hud
mov rcx, rax
test rsi, rsi
je 0x140001a49
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001a5d
add rcx, 2
sub rdx, 1
jne 0x140001a35
mov byte [rsp + 0x63], 1
mov byte [rsp + 0x61], 1
mov byte [rsp + 0x62], 0
jmp 0x140001c46
lea r8, [rbp + 0x3000]
test dil, dil
cmovne r8, rbx
cmp rsi, 8
jne 0x140001aae
mov rdx, rsi
lea rax, str.__enable
mov rcx, rax
test rsi, rsi
je 0x140001a9a
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001aae
add rcx, 2
sub rdx, 1
jne 0x140001a86
mov byte [rsp + 0x63], 0
mov byte [rsp + 0x61], 1
mov byte [rsp + 0x62], 0
jmp 0x140001c46
lea r8, [rbp + 0x3000]
test dil, dil
cmovne r8, rbx
cmp rsi, 9
jne 0x140001b08
mov rdx, rsi
lea rax, str.__disable
mov rcx, rax
test rsi, rsi
je 0x140001af4
sub r8, rax
nop word [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001b08
add rcx, 2
sub rdx, 1
jne 0x140001ae0
mov byte [rsp + 0x63], 0
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x62], 1
jmp 0x140001c46
lea r8, [rbp + 0x3000]
test dil, dil
cmovne r8, rbx
cmp rsi, 7
jne 0x140001b52
mov rdx, rsi
lea rax, str.__admin
mov rcx, rax
test rsi, rsi
je 0x140001b45
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140001b52
add rcx, 2
sub rdx, 1
jne 0x140001b31
xor sil, sil
mov byte [rsp + 0x60], sil
jmp 0x140001c4b
mov r13, qword [rbp + 0x2fb8]
test r13, r13
je 0x140001bc1
mov rdx, qword [rbp + 0x2fc0]
mov rax, rdx
sub rax, r13
lea rcx, [rbp + 0x2fa8]
cmp rax, 1
jb 0x140001ba2
lea rax, [r13 + 1]
mov qword [rbp + 0x2fb8], rax
cmp rdx, 7
cmova rcx, qword [rbp + 0x2fa8]
mov eax, dword [0x140006638]
mov word [rcx + r13*2], ax
mov word [rcx + r13*2 + 2], r15w
jmp 0x140001bba
mov eax, 1
mov qword [rsp + 0x20], rax
lea r9, [0x140006638]
mov edx, eax
call fcn.140003800
mov r13, qword [rbp + 0x2fb8]
lea r9, [rbp + 0x3000]
test dil, dil
cmovne r9, rbx
mov rcx, qword [rbp + 0x2fc0]
mov rax, rcx
sub rax, r13
cmp rsi, rax
ja 0x140001c1a
lea rax, [rsi + r13]
mov qword [rbp + 0x2fb8], rax
lea rdi, [rbp + 0x2fa8]
cmp rcx, 7
cmova rdi, qword [rbp + 0x2fa8]
lea rcx, [rdi + r13*2]
lea r8, [rsi + rsi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + r13]
mov word [rdi + rax*2], r15w
jmp 0x140001c3c
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rbp + 0x2fa8]
call fcn.140003800
mov r14, qword [rbp + 0x3018]
mov rbx, qword [rbp + 0x3000]
movabs r13, 0x7ffffffffffffffe
movzx esi, byte [rsp + 0x60]
cmp r14, 7
jbe 0x140001c86
lea rdx, [r14*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001c7e
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000277b
mov rcx, rbx
call fcn.1400045b4
mov eax, dword [rbp + 0x2fa0]
inc eax
mov dword [rbp + 0x2fa0], eax
mov rcx, qword [rbp + 0x2f90]
inc rcx
mov qword [rbp + 0x2f90], rcx
cmp eax, dword [rbp + 0x2ff8]
jge 0x140001cc9
mov rax, qword [rbp + 0x2fc8]
movabs rdx, 0x7fffffffffffffff
mov r10d, 0xa
jmp 0x140001840
mov edi, 1
test sil, sil
je 0x140001e57
xorps xmm0, xmm0
movups xmmword [rbp + 0x3020], 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
lea rax, str.84_C0_75___B8_77_FF_FF_FF_E9________
mov qword [rbp + 0x2f90], rax
mov qword [rbp + 0x2f98], 0x24
lea rcx, str.nvapi64.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
movups xmmword [rbp + 0x3020], xmm0
mov qword [rbp + 0x3030], r15
mov qword [rbp + 0x3038], 0xf
mov byte [rbp + 0x3020], 0
movups xmmword [rbp + 0x3040], xmm0
mov qword [rbp + 0x3050], r15
mov qword [rbp + 0x3058], 0xf
mov byte [rbp + 0x3040], 0
movdqa xmmword [rbp + 0x3060], xmm0
mov qword [rbp + 0x3070], r15
mov byte [rbp + 0x3078], 0
mov qword [rbp + 0x3080], rax
mov qword [rbp + 0x3088], r15
movaps xmm0, xmmword [rbp + 0x2f90]
movdqa xmmword [rbp + 0x2f90], xmm0
lea r8, [rbp + 0x3040]
lea rdx, [rbp + 0x3020]
lea rcx, [rbp + 0x2f90]
call fcn.140003df0
nop
mov edx, 0xffffffff
lea rcx, [rbp + 0x3020]
call fcn.140003f70
mov rax, qword [rbp + 0x3068]
sub rax, qword [rbp + 0x3060]
sar rax, 3
cmp rax, 1
jb 0x140001e4b
mov edx, edi
lea rcx, [rbp + 0x3020]
call fcn.140003f70
mov rax, qword [rbp + 0x3060]
mov rbx, qword [rax]
lea r9, [rbp + 0x2fa0]
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 + 0x2fa0]
mov r8d, dword [rbp + 0x2fa0]
mov edx, 5
lea rcx, [rbx + 9]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
lea rcx, [rbp + 0x3020]
call fcn.140001400
cmp qword [rbp + 0x2fb8], 0
jne 0x140001ee0
mov byte [0x140015828], 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.140002f20
lea rdx, [0x140006674]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002f20
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.140002f20
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.140003a40
lea rdx, [0x140006674]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002f20
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.1400030f0
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140003bf0
mov rcx, rax
lea rdx, str...._n
call fcn.1400030f0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x2fc8], xmm0
movups xmmword [rbp + 0x2fd8], xmm0
mov qword [rbp + 0x2fe8], r15
mov qword [rbp + 0x2ff0], r15
mov rsi, qword [rbp + 0x2fb8]
lea r14, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova r14, qword [rbp + 0x2fa8]
cmp rsi, r13
ja 0x140002d44
mov qword [rbp + 0x2ff0], 7
movabs r12, 0x7fffffffffffffff
cmp rsi, 7
ja 0x140001fa1
mov qword [rbp + 0x2fe8], rsi
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0x2fd8], xmm0
jmp 0x140002045
mov rbx, rsi
or rbx, 7
cmp rbx, r13
jbe 0x140001fb6
mov rbx, r13
lea rcx, [r12 + r12]
jmp 0x140001fdc
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, r12
ja 0x140002d32
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000200e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002d32
mov rcx, rax
call fcn.140004570
mov rcx, rax
test rax, rax
je 0x140002007
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000201d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000201a
call fcn.140004570
jmp 0x14000201d
mov rax, r15
mov qword [rbp + 0x2fd8], rax
mov qword [rbp + 0x2fe8], rsi
mov qword [rbp + 0x2ff0], rbx
lea r8, [rsi*2 + 2]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rbp + 0x2fc8]
lea rdx, [rbp + 0x2fd8]
call fcn.140001510
test eax, eax
je 0x14000223c
mov rdx, qword [rbp + 0x2fb8]
test rdx, rdx
je 0x1400021ef
mov r8, qword [rbp + 0x2fc0]
mov rax, r8
sub rax, rdx
lea rcx, [rbp + 0x2fa8]
cmp rax, 4
jb 0x1400020b4
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 0x1400020ce
mov qword [rsp + 0x20], 4
lea r9, str..exe
mov edx, 4
call fcn.140003800
xorps xmm0, xmm0
movups xmmword [rbp + 0x2fd8], xmm0
mov qword [rbp + 0x2fe8], r15
mov qword [rbp + 0x2ff0], r15
mov rbx, qword [rbp + 0x2fb8]
lea rsi, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rsi, qword [rbp + 0x2fa8]
cmp rbx, r13
ja 0x140002d4a
mov qword [rbp + 0x2ff0], 7
cmp rbx, 7
ja 0x140002134
mov qword [rbp + 0x2fe8], rbx
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x2fd8], xmm0
jmp 0x1400021d8
mov rax, rbx
or rax, 7
cmp rax, r13
jbe 0x140002146
lea rcx, [r12 + r12]
jmp 0x14000216f
cmp rax, 0xa
mov ecx, 0xa
cmovb rax, rcx
mov r13, rax
lea rcx, [rax + 1]
cmp rcx, r12
ja 0x140002d2c
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400021a1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002d2c
mov rcx, rax
call fcn.140004570
mov rcx, rax
test rax, rax
je 0x14000219a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400021b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400021ad
call fcn.140004570
jmp 0x1400021b0
mov rax, r15
mov qword [rbp + 0x2fd8], rax
mov qword [rbp + 0x2fe8], rbx
mov qword [rbp + 0x2ff0], r13
lea r8, [rbx*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rbp + 0x2fc8]
lea rdx, [rbp + 0x2fd8]
call fcn.140001510
test eax, eax
je 0x14000223c
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.1400032d0
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140003bf0
mov rcx, rax
lea rdx, str._n__Try_adding_it_in_NVIDIA_Control_Panel__retry._n
call fcn.1400032d0
jmp 0x140002cdc
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.1400030f0
lea rdx, [rbp + 0x2fa8]
cmp qword [rbp + 0x2fc0], 7
cmova rdx, qword [rbp + 0x2fa8]
mov r8, qword [rbp + 0x2fb8]
mov rcx, rax
call fcn.140003bf0
mov rcx, rax
lea rdx, [0x140006764]
call fcn.1400032d0
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 + 0x2fa0], r15d
mov rax, qword [0x140015818]
lea rcx, [rbp + 0x2fa0]
mov qword [rsp + 0x20], rcx
lea r9, [0x14000f100]
mov r8d, 0xdd48fb
mov r12, qword [rbp + 0x2fd0]
mov rdx, r12
mov r13, qword [rbp + 0x2fc8]
mov rcx, r13
call rax
mov ebx, eax
mov dword [rbp + 0x2fc8], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2fc8]
mov qword [rsp + 0x20], rax
lea r9, [0x1400090c0]
mov r8d, 0x432f84
mov rdx, r12
mov rcx, r13
call r10
mov esi, 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, r12
mov rcx, r13
call r10
mov r14d, eax
mov dword [rbp + 0x2fc8], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2fc8]
mov qword [rsp + 0x20], rax
lea r9, [0x14000c0e0]
mov r8d, 0x1077a11a
mov rdx, r12
mov rcx, r13
call r10
test ebx, ebx
jne 0x14000253e
cmp dword [0x14001111c], 1
jne 0x14000253e
mov r8b, 1
jmp 0x140002541
xor r8b, r8b
test esi, esi
jne 0x140002551
cmp dword [0x14000b0dc], esi
je 0x140002551
mov dl, 1
jmp 0x140002553
xor dl, dl
test r14d, r14d
jne 0x140002565
cmp dword [0x14001413c], 1
jne 0x140002565
mov cl, 1
jmp 0x140002567
xor cl, cl
test eax, eax
jne 0x140002578
cmp dword [0x14000e0fc], 1
jne 0x140002578
mov al, 1
jmp 0x14000257a
xor al, al
test r8b, r8b
je 0x140002590
test dl, dl
je 0x140002590
test cl, cl
je 0x140002590
test al, al
je 0x140002590
mov r14b, 1
jmp 0x140002593
xor r14b, r14b
lea rax, str.Enabled
lea rsi, str.Disabled
mov rbx, rsi
test r14b, r14b
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.140002f20
mov rcx, rax
mov rdx, rbx
call fcn.140002f20
mov rcx, rax
lea rdx, [0x1400067c8]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c0]
call fcn.140002f20
lea rcx, str.__HDR_indicator_HUD_enabled_
lea rdx, [0x1400064c1]
cmp dword [0x14000b0dc], 3
cmove rdx, rcx
mov rcx, rax
call fcn.140002f20
mov rcx, rax
lea rdx, [0x140006674]
call fcn.140002f20
cmp byte [0x140015828], 0
je 0x1400027fd
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.140002f20
xorps xmm0, xmm0
movups xmmword [rbp + 0x2fd8], xmm0
mov qword [rbp + 0x2fe8], r15
mov qword [rbp + 0x2ff0], 7
mov word [rbp + 0x2fd8], 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 + 0x2fd8]
mov rcx, rbx
call fcn.140003a40
mov rsi, qword [rbp + 0x2ff0]
mov rbx, qword [rbp + 0x2fd8]
cmp qword [rbp + 0x2fe8], 0
je 0x140002730
lea rcx, [rbp + 0x2fd8]
cmp rsi, 7
seta byte [rsp + 0x60]
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 0x140002782
mov byte [rsp + 0x61], 1
lea rdx, [0x140006674]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002f20
nop
cmp rsi, 7
jbe 0x1400027f6
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400027ee
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400027ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp ax, 0x64
jne 0x14000278f
mov byte [rsp + 0x62], 1
jmp 0x140002730
cmp ax, 0x68
jne 0x1400027a1
mov byte [rsp + 0x61], 1
mov byte [rsp + 0x63], 1
jmp 0x140002730
cmp ax, 0x78
je 0x1400027ad
cmp ax, 0x71
jne 0x140002730
cmp byte [rsp + 0x60], 0
je 0x140002cd9
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400027e1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000277b
mov rcx, rbx
call fcn.1400045b4
jmp 0x140002cd9
mov rcx, rbx
call fcn.1400045b4
lea rsi, str.Disabled
xor r14b, 1
movzx eax, r14b
cmp byte [rsp + 0x61], 0
cmove edi, eax
cmp byte [rsp + 0x62], 0
je 0x140002834
xor al, al
mov dword [0x14001111c], r15d
mov dword [0x14000b0dc], r15d
mov dword [0x14001413c], r15d
mov dword [0x14000e0fc], r15d
jmp 0x14000286f
movzx eax, dil
mov dword [0x14001111c], eax
movzx ecx, dil
add ecx, ecx
mov dword [0x14000b0dc], ecx
mov dword [0x14001413c], eax
mov dword [0x14000e0fc], eax
movzx eax, dil
test dil, dil
je 0x14000286f
cmp byte [rsp + 0x63], 0
je 0x14000286f
or ecx, 1
mov dword [0x14000b0dc], ecx
mov rbx, rsi
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.140002f20
mov rcx, rax
mov rdx, rbx
call fcn.140002f20
mov rcx, rax
lea rdx, [0x1400067c8]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c0]
call fcn.140002f20
lea r14, [0x1400064c1]
mov rdx, r14
cmp dword [0x14000b0dc], 3
lea rcx, str.__HDR_indicator_HUD_enabled_
cmove rdx, rcx
mov rcx, rax
call fcn.140002f20
mov rcx, rax
lea rdx, [0x140006674]
call fcn.140002f20
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, r12
mov rcx, r13
call rax
mov esi, eax
mov r10, qword [0x140015848]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x1400090c0]
mov rdx, r12
mov rcx, r13
call r10
mov ebx, eax
mov r10, qword [0x140015848]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x140012120]
mov rdx, r12
mov rcx, r13
call r10
mov edi, eax
mov r10, qword [0x140015848]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x14000c0e0]
mov rdx, r12
mov rcx, r13
call r10
test esi, esi
jne 0x140002c86
test ebx, ebx
jne 0x140002c8e
test edi, edi
jne 0x140002c96
test eax, eax
jne 0x140002c9e
mov rax, qword [0x140015808]
mov rcx, qword [0x140015850]
call rax
mov ebx, eax
test eax, eax
je 0x140002a63
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.140002f20
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.140002f20
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.140002f20
mov dword [rbp + 0x2fc8], r15d
mov rax, qword [0x140015818]
lea rcx, [rbp + 0x2fc8]
mov qword [rsp + 0x20], rcx
lea r9, [0x14000f100]
mov r8d, 0xdd48fb
mov rdx, r12
mov rcx, r13
call rax
mov ebx, eax
mov dword [rbp + 0x2fa0], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2fa0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400090c0]
mov r8d, 0x432f84
mov rdx, r12
mov rcx, r13
call r10
mov edi, eax
mov dword [rbp + 0x2fc8], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2fc8]
mov qword [rsp + 0x20], rax
lea r9, [0x140012120]
mov r8d, 0x980896
mov rdx, r12
mov rcx, r13
call r10
mov esi, eax
mov dword [rbp + 0x2fa0], r15d
mov r10, qword [0x140015818]
lea rax, [rbp + 0x2fa0]
mov qword [rsp + 0x20], rax
lea r9, [0x14000c0e0]
mov r8d, 0x1077a11a
mov rdx, r12
mov rcx, r13
call r10
test ebx, ebx
jne 0x140002b4d
cmp dword [0x14001111c], 1
jne 0x140002b4d
mov r8b, 1
jmp 0x140002b50
xor r8b, r8b
test edi, edi
jne 0x140002b60
cmp dword [0x14000b0dc], edi
je 0x140002b60
mov dl, 1
jmp 0x140002b62
xor dl, dl
test esi, esi
jne 0x140002b73
cmp dword [0x14001413c], 1
jne 0x140002b73
mov cl, 1
jmp 0x140002b75
xor cl, cl
test eax, eax
jne 0x140002b86
cmp dword [0x14000e0fc], 1
jne 0x140002b86
mov al, 1
jmp 0x140002b88
xor al, al
test r8b, r8b
je 0x140002b9d
test dl, dl
je 0x140002b9d
test cl, cl
je 0x140002b9d
test al, al
je 0x140002b9d
mov al, 1
jmp 0x140002b9f
xor al, al
test al, al
lea rbx, str.Disabled
lea rax, str.Enabled
cmovne rbx, 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.140002f20
mov rcx, rax
mov rdx, rbx
call fcn.140002f20
mov rcx, rax
lea rdx, [0x1400067c8]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c4]
call fcn.140002f20
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, [0x1400067c0]
call fcn.140002f20
cmp dword [0x14000b0dc], 3
lea rcx, str.__HDR_indicator_HUD_enabled_
cmove r14, rcx
mov rdx, r14
mov rcx, rax
call fcn.140002f20
mov rcx, rax
lea rdx, [0x140006674]
call fcn.140002f20
jmp 0x140002cd9
cmp esi, 0xffffff77
je 0x140002cc0
cmp ebx, 0xffffff77
je 0x140002cc0
cmp edi, 0xffffff77
je 0x140002cc0
cmp eax, 0xffffff77
je 0x140002cc0
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.140002f20
mov r15d, 2
jmp 0x140002cd9
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.140002f20
mov r15d, 3
mov edi, r15d
mov rdx, qword [rbp + 0x2fc0]
cmp rdx, 7
jbe 0x140002d25
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2fa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400045b4
mov eax, edi
jmp 0x1400016df
call fcn.140001280
int3
call fcn.140001280
int3
call fcn.140001280
int3
call fcn.140001320
int3
call fcn.140001320
int3
call fcn.140001320
int3