Function at 0x415da8
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.00406522
mov eax, dword [edi + 0x54]
add eax, 0x624
push eax
xor ebx, ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x22c]
mov dword [ebp - 8], ebx
call fcn.004017c3
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x415e22
xor al, al
jmp 0x416024
mov eax, dword [edi + 0x54]
lea esi, [eax + 0xc]
mov eax, esi
call fcn.0040ae2b
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push ebx
push str.DisplayName
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0x54]
add eax, 0x214
mov dword [ebp - 0xc], eax
call fcn.0040ae2b
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, 0x214
push eax
push str._s_terminal.ico
lea eax, [ebp - 0x22c]
call fcn.004017c3
pop ecx
pop ecx
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415ebc
mov eax, dword [edi + 0x54]
lea ecx, [eax + 0x41c]
push ecx
add eax, 0x214
push eax
push str._s_s
lea eax, [ebp - 0x22c]
call fcn.004017c3
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 0x437420
push 1
push ebx
push str.Publisher
push dword [ebp - 8]
call esi
push 0x36
push 0x437468
push 1
push ebx
push str.HelpLink
push dword [ebp - 8]
call esi
push 0x36
push 0x437468
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 0x415f71
mov eax, str.5.00
call fcn.0040ae2b
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, 0x437518
call fcn.0040ae2b
lea eax, [eax + eax + 2]
push eax
push 0x437518
jmp 0x415fa6
mov eax, str.4.00
call fcn.0040ae2b
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, 0x437564
call fcn.0040ae2b
lea eax, [eax + eax + 2]
push eax
push 0x437564
push 1
push ebx
push 0x43751c
push dword [ebp - 8]
call esi
mov eax, 0x437538
call fcn.0040ae2b
lea eax, [eax + eax + 2]
push eax
push 0x437538
push 1
push ebx
push 0x43753c
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi + 0xabc]
call fcn.0040adbe
test al, al
jne 0x416022
push dword [edi + 0xac0]
lea eax, [ebp - 0x22c]
push 0x437568
call fcn.004017c3
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, 0x214
push eax
call fcn.0040da0c
mov al, 1
pop esi
pop ebx
leave
ret 4