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

Disassembly:
sub esp, 0x140
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x620768
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4c8c51
mov ecx, str.MeshCentral_Agent___Remote_Control_Software
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8930
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
lea eax, [ecx + 1]
push eax
push str.MeshCentral_Agent___Remote_Control_Software
push 1
push 0
push str.DisplayName
push dword [esp + 0x20]
call esi
mov ecx, str.Open_Source
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8960
sub ecx, edx
lea eax, [ecx + 1]
push eax
push str.Open_Source
push 1
push 0
push str.Publisher
push dword [esp + 0x20]
call esi
mov ecx, 0x620808
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8990
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x620808
push 1
push 0
push str.MajorVersion
push dword [esp + 0x20]
call esi
mov ecx, 0x62081c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c89c0
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x62081c
push 1
push 0
push str.MinorVersion
push dword [esp + 0x20]
call esi
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8026
push 0
call ebx
mov edi, 0x12c
cmp eax, 1
je 0x4c8a59
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0058cca6
add esp, 8
cmp eax, 0x104
ja 0x4c8a59
push 0xd
mov edx, edi
lea ecx, [esp + 0x18]
push str.Mesh_Agent_
sub edx, eax
add ecx, eax
call fcn.00401000
lea ecx, [esp + 0x1c]
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8a38
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.InstallLocation
push dword [esp + 0x20]
call esi
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8026
push 0
call ebx
cmp eax, 1
je 0x4c8ad1
lea eax, [esp + 0x14]
push 0x12c
push eax
call fcn.0058cca6
add esp, 8
cmp eax, 0x104
ja 0x4c8ad1
push 0x29
mov edx, edi
lea ecx, [esp + 0x18]
push str.Mesh_AgentMeshAgent.exe__fulluninstall
sub edx, eax
add ecx, eax
call fcn.00401000
lea ecx, [esp + 0x1c]
add esp, 8
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8ab0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.UninstallString
push dword [esp + 0x20]
call esi
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8026
push 0
call ebx
cmp eax, 1
je 0x4c8b42
lea eax, [esp + 0x14]
push 0x12c
push eax
call fcn.0058cca6
add esp, 8
cmp eax, 0x104
ja 0x4c8b42
sub edi, eax
lea ecx, [esp + 0x14]
push 0x1a
push str.Mesh_AgentMeshAgent.exe
add ecx, eax
mov edx, edi
call fcn.00401000
lea ecx, [esp + 0x1c]
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8b21
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.DisplayIcon
push dword [esp + 0x20]
call esi
mov ecx, str.1.0.0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8b50
sub ecx, edx
lea eax, [ecx + 1]
push eax
push str.1.0.0
push 1
push 0
push str.DisplayVersion
push dword [esp + 0x20]
call esi
mov ecx, str.http:__www.meshcentral.com_
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8b80
sub ecx, edx
lea eax, [ecx + 1]
push eax
push str.http:__www.meshcentral.com_
push 1
push 0
push str.URLInfoAbout
push dword [esp + 0x20]
call esi
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 2
push eax
push 4
push 0
push str.VersionMajor
push dword [esp + 0x20]
call esi
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xd
push eax
push 4
push 0
push str.VersionMinor
push dword [esp + 0x20]
call esi
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x208000
push eax
push 4
push 0
push str.EstimatedSize
push dword [esp + 0x20]
call esi
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 4
push 0
push str.NoModify
push dword [esp + 0x20]
call esi
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.NoRepair
push dword [esp + 0x20]
call esi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00584a28
add esp, 0x140
ret
push 0x620944
call fcn.004010e0
mov ecx, dword [esp + 0x14c]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x140
ret