Function at 0x140091688
Capabilities:
Get common file path
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140271510]
xor rax, rsp
mov qword [rbp + 0x70], rax
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallMeshCentralAgent
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140091a75
mov rcx, qword [rsp + 0x38]
lea rax, str.MeshCentral_Agent___Remote_Control_Software
mov esi, 1
mov dword [rsp + 0x28], 0x2c
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.DisplayName
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, str.Open_Source
mov dword [rsp + 0x28], send
lea rdx, str.Publisher
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, [0x140254494]
lea ebx, [rsi + 1]
mov r9d, esi
mov dword [rsp + 0x28], ebx
lea rdx, str.MajorVersion
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, [0x1402544a8]
mov dword [rsp + 0x28], ebx
lea rdx, str.MinorVersion
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8026
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, 0x12c
or rbx, 0xffffffffffffffff
lea r15d, [rdi - 0x28]
cmp eax, esi
je 0x14009181c
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140175a7c
cmp rax, r15
ja 0x14009181c
mov edx, edi
lea rcx, [rsp + 0x40]
sub rdx, rax
lea r9d, [rsi + 0xc]
add rcx, rax
lea r8, str.Mesh_Agent_
call section..text
lea rcx, [rsp + 0x40]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400917eb
mov rcx, qword [rsp + 0x38]
lea rdx, str.InstallLocation
add eax, esi
mov r9d, esi
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8026
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, esi
je 0x1400918a8
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140175a7c
cmp rax, r15
ja 0x1400918a8
mov rdx, rdi
lea rcx, [rsp + 0x40]
sub rdx, rax
lea r8, str.Mesh_AgentMeshAgent.exe__fulluninstall
add rcx, rax
mov r9d, 0x29
call section..text
lea rcx, [rsp + 0x40]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140091877
mov rcx, qword [rsp + 0x38]
lea rdx, str.UninstallString
add eax, esi
mov r9d, esi
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8026
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, esi
je 0x140091931
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140175a7c
cmp rax, r15
ja 0x140091931
sub rdi, rax
lea rcx, [rsp + 0x40]
add rcx, rax
lea r8, str.Mesh_AgentMeshAgent.exe
mov rdx, rdi
mov r9d, 0x1a
call section..text
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140091900
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
add ebx, esi
lea rdx, str.DisplayIcon
mov dword [rsp + 0x28], ebx
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, str.1.0.0
mov dword [rsp + 0x28], 6
lea rdx, str.DisplayVersion
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, str.http:__www.meshcentral.com_
mov dword [rsp + 0x28], 0x1c
lea rdx, str.URLInfoAbout
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov ebx, 4
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ebx
lea rdx, str.VersionMajor
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
lea rdx, str.VersionMinor
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], reloc.WS2_32.dll_listen
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
lea rdx, str.EstimatedSize
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x208000
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
lea rdx, str.NoModify
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
lea rdx, str.NoRepair
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140091a81
lea rcx, str.Error_writing_to_registry__try_running_as_administrator.
call fcn.140001090
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14016d990
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret