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

Disassembly:
sub esp, 0x140
mov eax, dword [0x6019e4]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x6283e0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4c9501
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 0x4c91e0
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 0x4c9210
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, 0x628480
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c9240
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x628480
push 1
push 0
push str.MajorVersion
push dword [esp + 0x20]
call esi
mov ecx, 0x628494
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c9270
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x628494
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 0x4c9309
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0058d536
add esp, 8
cmp eax, 0x104
ja 0x4c9309
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 0x4c92e8
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 0x4c9381
lea eax, [esp + 0x14]
push 0x12c
push eax
call fcn.0058d536
add esp, 8
cmp eax, 0x104
ja 0x4c9381
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 0x4c9360
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 0x4c93f2
lea eax, [esp + 0x14]
push 0x12c
push eax
call fcn.0058d536
add esp, 8
cmp eax, 0x104
ja 0x4c93f2
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 0x4c93d1
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 0x4c9400
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 0x4c9430
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.005852a8
add esp, 0x140
ret
push 0x6285bc
call fcn.004010e0
mov ecx, dword [esp + 0x14c]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005852a8
add esp, 0x140
ret