Function at 0x14008c1ac
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 [0x14021c510]
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 0x14008c599
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], listen
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, [0x1401ff504]
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, [0x1401ff518]
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 0x14008c340
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14017015c
cmp rax, r15
ja 0x14008c340
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 0x14008c30f
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 0x14008c3cc
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14017015c
cmp rax, r15
ja 0x14008c3cc
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 0x14008c39b
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 0x14008c455
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14017015c
cmp rax, r15
ja 0x14008c455
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 0x14008c424
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 0x14008c5a5
lea rcx, str.Error_writing_to_registry__try_running_as_administrator.
call fcn.140001090
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140168070
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