Function at 0x140014c00
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 + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rcx, qword [0x140036bc0]
lea rdx, [0x14002df88]
mov rdi, r8
mov ebx, 1
call fcn.140015cb0
mov edx, 0x104
mov rcx, rdi
call fcn.140017f20
mov rcx, rdi
lea rdx, [rax + 1]
call fcn.140017f18
mov rcx, qword [0x140036bc0]
lea rdx, str.Command_line_passed_in:__s_n
mov r8, rdi
call fcn.140015980
lea rdx, str._init
mov rcx, rdi
call fcn.14001783c
xor r12d, r12d
test rax, rax
jne 0x140014fa1
lea rdx, str._setoemkeys
mov rcx, rdi
call fcn.14001783c
test rax, rax
jne 0x140014fa1
lea rdx, str._uninstall
mov rcx, rdi
call fcn.14001783c
test rax, rax
je 0x140014da2
mov rcx, qword [0x140036bc0]
lea rdx, str.Running_in_uninstall_mode..._n
call fcn.140015980
lea rcx, [rsp + 0x60]
call fcn.140011820
lea rcx, [rsp + 0x60]
call fcn.140010b70
test eax, eax
je 0x140014cf6
cmp eax, ebx
je 0x140014cf6
mov rcx, qword [0x140036bc0]
lea rdx, str.WARNING:_Failed_to_remove_the_NvDrsDb_from_the_system__n
call fcn.140015980
mov rcx, qword [0x140036bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobal
lea rdx, str.Opening_the_reg_path___s__n
call fcn.140015980
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobal
mov r9d, 0x102
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001536a
mov rcx, qword [0x140036bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobal
lea rdx, str.Deleting_DRS_Path_Keys_from___s__n
call fcn.140015980
mov rcx, qword [rsp + 0x40]
lea rdx, str.DrsPath
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140014d92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140036bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
lea rdx, str.WARNING:_Failed_to_delete___s___err:_d___n
mov r9d, eax
call fcn.140015980
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001536a
lea rdx, str._update
mov rcx, rdi
call fcn.14001783c
test rax, rax
je 0x140014f83
lea rdx, str._update
mov rcx, rdi
call fcn.14001783c
lea rcx, [rsp + 0x60]
mov rdi, rax
call fcn.140011820
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140012de0
lea rcx, [rsp + 0x60]
call fcn.140012910
test eax, eax
je 0x140014e1b
cmp eax, ebx
je 0x140014e1b
mov rcx, qword [0x140036bc0]
lea rdx, str.System_settings_could_not_be_loaded__n
mov ebx, r12d
call fcn.140015980
lea rcx, [rsp + 0x48]
call fcn.140013000
jmp 0x14001536a
call fcn.140014120
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
movzx r9d, al
movzx r8d, bl
call fcn.140012ab0
test eax, eax
je 0x140014e9b
cmp eax, ebx
je 0x140014e9b
cmp eax, 0x12
jne 0x140014e69
mov rcx, qword [0x140036bc0]
lea rdx, str.The_update_file_was_too_old_and_was_not_applied_n
lea ebx, [rax - 0xf]
call fcn.140015980
lea rcx, [rsp + 0x48]
call fcn.140013000
jmp 0x14001536a
cmp eax, 0x10
jne 0x140014f74
mov rcx, qword [0x140036bc0]
lea r8, [rdi + 0x10]
lea rdx, str.The_update_file_could_not_be_found:__s_n
lea ebx, [rax - 0xe]
call fcn.140015980
lea rcx, [rsp + 0x48]
call fcn.140013000
jmp 0x14001536a
lea rcx, [rsp + 0x60]
call fcn.140012c20
test eax, eax
je 0x140014ed2
cmp eax, ebx
je 0x140014ed2
mov rcx, qword [0x140036bc0]
lea rdx, str.Update_could_not_be_saved_on_the_system__n
mov ebx, r12d
call fcn.140015980
lea rcx, [rsp + 0x48]
call fcn.140013000
jmp 0x14001536a
lea rcx, [rbp + 0x30]
call fcn.140011820
lea rcx, [rsp + 0x30]
call fcn.140012dd0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.1400143d0
cmp eax, ebx
jne 0x140014f61
lea rdx, [0x14002c808]
lea rcx, [rsp + 0x30]
call fcn.140013330
lea rdx, str.update.bin
lea rcx, [rsp + 0x30]
call fcn.140013330
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140014f4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140036bc0]
lea rdx, str.Update_Could_not_be_copied__GetLastError:__08x_n
mov r8d, eax
call fcn.140015980
jmp 0x140014f61
mov rcx, qword [0x140036bc0]
lea rdx, str.Update_File_copied_successfully_n
call fcn.140015980
lea rcx, [rsp + 0x30]
call fcn.140013000
lea rcx, [rbp + 0x30]
call fcn.1400118f0
lea rcx, [rsp + 0x48]
call fcn.140013000
jmp 0x14001536a
mov rcx, qword [0x140036bc0]
lea rdx, str.Invalid_Command__:__s_n
mov r8, rdi
call fcn.140015980
mov ebx, r12d
jmp 0x140015374
mov rcx, qword [0x140036bc0]
lea rdx, str.Running_in_install_mode..._n
call fcn.140015980
lea rdx, str._init
mov rcx, rdi
call fcn.14001783c
test rax, rax
je 0x1400152ca
movss xmm1, dword [0x14002b1c4]
movss xmm0, dword [0x14002b1c0]
lea rax, [rbp - 0x78]
or rax, rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x60], r12
movss dword [rbp - 0x60], xmm1
movss dword [rbp - 0x5c], xmm0
movss dword [rbp + 0x28], xmm1
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x80]
mov dword [rsp + 0x68], r12d
movss dword [rbp + 0x2c], xmm0
or rax, 2
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x70], 0xffffffff
mov dword [rbp - 0x6c], 5
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x50], r12d
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov byte [rbp - 0x30], r12b
mov qword [rbp - 0x28], r12
mov word [rbp - 0x20], 0x100
mov byte [rbp - 0x1e], r12b
mov qword [rbp - 0x18], r12
mov qword [rbp - 8], r12
mov dword [rbp + 0x10], 0xffffffff
mov dword [rbp + 0x14], 5
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], r12
mov qword [rbp], r12
mov qword [rbp + 8], 0xfffffffffffffff4
call fcn.140012dd0
lea rcx, [rsp + 0x30]
call fcn.140012dd0
mov rcx, qword [0x140036bc0]
lea rdx, str.Running__init_mode._n
call fcn.140015980
mov rcx, qword [0x140036bc0]
lea r8, str.nvdrsdb.bin
lea rdx, str.Checking_if_the_file___s__exists._n
call fcn.140015980
lea r9, [rsp + 0x40]
lea rcx, [0x14002e268]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x40], r12
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400150f0
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400130b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140013030
lea rdx, str.NVIDIA_CorporationDrs_nvdrsdb.bin
lea rcx, [rsp + 0x30]
call fcn.140013330
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140015288
mov rcx, qword [rsp + 0x48]
call fcn.140014a70
mov rcx, qword [0x140036bc0]
lea rdx, str.WARNING:_The_NVDRS_GOLD_PATH_has_not_been_set__n
test eax, eax
je 0x14001514d
lea rdx, str.The_NVDRS_GOLD_PATH_has_been_set_successfully._n
call fcn.140015980
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x140036bc0]
lea rdx, str.__s__exists._Loading_the_Db._n
call fcn.140015980
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
call fcn.140012ab0
test eax, eax
je 0x14001519f
cmp eax, ebx
je 0x14001519f
mov rcx, qword [0x140036bc0]
lea rdx, str.ERROR:_The_NvDrsDb_has_encountered_problems_loading____n
call fcn.140015980
mov ebx, r12d
jmp 0x1400151b2
mov rcx, qword [0x140036bc0]
lea rdx, str.The_NvDrsDb_has_been_loaded_successfully._n
call fcn.140015980
lea rcx, [rsp + 0x60]
call fcn.140014590
test eax, eax
jne 0x1400151d8
mov rcx, qword [0x140036bc0]
lea rdx, str.ERROR:_CreateDrsFolder_has_encountered_problems_in_creating_Drs_folder____n
call fcn.140015980
jmp 0x1400152a0
cmp ebx, 1
jne 0x1400152a3
call fcn.140013f10
mov rcx, qword [0x140036bc0]
lea rdx, str.SetLDDMRegistry_returned__d_n
mov r8d, eax
mov ebx, eax
call fcn.140015980
cmp ebx, 1
jne 0x1400152a3
mov rcx, qword [0x140036bc0]
lea rdx, str.Starting_the_process_to_save_the_DRS_database_to_system_n
call fcn.140015980
lea rcx, [rsp + 0x58]
call fcn.1400135d0
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.1400114e0
test eax, eax
je 0x14001524a
cmp eax, ebx
je 0x14001524a
mov ebx, r12d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_created____n
jmp 0x140015270
lea rcx, [rsp + 0x60]
call fcn.140012c20
test eax, eax
je 0x140015269
cmp eax, 1
je 0x140015269
mov ebx, r12d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_created____n
jmp 0x140015270
lea rdx, str.The_System_NvDrsDB_has_been_created_successfully._n
mov rcx, qword [0x140036bc0]
call fcn.140015980
mov rcx, qword [rsp + 0x58]
call fcn.140016fa0
jmp 0x1400152a3
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x140036bc0]
lea rdx, str.ERROR:___s__does_not_exist._Terminating_install_now____n
call fcn.140015980
mov ebx, r12d
lea rcx, [rsp + 0x30]
call fcn.140013000
lea rcx, [rsp + 0x48]
call fcn.140013000
lea rcx, [rsp + 0x60]
call fcn.1400118f0
cmp ebx, 1
jne 0x140015374
lea rdx, str._setoemkeys
mov rcx, rdi
call fcn.14001783c
test rax, rax
je 0x140015374
mov rcx, qword [0x140036bc0]
lea rdx, str.Running__setOEMkeys_mode._n
call fcn.140015980
lea rcx, [rsp + 0x60]
call fcn.140011820
lea rcx, [rsp + 0x60]
call fcn.140012910
test eax, eax
je 0x14001531e
cmp eax, 1
je 0x14001531e
mov ebx, r12d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_loaded_to_apply_the_OEM_customization____n
jmp 0x14001535e
lea rcx, [rsp + 0x60]
call fcn.1400136a0
cmp eax, 1
jne 0x140015352
lea rcx, [rsp + 0x60]
call fcn.140012c20
test eax, eax
je 0x140015349
cmp eax, 1
je 0x140015349
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_saved_appling_the_OEM_customization____n
jmp 0x14001535e
lea rdx, str.The_OEM_customizations_have_been_applied_successfully._n
jmp 0x14001535e
cmp eax, 4
je 0x14001536a
lea rdx, str.ERROR:_Failure_in_SetOEMCustomization_operation__n
mov rcx, qword [0x140036bc0]
call fcn.140015980
lea rcx, [rsp + 0x60]
call fcn.1400118f0
mov rcx, qword [0x140036bc0]
call fcn.140015910
mov rcx, qword [0x140036bc0]
call fcn.140016fa0
lea r11, [rsp + 0x200]
mov qword [0x140036bc0], r12
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop rbp
ret