Advertisement
MattFiler

Untitled

Mar 26th, 2022
728
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.88 KB | None
  1. undefined8 __thiscall
  2. CATHODE::GateInterface::on_custom_method
  3.           (GateInterface *this,ShortGuid *param_1,bool *param_2,MemoryPtr *param_3,
  4.           MemoryRefPtr *param_4)
  5.  
  6. {
  7.   bool bVar1;
  8.   int iVar2;
  9.   CathodeProfileNode *this_00;
  10.   CathodeProfileNode aCStack80 [8];
  11.   CathodeProfileNode aCStack72 [8];
  12.   CathodeProfileNode aCStack64 [8];
  13.   CathodeProfileNode aCStack56 [8];
  14.  
  15.   this_00 = aCStack80;
  16.   iVar2 = *(int *)param_1;
  17.   if (EntityMethodInterfaceClass::m_open_method_guid == iVar2) {
  18.     CathodeProfileNode::CathodeProfileNode(aCStack56,"open");
  19.     push_entity_guid_context();
  20.     add_entity_guid_context(param_3);
  21.     if (*(char *)(EntityManager::m_instance + 0x182) != '\0') {
  22.       *(undefined *)(EntityManager::m_instance + 0x182) = 0;
  23.       iVar2 = CA::running_in_debugger();
  24.       if (iVar2 != 0) {
  25.         _DebugBreak();
  26.       }
  27.     }
  28.     bVar1 = (bool)(**(code **)(*(long *)this + 0x558))(this,param_3,param_4);
  29.     *param_2 = bVar1;
  30.     pop_entity_guid_context();
  31.     this_00 = aCStack56;
  32.   }
  33.   else if (EntityMethodInterfaceClass::m_close_method_guid == iVar2) {
  34.     CathodeProfileNode::CathodeProfileNode(aCStack64,"close");
  35.     push_entity_guid_context();
  36.     add_entity_guid_context(param_3);
  37.     if (*(char *)(EntityManager::m_instance + 0x182) != '\0') {
  38.       *(undefined *)(EntityManager::m_instance + 0x182) = 0;
  39.       iVar2 = CA::running_in_debugger();
  40.       if (iVar2 != 0) {
  41.         _DebugBreak();
  42.       }
  43.     }
  44.     bVar1 = (bool)(**(code **)(*(long *)this + 0x560))(this,param_3,param_4);
  45.     *param_2 = bVar1;
  46.     pop_entity_guid_context();
  47.     this_00 = aCStack64;
  48.   }
  49.   else if (EntityMethodInterfaceClass::m_lock_method_guid == iVar2) {
  50.     CathodeProfileNode::CathodeProfileNode(aCStack72,"lock");
  51.     push_entity_guid_context();
  52.     add_entity_guid_context(param_3);
  53.     if (*(char *)(EntityManager::m_instance + 0x182) != '\0') {
  54.       *(undefined *)(EntityManager::m_instance + 0x182) = 0;
  55.       iVar2 = CA::running_in_debugger();
  56.       if (iVar2 != 0) {
  57.         _DebugBreak();
  58.       }
  59.     }
  60.     bVar1 = (bool)(**(code **)(*(long *)this + 0x588))(this,param_3,param_4);
  61.     *param_2 = bVar1;
  62.     pop_entity_guid_context();
  63.     this_00 = aCStack72;
  64.   }
  65.   else {
  66.     if (EntityMethodInterfaceClass::m_unlock_method_guid != iVar2) {
  67.       return 0;
  68.     }
  69.     CathodeProfileNode::CathodeProfileNode(aCStack80,"unlock");
  70.     push_entity_guid_context();
  71.     add_entity_guid_context(param_3);
  72.     if (*(char *)(EntityManager::m_instance + 0x182) != '\0') {
  73.       *(undefined *)(EntityManager::m_instance + 0x182) = 0;
  74.       iVar2 = CA::running_in_debugger();
  75.       if (iVar2 != 0) {
  76.         _DebugBreak();
  77.       }
  78.     }
  79.     bVar1 = (bool)(**(code **)(*(long *)this + 0x590))(this,param_3,param_4);
  80.     *param_2 = bVar1;
  81.     pop_entity_guid_context();
  82.   }
  83.   CathodeProfileNode::~CathodeProfileNode(this_00);
  84.   return 1;
  85. }
Advertisement
RAW Paste Data Copied
Advertisement