Function at 0x140046fb0
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 [0x1400ce568]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.1400725e0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140047001
mov rcx, qword [rbx]
mov r8d, 0x208
lea rdx, [rbp]
call fcn.1400511b0
test eax, eax
jne 0x14004705e
cmp qword [rbx + 0x18], 8
jb 0x14004701e
mov rbx, qword [rbx]
call fcn.1400597f0
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_3S_sw_nview_v200_nView_nViewMainProfileManager.cpp
lea r8, str.ProfileManager::save
mov edx, 1
call fcn.140059d70
xor eax, eax
jmp 0x14004744c
lea rcx, [rsp + 0x48]
call fcn.14004eff0
nop
mov r8b, 1
lea rdx, [rbp]
lea rcx, [rsp + 0x48]
call fcn.14004ffc0
xor esi, esi
test al, al
jne 0x1400470ca
cmp qword [rbx + 0x18], 8
jb 0x14004708a
mov rbx, qword [rbx]
call fcn.1400597f0
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_3S_sw_nview_v200_nView_nViewMainProfileManager.cpp
lea r8, str.ProfileManager::save
mov edx, 1
call fcn.140059d70
mov edi, esi
jmp 0x140047440
call fcn.14004e960
mov rcx, rax
lea rdx, str.SystemSubMenu
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [0x1400d68b8]
add rcx, 0x50
call fcn.140012c50
mov rcx, qword [0x1400d68b8]
add rcx, 0x90cc
call fcn.140012e70
mov rax, qword [0x1400d68b8]
test byte [rax + 8], 1
je 0x140047119
call fcn.14001def0
call fcn.14001e340
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov r8d, 0xf003f
lea rdx, [rsp + 0x40]
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nView
call fcn.14005a730
test eax, eax
je 0x140047177
call fcn.1400597f0
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_3S_sw_nview_v200_nView_nViewMainProfileManager.cpp
lea r8, str.ProfileManager::save
mov edx, 1
call fcn.140059d70
mov edi, esi
jmp 0x140047440
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 [0x1400bb5c0]
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.14003cf80
test eax, eax
je 0x1400471f3
lea r8, [rsp + 0x58]
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.140050550
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14004f4a0
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 0x1400472df
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140047258
mov r8, qword [rbx]
cmp qword [rbx + 0x10], 0x18
jne 0x140047286
mov edx, 0x18
lea rcx, str.nviewprivatedesktopstate
sub r8, rcx
nop
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140047286
add rcx, 2
sub rdx, 1
jne 0x140047270
jmp 0x1400472df
xor r9d, r9d
mov r8d, 0xf003f
lea rdx, [rsp + 0x50]
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nViewInstalled
call fcn.14005a730
test eax, eax
jne 0x1400472c3
mov r8, rbx
lea rdx, str.LastProfile
mov rcx, qword [rsp + 0x50]
call fcn.14005ad70
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x1400d68b8]
and dword [rax + 0x50], 0xffffffdf
mov rcx, qword [0x1400d68b8]
add rcx, 0x50
call fcn.140012c50
nop
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x14004734d
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 0x140047339
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004747a
mov rcx, r8
call fcn.14006fc78
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14004738d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047388
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004747a
call fcn.14006fc78
movdqa xmm0, xmmword [0x1400bb5c0]
movdqa xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400473de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400473d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004747a
call fcn.14006fc78
movdqa xmm0, xmmword [0x1400bb5c0]
movdqa xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14004742d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047428
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047474
call fcn.14006fc78
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
lea rcx, [rsp + 0x48]
call fcn.14004f170
mov eax, edi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14006fd90
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.14007698c
nop
call fcn.14007698c
int3