Function at 0x140058c68
Capabilities:
Check if file exists
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x180], rax
call fcn.140055fcc
xor esi, esi
test eax, eax
je 0x140058dc7
lea rcx, [rsp + 0x50]
call fcn.1400586a8
nop
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0x10], esi
je 0x140058dbe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140058db9
mov dword [rsp + 0x30], 1
lea eax, [rsi + 4]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, str.ShowInSedona
lea rdx, str.SOFTWARENVIDIA_CorporationNvTray
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rsp + 0x30], esi
jbe 0x140058db9
mov dil, sil
lea rcx, [rsp + 0x60]
call fcn.14005860c
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140058d65
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test rbx, rbx
je 0x140058d8d
lea rdx, str.IsNotificationIconAvailable
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140058d84
call rax
mov dil, al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx ebx, dil
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140058db2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
jmp 0x140058e9a
mov rax, qword [rsp + 0x50]
lea rdx, [rax - 0x18]
jmp 0x140058e81
lea rcx, str.NVMCTRAY.DLL
call fcn.140056b38
test eax, eax
je 0x140058e98
mov word [rsp + 0x70], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.1401bf0f0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x208
lea rdx, str.NvMediaCenter
lea rcx, [rsp + 0x40]
call fcn.140002c98
lea r11, [rsp + 0x38]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov r8, qword [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x140058e78
cmp dword [rsp + 0x34], 1
jne 0x140058e78
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140058e71
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
jmp 0x140058e9a
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140058e98
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1401be9b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret