Function at 0x140015c00
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 [0x140037bc0]
lea rdx, [0x14002ef88]
mov rdi, r8
mov ebx, 1
call fcn.140016cb0
mov edx, 0x104
mov rcx, rdi
call fcn.140018f20
mov rcx, rdi
lea rdx, [rax + 1]
call fcn.140018f18
mov rcx, qword [0x140037bc0]
lea rdx, str.Command_line_passed_in:__s_n
mov r8, rdi
call fcn.140016980
lea rdx, str._init
mov rcx, rdi
call fcn.14001883c
xor r12d, r12d
test rax, rax
jne 0x140015fa1
lea rdx, str._setoemkeys
mov rcx, rdi
call fcn.14001883c
test rax, rax
jne 0x140015fa1
lea rdx, str._uninstall
mov rcx, rdi
call fcn.14001883c
test rax, rax
je 0x140015da2
mov rcx, qword [0x140037bc0]
lea rdx, str.Running_in_uninstall_mode..._n
call fcn.140016980
lea rcx, [rsp + 0x60]
call fcn.140012820
lea rcx, [rsp + 0x60]
call fcn.140011b70
test eax, eax
je 0x140015cf6
cmp eax, ebx
je 0x140015cf6
mov rcx, qword [0x140037bc0]
lea rdx, str.WARNING:_Failed_to_remove_the_NvDrsDb_from_the_system__n
call fcn.140016980
mov rcx, qword [0x140037bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobal
lea rdx, str.Opening_the_reg_path___s__n
call fcn.140016980
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 0x14001636a
mov rcx, qword [0x140037bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobal
lea rdx, str.Deleting_DRS_Path_Keys_from___s__n
call fcn.140016980
mov rcx, qword [rsp + 0x40]
lea rdx, str.DrsPath
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140015d92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140037bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
lea rdx, str.WARNING:_Failed_to_delete___s___err:_d___n
mov r9d, eax
call fcn.140016980
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001636a
lea rdx, str._update
mov rcx, rdi
call fcn.14001883c
test rax, rax
je 0x140015f83
lea rdx, str._update
mov rcx, rdi
call fcn.14001883c
lea rcx, [rsp + 0x60]
mov rdi, rax
call fcn.140012820
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140013de0
lea rcx, [rsp + 0x60]
call fcn.140013910
test eax, eax
je 0x140015e1b
cmp eax, ebx
je 0x140015e1b
mov rcx, qword [0x140037bc0]
lea rdx, str.System_settings_could_not_be_loaded__n
mov ebx, r12d
call fcn.140016980
lea rcx, [rsp + 0x48]
call fcn.140014000
jmp 0x14001636a
call fcn.140015120
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
movzx r9d, al
movzx r8d, bl
call fcn.140013ab0
test eax, eax
je 0x140015e9b
cmp eax, ebx
je 0x140015e9b
cmp eax, 0x12
jne 0x140015e69
mov rcx, qword [0x140037bc0]
lea rdx, str.The_update_file_was_too_old_and_was_not_applied_n
lea ebx, [rax - 0xf]
call fcn.140016980
lea rcx, [rsp + 0x48]
call fcn.140014000
jmp 0x14001636a
cmp eax, 0x10
jne 0x140015f74
mov rcx, qword [0x140037bc0]
lea r8, [rdi + 0x10]
lea rdx, str.The_update_file_could_not_be_found:__s_n
lea ebx, [rax - 0xe]
call fcn.140016980
lea rcx, [rsp + 0x48]
call fcn.140014000
jmp 0x14001636a
lea rcx, [rsp + 0x60]
call fcn.140013c20
test eax, eax
je 0x140015ed2
cmp eax, ebx
je 0x140015ed2
mov rcx, qword [0x140037bc0]
lea rdx, str.Update_could_not_be_saved_on_the_system__n
mov ebx, r12d
call fcn.140016980
lea rcx, [rsp + 0x48]
call fcn.140014000
jmp 0x14001636a
lea rcx, [rbp + 0x30]
call fcn.140012820
lea rcx, [rsp + 0x30]
call fcn.140013dd0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.1400153d0
cmp eax, ebx
jne 0x140015f61
lea rdx, [0x14002d808]
lea rcx, [rsp + 0x30]
call fcn.140014330
lea rdx, str.update.bin
lea rcx, [rsp + 0x30]
call fcn.140014330
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140015f4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140037bc0]
lea rdx, str.Update_Could_not_be_copied__GetLastError:__08x_n
mov r8d, eax
call fcn.140016980
jmp 0x140015f61
mov rcx, qword [0x140037bc0]
lea rdx, str.Update_File_copied_successfully_n
call fcn.140016980
lea rcx, [rsp + 0x30]
call fcn.140014000
lea rcx, [rbp + 0x30]
call fcn.1400128f0
lea rcx, [rsp + 0x48]
call fcn.140014000
jmp 0x14001636a
mov rcx, qword [0x140037bc0]
lea rdx, str.Invalid_Command__:__s_n
mov r8, rdi
call fcn.140016980
mov ebx, r12d
jmp 0x140016374
mov rcx, qword [0x140037bc0]
lea rdx, str.Running_in_install_mode..._n
call fcn.140016980
lea rdx, str._init
mov rcx, rdi
call fcn.14001883c
test rax, rax
je 0x1400162ca
movss xmm1, dword [0x14002c1c4]
movss xmm0, dword [0x14002c1c0]
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.140013dd0
lea rcx, [rsp + 0x30]
call fcn.140013dd0
mov rcx, qword [0x140037bc0]
lea rdx, str.Running__init_mode._n
call fcn.140016980
mov rcx, qword [0x140037bc0]
lea r8, str.nvdrsdb.bin
lea rdx, str.Checking_if_the_file___s__exists._n
call fcn.140016980
lea r9, [rsp + 0x40]
lea rcx, [0x14002f268]
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 0x1400160f0
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400140b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140014030
lea rdx, str.NVIDIA_CorporationDrs_nvdrsdb.bin
lea rcx, [rsp + 0x30]
call fcn.140014330
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140016288
mov rcx, qword [rsp + 0x48]
call fcn.140015a70
mov rcx, qword [0x140037bc0]
lea rdx, str.WARNING:_The_NVDRS_GOLD_PATH_has_not_been_set__n
test eax, eax
je 0x14001614d
lea rdx, str.The_NVDRS_GOLD_PATH_has_been_set_successfully._n
call fcn.140016980
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x140037bc0]
lea rdx, str.__s__exists._Loading_the_Db._n
call fcn.140016980
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
call fcn.140013ab0
test eax, eax
je 0x14001619f
cmp eax, ebx
je 0x14001619f
mov rcx, qword [0x140037bc0]
lea rdx, str.ERROR:_The_NvDrsDb_has_encountered_problems_loading____n
call fcn.140016980
mov ebx, r12d
jmp 0x1400161b2
mov rcx, qword [0x140037bc0]
lea rdx, str.The_NvDrsDb_has_been_loaded_successfully._n
call fcn.140016980
lea rcx, [rsp + 0x60]
call fcn.140015590
test eax, eax
jne 0x1400161d8
mov rcx, qword [0x140037bc0]
lea rdx, str.ERROR:_CreateDrsFolder_has_encountered_problems_in_creating_Drs_folder____n
call fcn.140016980
jmp 0x1400162a0
cmp ebx, 1
jne 0x1400162a3
call fcn.140014f10
mov rcx, qword [0x140037bc0]
lea rdx, str.SetLDDMRegistry_returned__d_n
mov r8d, eax
mov ebx, eax
call fcn.140016980
cmp ebx, 1
jne 0x1400162a3
mov rcx, qword [0x140037bc0]
lea rdx, str.Starting_the_process_to_save_the_DRS_database_to_system_n
call fcn.140016980
lea rcx, [rsp + 0x58]
call fcn.1400145d0
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.1400124e0
test eax, eax
je 0x14001624a
cmp eax, ebx
je 0x14001624a
mov ebx, r12d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_created____n
jmp 0x140016270
lea rcx, [rsp + 0x60]
call fcn.140013c20
test eax, eax
je 0x140016269
cmp eax, 1
je 0x140016269
mov ebx, r12d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_created____n
jmp 0x140016270
lea rdx, str.The_System_NvDrsDB_has_been_created_successfully._n
mov rcx, qword [0x140037bc0]
call fcn.140016980
mov rcx, qword [rsp + 0x58]
call fcn.140017fa0
jmp 0x1400162a3
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x140037bc0]
lea rdx, str.ERROR:___s__does_not_exist._Terminating_install_now____n
call fcn.140016980
mov ebx, r12d
lea rcx, [rsp + 0x30]
call fcn.140014000
lea rcx, [rsp + 0x48]
call fcn.140014000
lea rcx, [rsp + 0x60]
call fcn.1400128f0
cmp ebx, 1
jne 0x140016374
lea rdx, str._setoemkeys
mov rcx, rdi
call fcn.14001883c
test rax, rax
je 0x140016374
mov rcx, qword [0x140037bc0]
lea rdx, str.Running__setOEMkeys_mode._n
call fcn.140016980
lea rcx, [rsp + 0x60]
call fcn.140012820
lea rcx, [rsp + 0x60]
call fcn.140013910
test eax, eax
je 0x14001631e
cmp eax, 1
je 0x14001631e
mov ebx, r12d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_loaded_to_apply_the_OEM_customization____n
jmp 0x14001635e
lea rcx, [rsp + 0x60]
call fcn.1400146a0
cmp eax, 1
jne 0x140016352
lea rcx, [rsp + 0x60]
call fcn.140013c20
test eax, eax
je 0x140016349
cmp eax, 1
je 0x140016349
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_saved_appling_the_OEM_customization____n
jmp 0x14001635e
lea rdx, str.The_OEM_customizations_have_been_applied_successfully._n
jmp 0x14001635e
cmp eax, 4
je 0x14001636a
lea rdx, str.ERROR:_Failure_in_SetOEMCustomization_operation__n
mov rcx, qword [0x140037bc0]
call fcn.140016980
lea rcx, [rsp + 0x60]
call fcn.1400128f0
mov rcx, qword [0x140037bc0]
call fcn.140016910
mov rcx, qword [0x140037bc0]
call fcn.140017fa0
lea r11, [rsp + 0x200]
mov qword [0x140037bc0], 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