Function at 0x1400200a0
Capabilities:
Check if file exists
Copy file
Delete registry key
Get common file path
Get file attributes
Persist via application shimming

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rcx, qword [0x140067de8]
lea rdx, [0x140052ce8]
mov rsi, r8
mov ebx, 1
call fcn.140020b50
mov edx, 0x104
mov rcx, rsi
call fcn.1400235b4
mov rcx, rsi
lea rdx, [rax + 1]
call fcn.140023bf0
mov rcx, qword [0x140067de8]
lea rdx, str.Command_line_passed_in:__s_n
mov r8, rsi
call fcn.1400208e0
lea rdx, str._init
mov rcx, rsi
call fcn.140023750
test rax, rax
jne 0x14002045d
lea rdx, str._setoemkeys
mov rcx, rsi
call fcn.140023750
test rax, rax
jne 0x14002045d
lea rdx, str._uninstall
mov rcx, rsi
call fcn.140023750
test rax, rax
je 0x14002023b
mov rcx, qword [0x140067de8]
lea rdx, str.Running_in_uninstall_mode..._n
call fcn.1400208e0
lea rcx, [rsp + 0x60]
call fcn.14001ab60
lea rcx, [rsp + 0x60]
call fcn.14001cce0
cmp eax, ebx
jbe 0x14002018f
mov rcx, qword [0x140067de8]
lea rdx, str.WARNING:_Failed_to_remove_the_NvDrsDb_from_the_system__n
call fcn.1400208e0
mov rcx, qword [0x140067de8]
lea r8, str.SOFTWARENVIDIA_CorporationGlobal
lea rdx, str.Opening_the_reg_path___s__n
call fcn.1400208e0
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobal
mov r9d, 0x102
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020817
mov rcx, qword [0x140067de8]
lea r8, str.SOFTWARENVIDIA_CorporationGlobal
lea rdx, str.Deleting_DRS_Path_Keys_from___s__n
call fcn.1400208e0
mov rcx, qword [rsp + 0x30]
lea rdx, str.DrsPath
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14002022b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140067de8]
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
lea rdx, str.WARNING:_Failed_to_delete___s___err:_d___n
mov r9d, eax
call fcn.1400208e0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140020817
lea rdx, str._update
mov rcx, rsi
call fcn.140023750
test rax, rax
je 0x140020440
lea rdx, str._update
mov rcx, rsi
call fcn.140023750
lea rcx, [rsp + 0x60]
lea rdi, [rax + 0x10]
call fcn.14001ab60
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.14001df90
lea rcx, [rsp + 0x60]
call fcn.14001c760
cmp eax, ebx
jbe 0x1400202af
mov rcx, qword [0x140067de8]
lea rdx, str.System_settings_could_not_be_loaded__n
xor ebx, ebx
call fcn.1400208e0
lea rcx, [rsp + 0x48]
call fcn.14001e770
jmp 0x140020817
call fcn.14001f1d0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
movzx r9d, al
movzx r8d, bl
call fcn.14001c510
cmp eax, ebx
jbe 0x14002035b
cmp eax, 0x12
jne 0x1400202fd
mov rcx, qword [0x140067de8]
lea rdx, str.The_update_file_was_too_old_and_was_not_applied_n
lea ebx, [rax - 0xf]
call fcn.1400208e0
lea rcx, [rsp + 0x48]
call fcn.14001e770
jmp 0x140020817
cmp eax, 0x10
jne 0x14002032a
mov rcx, qword [0x140067de8]
lea rdx, str.The_update_file_could_not_be_found:__s_n
mov r8, rdi
lea ebx, [rax - 0xe]
call fcn.1400208e0
lea rcx, [rsp + 0x48]
call fcn.14001e770
jmp 0x140020817
cmp eax, 0x15
jne 0x140020431
mov rcx, qword [0x140067de8]
lea rdx, str.The_update_file_belongs_to_another_release_branch:__s_n
mov r8, rdi
lea ebx, [rax - 0x11]
call fcn.1400208e0
lea rcx, [rsp + 0x48]
call fcn.14001e770
jmp 0x140020817
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14001d7d0
cmp eax, ebx
jbe 0x14002038f
mov rcx, qword [0x140067de8]
lea rdx, str.Update_could_not_be_saved_on_the_system__n
xor ebx, ebx
call fcn.1400208e0
lea rcx, [rsp + 0x48]
call fcn.14001e770
jmp 0x140020817
lea rcx, [rbp + 0x50]
call fcn.14001ab60
lea rcx, [rsp + 0x38]
call fcn.14001e040
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x50]
call fcn.14001f020
cmp eax, ebx
jne 0x14002041e
lea rdx, [0x14004f64c]
lea rcx, [rsp + 0x38]
call fcn.14001e660
lea rdx, str.update.bin
lea rcx, [rsp + 0x38]
call fcn.14001e660
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14002040b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140067de8]
lea rdx, str.Update_Could_not_be_copied__GetLastError:__08x_n
mov r8d, eax
call fcn.1400208e0
jmp 0x14002041e
mov rcx, qword [0x140067de8]
lea rdx, str.Update_File_copied_successfully_n
call fcn.1400208e0
lea rcx, [rsp + 0x38]
call fcn.14001e770
lea rcx, [rbp + 0x50]
call fcn.14001ad50
lea rcx, [rsp + 0x48]
call fcn.14001e770
jmp 0x140020817
mov rcx, qword [0x140067de8]
lea rdx, str.Invalid_Command__:__s_n
mov r8, rsi
call fcn.1400208e0
xor ebx, ebx
jmp 0x140020821
mov rcx, qword [0x140067de8]
lea rdx, str.Running_in_install_mode..._n
call fcn.1400208e0
lea rdx, str._init
mov rcx, rsi
call fcn.140023750
test rax, rax
je 0x140020777
lea rcx, [rsp + 0x60]
call fcn.14001ab60
lea rcx, [rsp + 0x48]
call fcn.14001e040
lea rcx, [rsp + 0x38]
call fcn.14001e040
mov rcx, qword [0x140067de8]
lea rdx, str.Running__init_mode._n
call fcn.1400208e0
mov rcx, qword [0x140067de8]
lea r8, str.nvdrsdb.bin
lea rdx, str.Checking_if_the_file___s__exists._n
call fcn.1400208e0
lea r9, [rsp + 0x30]
lea rcx, [0x1400549f0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x30], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002050e
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14001e1e0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.14001e090
lea rdx, str.NVIDIA_CorporationDrs_nvdrsdb.bin
lea rcx, [rsp + 0x38]
call fcn.14001e660
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140020736
mov rcx, qword [rsp + 0x48]
call fcn.14001fee0
mov rcx, qword [0x140067de8]
lea rdx, str.WARNING:_The_NVDRS_GOLD_PATH_has_not_been_set__n
test eax, eax
je 0x14002056b
lea rdx, str.The_NVDRS_GOLD_PATH_has_been_set_successfully._n
call fcn.1400208e0
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x140067de8]
lea rdx, str.__s__exists._Loading_the_Db._n
call fcn.1400208e0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
call fcn.14001c510
mov rcx, qword [0x140067de8]
cmp eax, ebx
jbe 0x1400205b8
lea rdx, str.ERROR:_The_NvDrsDb_has_encountered_problems_loading____n
call fcn.1400208e0
xor ebx, ebx
jmp 0x1400205c4
lea rdx, str.The_NvDrsDb_has_been_loaded_successfully._n
call fcn.1400208e0
lea rcx, [rsp + 0x60]
call fcn.14001ea90
test eax, eax
jne 0x1400205ea
mov rcx, qword [0x140067de8]
lea rdx, str.ERROR:_CreateDrsFolder_has_encountered_problems_in_creating_Drs_folder____n
call fcn.1400208e0
jmp 0x14002074e
cmp ebx, 1
jne 0x140020750
call fcn.14001f510
mov rcx, qword [0x140067de8]
lea rdx, str.SetLDDMRegistry_returned__d_n
mov r8d, eax
mov ebx, eax
call fcn.1400208e0
cmp ebx, 1
jne 0x140020750
mov rcx, qword [0x140067de8]
lea rdx, str.Starting_the_process_to_save_the_DRS_database_to_system_n
mov qword [rsp + 0x250], r15
call fcn.1400208e0
mov rcx, 0xffffffffffffffff
mov eax, 4
mov r15d, 0x3c
mul r15
cmovo rax, rcx
mov rcx, rax
call fcn.1400223e8
lea r8, [0x140066260]
mov rdi, rax
mov rdx, rax
sub r8, rax
mov eax, 0xf
nop word [rax + rax]
mov ecx, dword [r8 + rdx]
lea rdx, [rdx + 4]
mov dword [rdx - 4], ecx
dec rax
jne 0x140020670
xor edx, edx
lea r8, [0x1400662a0]
nop dword [rax]
mov eax, dword [r8]
lea ecx, [rdx + 0xf]
inc edx
lea r8, [r8 + 4]
mov dword [rdi + rcx*4], eax
cmp edx, 0x21
jb 0x140020690
lea r10d, [rdx + 0xf]
lea r9, [0x140066328]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r9]
lea ecx, [rdx + r10]
inc edx
lea r9, [r9 + 4]
mov dword [rdi + rcx*4], eax
cmp edx, 0xc
jb 0x1400206c0
lea rcx, [rsp + 0x60]
mov r8d, r15d
mov rdx, rdi
call fcn.14001da20
mov r15, qword [rsp + 0x250]
cmp eax, 1
jbe 0x1400206fd
xor ebx, ebx
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_created____n
jmp 0x140020720
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14001d7d0
cmp eax, 1
jbe 0x140020719
xor ebx, ebx
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_created____n
jmp 0x140020720
lea rdx, str.The_System_NvDrsDB_has_been_created_successfully._n
mov rcx, qword [0x140067de8]
call fcn.1400208e0
mov rcx, rdi
call fcn.140022490
jmp 0x140020750
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x140067de8]
lea rdx, str.ERROR:___s__does_not_exist._Terminating_install_now____n
call fcn.1400208e0
xor ebx, ebx
lea rcx, [rsp + 0x38]
call fcn.14001e770
lea rcx, [rsp + 0x48]
call fcn.14001e770
lea rcx, [rsp + 0x60]
call fcn.14001ad50
cmp ebx, 1
jne 0x140020821
lea rdx, str._setoemkeys
mov rcx, rsi
call fcn.140023750
test rax, rax
je 0x140020821
mov rcx, qword [0x140067de8]
lea rdx, str.Running__setOEMkeys_mode._n
call fcn.1400208e0
lea rcx, [rsp + 0x60]
call fcn.14001ab60
lea rcx, [rsp + 0x60]
call fcn.14001c760
cmp eax, 1
jbe 0x1400207c6
xor ebx, ebx
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_loaded_to_apply_the_OEM_customization____n
jmp 0x14002080b
lea rcx, [rsp + 0x60]
call fcn.14001f730
cmp eax, 1
jne 0x1400207ff
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14001d7d0
mov rcx, qword [0x140067de8]
cmp eax, 1
jbe 0x1400207f6
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_saved_appling_the_OEM_customization____n
jmp 0x140020812
lea rdx, str.The_OEM_customizations_have_been_applied_successfully._n
jmp 0x140020812
cmp eax, 5
je 0x140020817
lea rdx, str.ERROR:_Failure_in_SetOEMCustomization_operation__n
mov rcx, qword [0x140067de8]
call fcn.1400208e0
lea rcx, [rsp + 0x60]
call fcn.14001ad50
mov rcx, qword [0x140067de8]
call fcn.140020ae0
mov rcx, qword [0x140067de8]
call fcn.140022490
lea r11, [rsp + 0x240]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov qword [0x140067de8], 0
mov rsp, r11
pop rbp
ret