Function at 0x4157c3
Capabilities:
Check if file exists
Get file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
lea eax, [ebp - 0x22c]
call fcn.0040648e
mov eax, dword [edi + 0x54]
add eax, 0x626
push eax
xor ebx, ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x22c]
mov dword [ebp - 8], ebx
call fcn.004017f8
mov eax, dword [edi + 0x54]
pop ecx
pop ecx
xor ecx, ecx
cmp dword [eax + 4], 2
setne cl
dec ecx
and ecx, 0xffffff00
add ecx, 0x20206
mov eax, ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x228]
push 0x80000002
call dword [0x430024]
test eax, eax
je 0x41583d
xor al, al
jmp 0x415a3f
mov eax, dword [edi + 0x54]
lea esi, [eax + 0xe]
mov eax, esi
call fcn.0040831a
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [0x430028]
push 1
push ebx
push str.DisplayName
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0x54]
add eax, 0x216
mov dword [ebp - 0xc], eax
call fcn.0040831a
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0xc]
push 1
push ebx
push str.InstallLocation
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0x54]
add eax, 0x216
push eax
push str._s_terminal.ico
lea eax, [ebp - 0x22c]
call fcn.004017f8
pop ecx
pop ecx
push dword [ebp - 0x228]
call dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4158d7
mov eax, dword [edi + 0x54]
lea ecx, [eax + 0x41e]
push ecx
add eax, 0x216
push eax
push str._s_s
lea eax, [ebp - 0x22c]
call fcn.004017f8
add esp, 0xc
mov eax, dword [ebp - 0x224]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x228]
push 1
push ebx
push str.DisplayIcon
push dword [ebp - 8]
call esi
push 0x36
push 0x4374f0
push 1
push ebx
push str.Publisher
push dword [ebp - 8]
call esi
push 0x36
push 0x437538
push 1
push ebx
push str.HelpLink
push dword [ebp - 8]
call esi
push 0x36
push 0x437538
push 1
push ebx
push str.UrlInfoAbout
push dword [ebp - 8]
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
lea ecx, [ecx + ecx + 2]
push ecx
push dword [eax + 4]
push 1
push ebx
push str.UninstallString
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0x54]
cmp dword [eax + 8], 4
jae 0x41598c
mov eax, str.5.00
call fcn.0040831a
lea eax, [eax + eax + 2]
push eax
push str.5.00
push 1
push ebx
push str.DisplayVersion
push dword [ebp - 8]
call esi
mov eax, 0x4375e8
call fcn.0040831a
lea eax, [eax + eax + 2]
push eax
push 0x4375e8
jmp 0x4159c1
mov eax, str.4.00
call fcn.0040831a
lea eax, [eax + eax + 2]
push eax
push str.4.00
push 1
push ebx
push str.DisplayVersion
push dword [ebp - 8]
call esi
mov eax, 0x437634
call fcn.0040831a
lea eax, [eax + eax + 2]
push eax
push 0x437634
push 1
push ebx
push 0x4375ec
push dword [ebp - 8]
call esi
mov eax, 0x437608
call fcn.0040831a
lea eax, [eax + eax + 2]
push eax
push 0x437608
push 1
push ebx
push 0x43760c
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [0x430038]
lea eax, [edi + 0x1614]
call fcn.0040afbe
test al, al
jne 0x415a3d
push dword [edi + 0x1618]
lea eax, [ebp - 0x22c]
push 0x437638
call fcn.004017f8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
pop ecx
pop ecx
push 1
push eax
push dword [ebp - 0x228]
push eax
mov eax, dword [edi + 0x54]
add eax, 0x216
push eax
call fcn.0040dbc4
mov al, 1
pop esi
pop ebx
leave
ret 4