Function at 0x415874
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.0040653c
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 0x4158ee
xor al, al
jmp 0x415af0
mov eax, dword [edi + 0x54]
lea esi, [eax + 0xc]
mov eax, esi
call fcn.004083ac
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.004083ac
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 0x415988
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 0x438400
push 1
push ebx
push str.Publisher
push dword [ebp - 8]
call esi
push 0x36
push 0x438448
push 1
push ebx
push str.HelpLink
push dword [ebp - 8]
call esi
push 0x36
push 0x438448
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 0x415a3d
mov eax, str.5.00
call fcn.004083ac
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, 0x4384f8
call fcn.004083ac
lea eax, [eax + eax + 2]
push eax
push 0x4384f8
jmp 0x415a72
mov eax, str.4.00
call fcn.004083ac
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, 0x438544
call fcn.004083ac
lea eax, [eax + eax + 2]
push eax
push 0x438544
push 1
push ebx
push 0x4384fc
push dword [ebp - 8]
call esi
mov eax, 0x438518
call fcn.004083ac
lea eax, [eax + eax + 2]
push eax
push 0x438518
push 1
push ebx
push 0x43851c
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi + 0xabc]
call fcn.0040afd2
test al, al
jne 0x415aee
push dword [edi + 0xac0]
lea eax, [ebp - 0x22c]
push 0x438548
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.0040dbc8
mov al, 1
pop esi
pop ebx
leave
ret 4