Function at 0x14001f570
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
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rcx, qword [0x140066dc8]
lea rdx, [0x140052bc8]
mov rsi, r8
mov ebx, 1
call fcn.140020080
mov edx, 0x104
mov rcx, rsi
call fcn.140022a58
mov rcx, rsi
lea rdx, [rax + 1]
call fcn.140023094
mov rcx, qword [0x140066dc8]
lea rdx, str.Command_line_passed_in:__s_n
mov r8, rsi
call fcn.14001fe10
lea rdx, str._init
mov rcx, rsi
call fcn.140022bf4
xor r14d, r14d
test rax, rax
jne 0x14001f8ff
lea rdx, str._setoemkeys
mov rcx, rsi
call fcn.140022bf4
test rax, rax
jne 0x14001f8ff
lea rdx, str._uninstall
mov rcx, rsi
call fcn.140022bf4
test rax, rax
je 0x14001f70c
mov rcx, qword [0x140066dc8]
lea rdx, str.Running_in_uninstall_mode..._n
call fcn.14001fe10
lea rcx, [rsp + 0x60]
call fcn.14001a880
lea rcx, [rsp + 0x60]
call fcn.14001c220
cmp eax, ebx
jbe 0x14001f660
mov rcx, qword [0x140066dc8]
lea rdx, str.WARNING:_Failed_to_remove_the_NvDrsDb_from_the_system__n
call fcn.14001fe10
mov rcx, qword [0x140066dc8]
lea r8, str.SOFTWARENVIDIA_CorporationGlobal
lea rdx, str.Opening_the_reg_path___s__n
call fcn.14001fe10
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 0x14001fd47
mov rcx, qword [0x140066dc8]
lea r8, str.SOFTWARENVIDIA_CorporationGlobal
lea rdx, str.Deleting_DRS_Path_Keys_from___s__n
call fcn.14001fe10
mov rcx, qword [rsp + 0x30]
lea rdx, str.DrsPath
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14001f6fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140066dc8]
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
lea rdx, str.WARNING:_Failed_to_delete___s___err:_d___n
mov r9d, eax
call fcn.14001fe10
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001fd47
lea rdx, str._update
mov rcx, rsi
call fcn.140022bf4
test rax, rax
je 0x14001f8e1
lea rdx, str._update
mov rcx, rsi
call fcn.140022bf4
lea rcx, [rsp + 0x60]
mov rdi, rax
call fcn.14001a880
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14001d460
lea rcx, [rsp + 0x60]
call fcn.14001bb40
cmp eax, ebx
jbe 0x14001f781
mov rcx, qword [0x140066dc8]
lea rdx, str.System_settings_could_not_be_loaded__n
mov ebx, r14d
call fcn.14001fe10
lea rcx, [rsp + 0x48]
call fcn.14001dc40
jmp 0x14001fd47
call fcn.14001e6a0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
movzx r9d, al
movzx r8d, bl
call fcn.14001b9b0
cmp eax, ebx
jbe 0x14001f7fd
cmp eax, 0x12
jne 0x14001f7cb
mov rcx, qword [0x140066dc8]
lea rdx, str.The_update_file_was_too_old_and_was_not_applied_n
lea ebx, [rax - 0xf]
call fcn.14001fe10
lea rcx, [rsp + 0x48]
call fcn.14001dc40
jmp 0x14001fd47
cmp eax, 0x10
jne 0x14001f8d2
mov rcx, qword [0x140066dc8]
lea r8, [rdi + 0x10]
lea rdx, str.The_update_file_could_not_be_found:__s_n
lea ebx, [rax - 0xe]
call fcn.14001fe10
lea rcx, [rsp + 0x48]
call fcn.14001dc40
jmp 0x14001fd47
lea rcx, [rsp + 0x60]
call fcn.14001cd10
cmp eax, ebx
jbe 0x14001f830
mov rcx, qword [0x140066dc8]
lea rdx, str.Update_could_not_be_saved_on_the_system__n
mov ebx, r14d
call fcn.14001fe10
lea rcx, [rsp + 0x48]
call fcn.14001dc40
jmp 0x14001fd47
lea rcx, [rbp + 0x30]
call fcn.14001a880
lea rcx, [rsp + 0x38]
call fcn.14001d510
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x30]
call fcn.14001e4f0
cmp eax, ebx
jne 0x14001f8bf
lea rdx, [0x14004f64c]
lea rcx, [rsp + 0x38]
call fcn.14001db30
lea rdx, str.update.bin
lea rcx, [rsp + 0x38]
call fcn.14001db30
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14001f8ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140066dc8]
lea rdx, str.Update_Could_not_be_copied__GetLastError:__08x_n
mov r8d, eax
call fcn.14001fe10
jmp 0x14001f8bf
mov rcx, qword [0x140066dc8]
lea rdx, str.Update_File_copied_successfully_n
call fcn.14001fe10
lea rcx, [rsp + 0x38]
call fcn.14001dc40
lea rcx, [rbp + 0x30]
call fcn.14001aa30
lea rcx, [rsp + 0x48]
call fcn.14001dc40
jmp 0x14001fd47
mov rcx, qword [0x140066dc8]
lea rdx, str.Invalid_Command__:__s_n
mov r8, rsi
call fcn.14001fe10
mov ebx, r14d
jmp 0x14001fd51
mov rcx, qword [0x140066dc8]
lea rdx, str.Running_in_install_mode..._n
call fcn.14001fe10
lea rdx, str._init
mov rcx, rsi
call fcn.140022bf4
test rax, rax
je 0x14001fca8
xorps xmm0, xmm0
or rdi, 0xffffffffffffffff
lea rax, [rbp - 0x78]
or rax, rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x60], r14
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm0, xmmword [0x140050a70]
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x80]
mov dword [rsp + 0x68], r14d
movdqa xmmword [rbp], xmm0
or rax, 2
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x6c], 5
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x60], 0x3f400000
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x5c], 0x3e000000
mov qword [rbp - 0x58], r14
mov dword [rbp - 0x50], r14d
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x30], r14b
mov qword [rbp - 0x28], r14
mov word [rbp - 0x20], 0x100
mov byte [rbp - 0x1e], r14b
mov qword [rbp - 0x18], r14
mov qword [rbp - 8], r14
mov dword [rbp + 0x10], edi
mov dword [rbp + 0x14], 5
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x20], r14
mov dword [rbp + 0x28], 0x3f400000
mov dword [rbp + 0x2c], 0x3e000000
call fcn.14001d510
lea rcx, [rsp + 0x38]
call fcn.14001d510
mov rcx, qword [0x140066dc8]
lea rdx, str.Running__init_mode._n
call fcn.14001fe10
mov rcx, qword [0x140066dc8]
lea r8, str.nvdrsdb.bin
lea rdx, str.Checking_if_the_file___s__exists._n
call fcn.14001fe10
lea r9, [rsp + 0x30]
lea rcx, [0x140054860]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x30], r14
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001fa43
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14001d6b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.14001d560
lea rdx, str.NVIDIA_CorporationDrs_nvdrsdb.bin
lea rcx, [rsp + 0x38]
call fcn.14001db30
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001fc66
mov rcx, qword [rsp + 0x48]
call fcn.14001f3b0
mov rcx, qword [0x140066dc8]
lea rdx, str.WARNING:_The_NVDRS_GOLD_PATH_has_not_been_set__n
test eax, eax
je 0x14001faa0
lea rdx, str.The_NVDRS_GOLD_PATH_has_been_set_successfully._n
call fcn.14001fe10
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x140066dc8]
lea rdx, str.__s__exists._Loading_the_Db._n
call fcn.14001fe10
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
call fcn.14001b9b0
mov rcx, qword [0x140066dc8]
cmp eax, ebx
jbe 0x14001faee
lea rdx, str.ERROR:_The_NvDrsDb_has_encountered_problems_loading____n
call fcn.14001fe10
mov ebx, r14d
jmp 0x14001fafa
lea rdx, str.The_NvDrsDb_has_been_loaded_successfully._n
call fcn.14001fe10
lea rcx, [rsp + 0x60]
call fcn.14001df60
test eax, eax
jne 0x14001fb20
mov rcx, qword [0x140066dc8]
lea rdx, str.ERROR:_CreateDrsFolder_has_encountered_problems_in_creating_Drs_folder____n
call fcn.14001fe10
jmp 0x14001fc7e
cmp ebx, 1
jne 0x14001fc81
call fcn.14001e9e0
mov rcx, qword [0x140066dc8]
lea rdx, str.SetLDDMRegistry_returned__d_n
mov r8d, eax
mov ebx, eax
call fcn.14001fe10
cmp ebx, 1
jne 0x14001fc81
mov rcx, qword [0x140066dc8]
lea rdx, str.Starting_the_process_to_save_the_DRS_database_to_system_n
mov qword [rsp + 0x220], r15
call fcn.14001fe10
mov eax, 4
mov r15d, 0x35
mul r15
cmovo rax, rdi
mov rcx, rax
call fcn.1400218b8
lea r8, [0x140065260]
mov rdi, rax
mov rdx, rax
sub r8, rax
mov eax, 0xe
nop dword [rax]
mov ecx, dword [r8 + rdx]
lea rdx, [rdx + 4]
mov dword [rdx - 4], ecx
dec rax
jne 0x14001fba0
mov edx, r14d
lea r8, [0x1400652a0]
nop word [rax + rax]
mov eax, dword [r8]
lea ecx, [rdx + 0xe]
inc edx
lea r8, [r8 + 4]
mov dword [rdi + rcx*4], eax
cmp edx, 0x1b
jb 0x14001fbc0
lea r10d, [rdx + 0xe]
lea r9, [0x140065310]
mov edx, r14d
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 0x14001fbf0
lea rcx, [rsp + 0x60]
mov r8d, r15d
mov rdx, rdi
call fcn.14001cef0
mov r15, qword [rsp + 0x220]
cmp eax, 1
jbe 0x14001fc2e
mov ebx, r14d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_created____n
jmp 0x14001fc50
lea rcx, [rsp + 0x60]
call fcn.14001cd10
cmp eax, 1
jbe 0x14001fc49
mov ebx, r14d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_created____n
jmp 0x14001fc50
lea rdx, str.The_System_NvDrsDB_has_been_created_successfully._n
mov rcx, qword [0x140066dc8]
call fcn.14001fe10
mov rcx, rdi
call fcn.140021960
jmp 0x14001fc81
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x140066dc8]
lea rdx, str.ERROR:___s__does_not_exist._Terminating_install_now____n
call fcn.14001fe10
mov ebx, r14d
lea rcx, [rsp + 0x38]
call fcn.14001dc40
lea rcx, [rsp + 0x48]
call fcn.14001dc40
lea rcx, [rsp + 0x60]
call fcn.14001aa30
cmp ebx, 1
jne 0x14001fd51
lea rdx, str._setoemkeys
mov rcx, rsi
call fcn.140022bf4
test rax, rax
je 0x14001fd51
mov rcx, qword [0x140066dc8]
lea rdx, str.Running__setOEMkeys_mode._n
call fcn.14001fe10
lea rcx, [rsp + 0x60]
call fcn.14001a880
lea rcx, [rsp + 0x60]
call fcn.14001bb40
cmp eax, 1
jbe 0x14001fcf8
mov ebx, r14d
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_loaded_to_apply_the_OEM_customization____n
jmp 0x14001fd3b
lea rcx, [rsp + 0x60]
call fcn.14001ec00
cmp eax, 1
jne 0x14001fd2f
lea rcx, [rsp + 0x60]
call fcn.14001cd10
mov rcx, qword [0x140066dc8]
cmp eax, 1
jbe 0x14001fd26
lea rdx, str.ERROR:_The_System_NvDrsDB_could_not_be_saved_appling_the_OEM_customization____n
jmp 0x14001fd42
lea rdx, str.The_OEM_customizations_have_been_applied_successfully._n
jmp 0x14001fd42
cmp eax, 4
je 0x14001fd47
lea rdx, str.ERROR:_Failure_in_SetOEMCustomization_operation__n
mov rcx, qword [0x140066dc8]
call fcn.14001fe10
lea rcx, [rsp + 0x60]
call fcn.14001aa30
mov rcx, qword [0x140066dc8]
call fcn.140020010
mov rcx, qword [0x140066dc8]
call fcn.140021960
lea r11, [rsp + 0x200]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov qword [0x140066dc8], r14
mov rsp, r11
pop r14
pop rdi
pop rbp
ret