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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x1400cd548]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov r15d, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], di
jne 0x1400475e1
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000d670
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call fcn.140070390
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov r8d, 0x208
lea rdx, [rbp + 0x10]
call fcn.140051020
test eax, eax
jne 0x14004767d
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rbx, qword [rsp + 0x50]
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], 0x262
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainProfileManager.cpp
lea r8, str.ProfileManager::update
mov edx, 1
call fcn.140058e40
jmp 0x140047941
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140050cb0
movzx r14d, ax
test r14d, r14d
je 0x14004793e
movdqa xmm0, xmmword [0x1400ba1e0]
movdqa xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], di
movdqa xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], di
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
test rsi, rsi
jne 0x1400476e6
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.14003b380
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.14003cb80
lea rsi, [rbp - 0x70]
lea rdx, str.AutoRunAppsV4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], di
mov r9d, 1
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14003cfa0
mov r8d, dword [rbx + 0x7d0]
and r8d, 0xffff0000
or r8d, r14d
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x10]
call fcn.140050a10
test al, al
je 0x1400477a8
lea rcx, [rsp + 0x48]
call fcn.14004eec0
nop
mov r8b, 1
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14004fe90
test al, al
je 0x14004779e
cmp qword [rbp - 0x80], 0
je 0x14004778b
lea r8, [rsp + 0x70]
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.1400503c0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14004f370
movzx r15d, al
lea rcx, [rsp + 0x48]
call fcn.14004f040
mov edx, 0x80
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.TempCopy
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nViewInstalled
call fcn.1400598e0
mov ecx, eax
mov r9d, 0x296
lea r8, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nView_nViewMainProfileManager.cpp
lea rdx, str.ProfileManager::update
call fcn.140058d30
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140047832
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004782d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400479ad
call fcn.14006ec58
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], di
mov r8, qword [rbp - 0x10]
test r8, r8
je 0x1400478b1
mov rcx, qword [rbp]
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 0x14004789d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400479b3
mov rcx, r8
call fcn.14006ec58
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x1400478f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400478ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400479b3
call fcn.14006ec58
movdqa xmm0, xmmword [0x1400ba1e0]
movdqa xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], di
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14004793e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047939
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400479b3
call fcn.14006ec58
mov edi, r15d
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14004797f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004797a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400479a7
call fcn.14006ec58
mov eax, edi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14006ed70
mov rbx, qword [rsp + 0x370]
add rsp, 0x330
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14007576c
nop
call fcn.14007576c
nop
call fcn.14007576c
int3