{"type": "func", "start": 6443058064, "end": 6443058212, "name": "sub_180094390", "pseudocode": "// \n// sub_180094390 from 0x180094390 to 0x180094424 (148 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180104368\n// > <???> @ 0x1801b66e4\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\ncocos2d::CCObject *__fastcall sub_180094390(cocos2d::CCObject *this, char a2)\n{\n  unsigned __int64 v4; // rdx\n  _QWORD *v5; // rcx\n\n  this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCProfilingTimer::`vftable';\n  v4 = *((_QWORD *)this + 10);\n  if ( v4 > 0xF )\n  {\n    v5 = *((_QWORD **)this + 7);\n    if ( v4 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v5 = (_QWORD *)*(v5 - 1);\n    }\n    j_j_free_0(v5);\n  }\n  *((_QWORD *)this + 9) = 0;\n  *((_QWORD *)this + 10) = 15;\n  *((_BYTE *)this + 56) = 0;\n  cocos2d::CCObject::~CCObject(this);\n  if ( (a2 & 1) != 0 )\n    j_j_free_0(this);\n  return this;\n}", "assembly": "; \n; sub_180094390 from 0x180094390 to 0x180094424 (148 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180104368\n; > <???> @ 0x1801b66e4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180094390\npush    rdi                                                            ; +0x5, 0x180094395\nsub     rsp, 20h                                                       ; +0x6, 0x180094396\nlea     rax, ??_7CCProfilingTimer@cocos2d@@6B@; const cocos2d::CCProfilingTimer::`vftable' ; +0xa, 0x18009439a\nmov     edi, edx                                                       ; +0x11, 0x1800943a1\nmov     [rcx], rax                                                     ; +0x13, 0x1800943a3\nmov     rbx, rcx                                                       ; +0x16, 0x1800943a6\nmov     rdx, [rcx+50h]                                                 ; +0x19, 0x1800943a9\ncmp     rdx, 0Fh                                                       ; +0x1d, 0x1800943ad\njbe     short loc_1800943E0                                            ; +0x21, 0x1800943b1\nmov     rcx, [rcx+38h]                                                 ; +0x23, 0x1800943b3\ninc     rdx                                                            ; +0x27, 0x1800943b7\ncmp     rdx, 1000h                                                     ; +0x2a, 0x1800943ba\njb      short loc_1800943DB                                            ; +0x31, 0x1800943c1\nmov     r8, [rcx-8]                                                    ; +0x33, 0x1800943c3\nadd     rdx, 27h ; '''                                                 ; +0x37, 0x1800943c7\nsub     rcx, r8                                                        ; +0x3b, 0x1800943cb\nlea     rax, [rcx-8]                                                   ; +0x3e, 0x1800943ce\ncmp     rax, 1Fh                                                       ; +0x42, 0x1800943d2\nja      short loc_18009441D                                            ; +0x46, 0x1800943d6\nmov     rcx, r8; Block                                                 ; +0x48, 0x1800943d8\ncall    j_j_free_0                                                     ; +0x4b, 0x1800943db\nmov     rcx, rbx; this                                                 ; +0x50, 0x1800943e0\nmov     qword ptr [rbx+48h], 0                                         ; +0x53, 0x1800943e3\nmov     qword ptr [rbx+50h], 0Fh                                       ; +0x5b, 0x1800943eb\nmov     byte ptr [rbx+38h], 0                                          ; +0x63, 0x1800943f3\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x67, 0x1800943f7\ntest    dil, 1                                                         ; +0x6c, 0x1800943fc\njz      short loc_18009440F                                            ; +0x70, 0x180094400\nmov     edx, 80h                                                       ; +0x72, 0x180094402\nmov     rcx, rbx; Block                                                ; +0x77, 0x180094407\ncall    j_j_free_0                                                     ; +0x7a, 0x18009440a\nmov     rax, rbx                                                       ; +0x7f, 0x18009440f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x82, 0x180094412\nadd     rsp, 20h                                                       ; +0x87, 0x180094417\npop     rdi                                                            ; +0x8b, 0x18009441b\nretn                                                                   ; +0x8c, 0x18009441c\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x8d, 0x18009441d\ndb 0CCh                                                                ; +0x93, 0x180094423", "xrefs": ["<???> @ 0x180104368", "<???> @ 0x1801b66e4"], "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"}