Function at 0x140001340
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 - 0x37]
sub rsp, 0xe0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor esi, esi
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.140001c70
cmp dword [0x1400077b8], esi
je 0x1400013a9
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.140001c70
xor eax, eax
jmp 0x140001a6d
mov dword [rbp + 0xb], esi
mov dword [rbp - 0x21], esi
mov word [rbp - 0x1d], 0x500
lea rax, [rbp - 0x29]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001413
lea r8, [rbp + 0xb]
mov rdx, qword [rbp - 0x29]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140001409
mov dword [rbp + 0xb], esi
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 7
mov word [rbp - 0x19], si
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rbp + 7]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rbp - 0x29], rax
mov r12d, 1
mov r13d, r12d
cmp dword [rbp + 7], r12d
jle 0x140001877
mov edi, r12d
mov qword [rbp - 0x21], r12
nop dword [rax + rax]
mov rdx, qword [rax + rdi*8]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], rsi
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140001480
lea rcx, [rbp + 0xf]
call fcn.140002020
nop
lea r8, [rbp + 0xf]
mov r15, qword [rbp + 0x27]
cmp r15, 7
seta bl
mov r14, qword [rbp + 0xf]
cmova r8, r14
mov rsi, qword [rbp + 0x1f]
cmp rsi, 6
jne 0x14000153c
mov rdx, rsi
lea rax, str.__help
mov rcx, rax
test rsi, rsi
je 0x1400014e4
sub r8, rax
nop
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000153c
add rcx, 2
sub rdx, 1
jne 0x1400014d0
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.140001c70
nop
test bl, bl
je 0x140001531
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001529
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019ce
mov rcx, r14
call fcn.140002954
mov r12d, 3
jmp 0x140001a27
lea r8, [rbp + 0xf]
test bl, bl
cmovne r8, r14
cmp rsi, 5
jne 0x14000157e
mov rdx, rsi
lea rax, str.__hud
mov rcx, rax
test rsi, rsi
je 0x140001821
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14000157e
add rcx, 2
sub rdx, 1
jne 0x140001565
jmp 0x140001821
lea r8, [rbp + 0xf]
test bl, bl
cmovne r8, r14
cmp rsi, 8
jne 0x1400015c9
mov rdx, rsi
lea rax, str.__enable
mov rcx, rax
test rsi, rsi
je 0x140001821
sub r8, rax
nop word [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x1400015c9
add rcx, 2
sub rdx, 1
jne 0x1400015b0
jmp 0x140001821
lea r8, [rbp + 0xf]
test bl, bl
cmovne r8, r14
cmp rsi, 6
jne 0x14000160b
mov rdx, rsi
lea rax, str.__high
mov rcx, rax
test rsi, rsi
je 0x140001821
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14000160b
add rcx, 2
sub rdx, 1
jne 0x1400015f2
jmp 0x140001821
lea r8, [rbp + 0xf]
test bl, bl
cmovne r8, r14
cmp rsi, 0xa
jne 0x14000164d
mov rdx, rsi
lea rax, str.__veryhigh
mov rcx, rax
test rsi, rsi
je 0x140001821
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14000164d
add rcx, 2
sub rdx, 1
jne 0x140001634
jmp 0x140001821
lea r8, [rbp + 0xf]
test bl, bl
cmovne r8, r14
cmp rsi, 8
jne 0x14000168f
mov rdx, rsi
lea rax, str.__medium
mov rcx, rax
test rsi, rsi
je 0x140001821
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14000168f
add rcx, 2
sub rdx, 1
jne 0x140001676
jmp 0x140001821
lea r8, [rbp + 0xf]
test bl, bl
cmovne r8, r14
cmp rsi, 5
jne 0x1400016d9
mov rdx, rsi
lea rax, str.__low
mov rcx, rax
test rsi, rsi
je 0x140001821
sub r8, rax
nop dword [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x1400016d9
add rcx, 2
sub rdx, 1
jne 0x1400016c0
jmp 0x140001821
lea r8, [rbp + 0xf]
test bl, bl
cmovne r8, r14
cmp rsi, 9
jne 0x14000171b
mov rdx, rsi
lea rax, str.__disable
mov rcx, rax
test rsi, rsi
je 0x140001821
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000171b
add rcx, 2
sub rdx, 1
jne 0x140001702
jmp 0x140001821
lea r8, [rbp + 0xf]
test bl, bl
cmovne r8, r14
cmp rsi, 7
jne 0x14000175d
mov rdx, rsi
lea rax, str.__admin
mov rcx, rax
test rsi, rsi
je 0x140001821
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000175d
add rcx, 2
sub rdx, 1
jne 0x140001744
jmp 0x140001821
mov rdi, qword [rbp - 9]
test rdi, rdi
je 0x1400017b6
mov rdx, qword [rbp - 1]
mov rax, rdx
sub rax, rdi
lea rcx, [rbp - 0x19]
cmp rax, 1
jb 0x14000179e
lea rax, [rdi + 1]
mov qword [rbp - 9], rax
cmp rdx, 7
cmova rcx, qword [rbp - 0x19]
mov eax, dword [0x1400045f8]
mov word [rcx + rdi*2], ax
xor eax, eax
mov word [rcx + rdi*2 + 2], ax
jmp 0x1400017b2
mov qword [rsp + 0x20], r12
lea r9, [0x1400045f8]
mov rdx, r12
call fcn.140002310
mov rdi, qword [rbp - 9]
lea r9, [rbp + 0xf]
test bl, bl
cmovne r9, r14
mov rcx, qword [rbp - 1]
mov rax, rcx
sub rax, rdi
cmp rsi, rax
ja 0x140001804
lea rax, [rsi + rdi]
mov qword [rbp - 9], rax
lea rbx, [rbp - 0x19]
cmp rcx, 7
cmova rbx, qword [rbp - 0x19]
lea rcx, [rbx + rdi*2]
lea r8, [rsi + rsi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rdi]
xor esi, esi
mov word [rbx + rax*2], si
mov rdi, qword [rbp - 0x21]
jmp 0x140001823
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140002310
mov r15, qword [rbp + 0x27]
mov r14, qword [rbp + 0xf]
mov rdi, qword [rbp - 0x21]
xor esi, esi
cmp r15, 7
jbe 0x14000185e
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001856
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019ce
mov rcx, r14
call fcn.140002954
inc r13d
inc rdi
mov qword [rbp - 0x21], rdi
cmp r13d, dword [rbp + 7]
jge 0x140001877
mov rax, qword [rbp - 0x29]
jmp 0x140001460
mov rdx, qword [rbp - 9]
test rdx, rdx
jne 0x140001921
mov byte [0x140007778], 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.140001c70
lea rdx, [0x1400045fc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001c70
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.140001c70
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 - 0x19]
mov rcx, rbx
call fcn.140002530
lea rdx, [0x1400045fc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001c70
mov rdx, qword [rbp - 9]
test rdx, rdx
jne 0x140001921
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.140001c70
jmp 0x140001a27
cmp rdx, 1
jbe 0x1400019ea
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 7
seta r10b
mov r9, qword [rbp - 0x19]
cmova rcx, r9
cmp word [rcx], 0x22
jne 0x1400019ea
lea rax, [rbp - 0x19]
test r10b, r10b
cmovne rax, r9
cmp word [rax + rdx*2 - 2], 0x22
jne 0x1400019ea
lea r8, [rdx - 2]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], rsi
lea rax, [rdx - 1]
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp - 0x19]
test r10b, r10b
cmovne rdx, r9
add rdx, 2
lea rcx, [rbp - 0x49]
call fcn.140002020
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x1400019da
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002954
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbp - 0x39]
movups xmmword [rbp - 9], 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.140001e40
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
mov rcx, rax
call fcn.1400026e0
mov rcx, rax
lea rdx, str...._n
call fcn.140001e40
nop
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x140001a6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a65
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002954
mov eax, r12d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400028f0
lea r11, [rsp + 0xe0]
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