Function at 0x140046e00
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 [0x1400cd548]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.140070390
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140046e51
mov rcx, qword [rbx]
mov r8d, 0x208
lea rdx, [rbp]
call fcn.140051020
test eax, eax
jne 0x140046eae
cmp qword [rbx + 0x18], 8
jb 0x140046e6e
mov rbx, qword [rbx]
call fcn.1400588c0
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.140058e40
xor eax, eax
jmp 0x14004729c
lea rcx, [rsp + 0x48]
call fcn.14004eec0
nop
mov r8b, 1
lea rdx, [rbp]
lea rcx, [rsp + 0x48]
call fcn.14004fe90
xor esi, esi
test al, al
jne 0x140046f1a
cmp qword [rbx + 0x18], 8
jb 0x140046eda
mov rbx, qword [rbx]
call fcn.1400588c0
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.140058e40
mov edi, esi
jmp 0x140047290
call fcn.14004e830
mov rcx, rax
lea rdx, str.SystemSubMenu
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [0x1400d5758]
add rcx, 0x50
call fcn.140012bf0
mov rcx, qword [0x1400d5758]
add rcx, 0x90cc
call fcn.140012e10
mov rax, qword [0x1400d5758]
test byte [rax + 8], 1
je 0x140046f69
call fcn.14001e250
call fcn.14001e6a0
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov r8d, 0xf003f
lea rdx, [rsp + 0x40]
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nView
call fcn.140059800
test eax, eax
je 0x140046fc7
call fcn.1400588c0
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.140058e40
mov edi, esi
jmp 0x140047290
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 [0x1400ba1e0]
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.14003ce60
test eax, eax
je 0x140047043
lea r8, [rsp + 0x58]
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.1400503c0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14004f370
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 0x14004712f
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400470a8
mov r8, qword [rbx]
cmp qword [rbx + 0x10], 0x18
jne 0x1400470d6
mov edx, 0x18
lea rcx, str.nviewprivatedesktopstate
sub r8, rcx
nop
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x1400470d6
add rcx, 2
sub rdx, 1
jne 0x1400470c0
jmp 0x14004712f
xor r9d, r9d
mov r8d, 0xf003f
lea rdx, [rsp + 0x50]
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nViewInstalled
call fcn.140059800
test eax, eax
jne 0x140047113
mov r8, rbx
lea rdx, str.LastProfile
mov rcx, qword [rsp + 0x50]
call fcn.140059e40
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x1400d5758]
and dword [rax + 0x50], 0xffffffdf
mov rcx, qword [0x1400d5758]
add rcx, 0x50
call fcn.140012bf0
nop
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x14004719d
mov rcx, qword [rbp - 0x10]
sub rcx, r8
movabs rax, 0x980e4156201301c9
imul rcx
add rdx, rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0xd78
mov rax, r8
cmp rdx, 0x1000
jb 0x140047189
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400472ca
mov rcx, r8
call fcn.14006ec58
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400471dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400471d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400472ca
call fcn.14006ec58
movdqa xmm0, xmmword [0x1400ba1e0]
movdqa xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14004722e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047229
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400472ca
call fcn.14006ec58
movdqa xmm0, xmmword [0x1400ba1e0]
movdqa xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14004727d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047278
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400472c4
call fcn.14006ec58
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
lea rcx, [rsp + 0x48]
call fcn.14004f040
mov eax, edi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14006ed70
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.14007576c
nop
call fcn.14007576c
int3