Function at 0x415837
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.00406448
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.0040179f
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 0x4158b1
xor al, al
jmp 0x415ab3
mov eax, dword [edi + 0x54]
lea esi, [eax + 0xc]
mov eax, esi
call fcn.0040ae0d
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.0040ae0d
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.0040179f
pop ecx
pop ecx
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41594b
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.0040179f
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 0x439298
push 1
push ebx
push str.Publisher
push dword [ebp - 8]
call esi
push 0x36
push 0x4392e0
push 1
push ebx
push str.HelpLink
push dword [ebp - 8]
call esi
push 0x36
push 0x4392e0
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 0x415a00
mov eax, str.5.00
call fcn.0040ae0d
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, 0x439390
call fcn.0040ae0d
lea eax, [eax + eax + 2]
push eax
push 0x439390
jmp 0x415a35
mov eax, str.4.00
call fcn.0040ae0d
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, 0x4393dc
call fcn.0040ae0d
lea eax, [eax + eax + 2]
push eax
push 0x4393dc
push 1
push ebx
push 0x439394
push dword [ebp - 8]
call esi
mov eax, 0x4393b0
call fcn.0040ae0d
lea eax, [eax + eax + 2]
push eax
push 0x4393b0
push 1
push ebx
push 0x4393b4
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi + 0xabc]
call fcn.0040ada0
test al, al
jne 0x415ab1
push dword [edi + 0xac0]
lea eax, [ebp - 0x22c]
push 0x4393e0
call fcn.0040179f
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.0040d458
mov al, 1
pop esi
pop ebx
leave
ret 4