{"type": "func", "start": 5373566224, "end": 5373566369, "name": "RingObject::powerOnObject", "pseudocode": "// \n// RingObject::powerOnObject from 0x1404a1d10 to 0x1404a1da1 (145 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1406116f8\n// > <???> @ 0x140614180\n// > <???> @ 0x14061cc88\n// > <???> @ 0x1406dc728\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid RingObject::powerOnObject(RingObject *a1, int a2)\n{\n  bool m_isRingPoweredOn; // al\n  __int64 v4; // rax\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  m_isRingPoweredOn = a1->m_isRingPoweredOn;\n  a1->m_poweredOn = 1;\n  a1->m_state = a2;\n  a1->m_isRingPoweredOn = 1;\n  if ( !m_isRingPoweredOn )\n  {\n    v4 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v5 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = qword_1406C2ED8;\n    }\n    if ( !*(_BYTE *)(v4 + 917) && !*(_BYTE *)(v4 + 698) && !a1->m_hasNoEffects )\n      RingObject::spawnCircle(a1);\n  }\n}", "assembly": "; \n; RingObject::powerOnObject from 0x1404a1d10 to 0x1404a1da1 (145 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1406116f8\n; > <???> @ 0x140614180\n; > <???> @ 0x14061cc88\n; > <???> @ 0x1406dc728\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1404a1d10\nsub     rsp, 20h                                                       ; +0x2, 0x1404a1d12\nmov     rbx, rcx                                                       ; +0x6, 0x1404a1d16\nmovzx   eax, byte ptr [rcx+2F8h]                                       ; +0x9, 0x1404a1d19\nmov     byte ptr [rcx+550h], 1                                         ; +0x10, 0x1404a1d20\nmov     [rcx+554h], edx                                                ; +0x17, 0x1404a1d27\nmov     byte ptr [rcx+2F8h], 1                                         ; +0x1d, 0x1404a1d2d\ntest    al, al                                                         ; +0x24, 0x1404a1d34\njnz     short loc_1404A1D9B                                            ; +0x26, 0x1404a1d36\nmov     rax, cs:qword_1406C2ED8                                        ; +0x28, 0x1404a1d38\ntest    rax, rax                                                       ; +0x2f, 0x1404a1d3f\njnz     short loc_1404A1D73                                            ; +0x32, 0x1404a1d42\nmov     ecx, 668h; Size                                                ; +0x34, 0x1404a1d44\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x39, 0x1404a1d49\nmov     [rsp+28h+arg_0], rax                                           ; +0x3e, 0x1404a1d4e\nmov     rcx, rax                                                       ; +0x43, 0x1404a1d53\ncall    sub_14017AB00                                                  ; +0x46, 0x1404a1d56\nnop                                                                    ; +0x4b, 0x1404a1d5b\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4c, 0x1404a1d5c\nmov     rdx, [rax]                                                     ; +0x53, 0x1404a1d63\nmov     rcx, rax                                                       ; +0x56, 0x1404a1d66\ncall    qword ptr [rdx+48h]                                            ; +0x59, 0x1404a1d69\nmov     rax, cs:qword_1406C2ED8                                        ; +0x5c, 0x1404a1d6c\ncmp     byte ptr [rax+395h], 0                                         ; +0x63, 0x1404a1d73\njnz     short loc_1404A1D9B                                            ; +0x6a, 0x1404a1d7a\ncmp     byte ptr [rax+2BAh], 0                                         ; +0x6c, 0x1404a1d7c\njnz     short loc_1404A1D9B                                            ; +0x73, 0x1404a1d83\ncmp     byte ptr [rbx+41Ch], 0                                         ; +0x75, 0x1404a1d85\njnz     short loc_1404A1D9B                                            ; +0x7c, 0x1404a1d8c\nmov     rcx, rbx                                                       ; +0x7e, 0x1404a1d8e\nadd     rsp, 20h                                                       ; +0x81, 0x1404a1d91\npop     rbx                                                            ; +0x85, 0x1404a1d95\njmp     RingObject__spawnCircle                                        ; +0x86, 0x1404a1d96\nadd     rsp, 20h                                                       ; +0x8b, 0x1404a1d9b\npop     rbx                                                            ; +0x8f, 0x1404a1d9f\nretn                                                                   ; +0x90, 0x1404a1da0", "xrefs": ["<???> @ 0x1406116f8", "<???> @ 0x140614180", "<???> @ 0x14061cc88", "<???> @ 0x1406dc728"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}