#include <Array.au3>
#include <WinAPIEx.au3>
#include <FileOperations.au3>
$var = StringRegExp(RegRead("HKCR\http\shell\open\command", ""), '.*[\\](.*?)[\.]exe', 1)
If @error Then
MsgBox('','', @error)
Exit
EndIf
$BPD = _ArrayToString($var, '')&'.exe'
$sFile = _FO_FileSearch(@HomeDrive, $BPD, True, 5, 1, 0)
Switch _WinAPI_GetPEType($sFile)
Case 0x014C
$BB = 'X86' ; x86
Case 0x0200, 0x8664
$BB = 'X64' ; x64
Case Else
MsgBox('','', '?'); Other
EndSwitch
If $BB = 'X86' Then
MsgBox(0, '', $BPD&' = x86')
Else
MsgBox(0, '', $BPD&' = x64')
EndIf