Function at 0x14003d7f0
Capabilities:
Delete registry key
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.140067170
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003d841
mov rcx, qword [rbx]
mov r8d, 0x208
lea rdx, [rbp]
call fcn.140045ef0
test eax, eax
jne 0x14003d89e
cmp qword [rbx + 0x18], 8
jb 0x14003d85e
mov rbx, qword [rbx]
call fcn.14004e890
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rax, str.cannot_find_profile__s
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a4
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainProfileManager.cpp
lea r8, str.ProfileManager::save
mov edx, 1
call fcn.14004f020
xor eax, eax
jmp 0x14003dc89
lea rcx, [rsp + 0x48]
call fcn.1400465e0
nop
mov r8b, 1
lea rdx, [rbp]
lea rcx, [rsp + 0x48]
call fcn.1400475b0
xor esi, esi
test al, al
jne 0x14003d90a
cmp qword [rbx + 0x18], 8
jb 0x14003d8ca
mov rbx, qword [rbx]
call fcn.14004e890
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rax, str.failed_to_open_profile__s_for_writing
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2ad
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainProfileManager.cpp
lea r8, str.ProfileManager::save
mov edx, 1
call fcn.14004f020
mov edi, esi
jmp 0x14003dc7d
call fcn.140045210
mov rcx, rax
lea rdx, str.SystemSubMenu
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [0x1400ca5a8]
add rcx, 0x50
call fcn.140012b00
mov rcx, qword [0x1400ca5a8]
add rcx, 0x9214
call fcn.140012d00
mov rax, qword [0x1400ca5a8]
test byte [rax + 8], 1
je 0x14003d959
call fcn.140015f40
call fcn.140016320
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov r8d, 0xf003f
lea rdx, [rsp + 0x40]
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nView
call fcn.14004f9e0
test eax, eax
je 0x14003d9b7
call fcn.14004e890
mov rcx, rax
lea rax, str.Failed_to_create_registry_key
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2c0
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainProfileManager.cpp
lea r8, str.ProfileManager::save
mov edx, 1
call fcn.14004f020
mov edi, esi
jmp 0x14003dc7d
lea rdx, str.AutoRunAppsV4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
movdqa xmm0, xmmword [0x1400afea0]
movdqa xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
movdqa xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov r9d, 1
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140033840
test eax, eax
je 0x14003da33
lea r8, [rsp + 0x58]
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.140047ae0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140046a90
movzx edi, al
lea rdx, str.ModeInfo2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea rdx, str.AutoRunAppsV4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x80
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x14003db1f
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003da98
mov r8, qword [rbx]
cmp qword [rbx + 0x10], 0x18
jne 0x14003dac6
mov edx, 0x18
lea rcx, str.nviewprivatedesktopstate
sub r8, rcx
nop
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x14003dac6
add rcx, 2
sub rdx, 1
jne 0x14003dab0
jmp 0x14003db1f
xor r9d, r9d
mov r8d, 0xf003f
lea rdx, [rsp + 0x50]
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nViewInstalled
call fcn.14004f9e0
test eax, eax
jne 0x14003db03
mov r8, rbx
lea rdx, str.LastProfile
mov rcx, qword [rsp + 0x50]
call fcn.140050020
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x1400ca5a8]
and dword [rax + 0x50], 0xffffffdf
mov rcx, qword [0x1400ca5a8]
add rcx, 0x50
call fcn.140012b00
nop
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x14003db8a
mov rcx, qword [rbp - 0x10]
sub rcx, r8
movabs rax, 0x2cc3d8d4a245f203
imul rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0xb70
mov rax, r8
cmp rdx, 0x1000
jb 0x14003db76
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003dcb7
mov rcx, r8
call fcn.140064808
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14003dbca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003dbc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003dcb7
call fcn.140064808
movdqa xmm0, xmmword [0x1400afea0]
movdqa xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14003dc1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003dc16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003dcb7
call fcn.140064808
movdqa xmm0, xmmword [0x1400afea0]
movdqa xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14003dc6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003dc65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003dcb1
call fcn.140064808
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
lea rcx, [rsp + 0x48]
call fcn.140046760
mov eax, edi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140064920
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14006b51c
nop
call fcn.14006b51c
int3