{"type": "func", "start": 6442522368, "end": 6442522560, "name": "cocos2d::extension::CCEditBoxImplWin::~CCEditBoxImplWin", "pseudocode": "// \n// cocos2d::extension::CCEditBoxImplWin::~CCEditBoxImplWin from 0x180011700 to 0x1800117c0 (192 bytes)\n// \n// 4 xrefs:\n// > sub_1800115B0 @ 0x180011612\n// > sub_1800115B0 @ 0x1800115cc\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a2a8\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\nvoid __fastcall cocos2d::extension::CCEditBoxImplWin::~CCEditBoxImplWin(cocos2d::extension::CCEditBoxImplWin *this)\n{\n  unsigned __int64 v2; // rdx\n  _QWORD *v3; // rcx\n  unsigned __int64 v4; // rdx\n  void *v5; // rcx\n\n  *(_QWORD *)this = &cocos2d::extension::CCEditBoxImplWin::`vftable';\n  v2 = *((_QWORD *)this + 14);\n  if ( v2 > 0xF )\n  {\n    v3 = *((_QWORD **)this + 11);\n    if ( v2 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )\n        goto LABEL_12;\n      v3 = (_QWORD *)*(v3 - 1);\n    }\n    j_j_free(v3);\n  }\n  *((_QWORD *)this + 13) = 0;\n  *((_QWORD *)this + 14) = 15;\n  *((_BYTE *)this + 88) = 0;\n  v4 = *((_QWORD *)this + 10);\n  if ( v4 > 0xF )\n  {\n    v5 = *((void **)this + 7);\n    if ( v4 + 1 < 0x1000 )\n    {\nLABEL_10:\n      j_j_free(v5);\n      goto LABEL_11;\n    }\n    if ( (unsigned __int64)v5 - *((_QWORD *)v5 - 1) - 8 <= 0x1F )\n    {\n      v5 = *((void **)v5 - 1);\n      goto LABEL_10;\n    }\nLABEL_12:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_11:\n  *((_QWORD *)this + 9) = 0;\n  *((_QWORD *)this + 10) = 15;\n  *((_BYTE *)this + 56) = 0;\n  *(_QWORD *)this = &cocos2d::extension::CCEditBoxImpl::`vftable';\n}", "assembly": "; \n; cocos2d::extension::CCEditBoxImplWin::~CCEditBoxImplWin from 0x180011700 to 0x1800117c0 (192 bytes)\n; \n; 4 xrefs:\n; > sub_1800115B0 @ 0x180011612\n; > sub_1800115B0 @ 0x1800115cc\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a2a8\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, 0x180011700\nsub     rsp, 20h                                                       ; +0x2, 0x180011702\nlea     rax, ??_7CCEditBoxImplWin@extension@cocos2d@@6B@; const cocos2d::extension::CCEditBoxImplWin::`vftable' ; +0x6, 0x180011706\nmov     rbx, rcx                                                       ; +0xd, 0x18001170d\nmov     [rcx], rax                                                     ; +0x10, 0x180011710\nmov     rdx, [rcx+70h]                                                 ; +0x13, 0x180011713\ncmp     rdx, 0Fh                                                       ; +0x17, 0x180011717\njbe     short loc_18001174A                                            ; +0x1b, 0x18001171b\nmov     rcx, [rcx+58h]                                                 ; +0x1d, 0x18001171d\ninc     rdx                                                            ; +0x21, 0x180011721\ncmp     rdx, 1000h                                                     ; +0x24, 0x180011724\njb      short loc_180011745                                            ; +0x2b, 0x18001172b\nmov     r8, [rcx-8]                                                    ; +0x2d, 0x18001172d\nadd     rdx, 27h ; '''                                                 ; +0x31, 0x180011731\nsub     rcx, r8                                                        ; +0x35, 0x180011735\nlea     rax, [rcx-8]                                                   ; +0x38, 0x180011738\ncmp     rax, 1Fh                                                       ; +0x3c, 0x18001173c\nja      short loc_1800117B9                                            ; +0x40, 0x180011740\nmov     rcx, r8; Block                                                 ; +0x42, 0x180011742\ncall    j_j_free                                                       ; +0x45, 0x180011745\nmov     qword ptr [rbx+68h], 0                                         ; +0x4a, 0x18001174a\nmov     qword ptr [rbx+70h], 0Fh                                       ; +0x52, 0x180011752\nmov     byte ptr [rbx+58h], 0                                          ; +0x5a, 0x18001175a\nmov     rdx, [rbx+50h]                                                 ; +0x5e, 0x18001175e\ncmp     rdx, 0Fh                                                       ; +0x62, 0x180011762\njbe     short loc_180011795                                            ; +0x66, 0x180011766\nmov     rcx, [rbx+38h]                                                 ; +0x68, 0x180011768\ninc     rdx                                                            ; +0x6c, 0x18001176c\ncmp     rdx, 1000h                                                     ; +0x6f, 0x18001176f\njb      short loc_180011790                                            ; +0x76, 0x180011776\nmov     r8, [rcx-8]                                                    ; +0x78, 0x180011778\nadd     rdx, 27h ; '''                                                 ; +0x7c, 0x18001177c\nsub     rcx, r8                                                        ; +0x80, 0x180011780\nlea     rax, [rcx-8]                                                   ; +0x83, 0x180011783\ncmp     rax, 1Fh                                                       ; +0x87, 0x180011787\nja      short loc_1800117B9                                            ; +0x8b, 0x18001178b\nmov     rcx, r8; Block                                                 ; +0x8d, 0x18001178d\ncall    j_j_free                                                       ; +0x90, 0x180011790\nlea     rax, ??_7CCEditBoxImpl@extension@cocos2d@@6B@; const cocos2d::extension::CCEditBoxImpl::`vftable' ; +0x95, 0x180011795\nmov     qword ptr [rbx+48h], 0                                         ; +0x9c, 0x18001179c\nmov     qword ptr [rbx+50h], 0Fh                                       ; +0xa4, 0x1800117a4\nmov     byte ptr [rbx+38h], 0                                          ; +0xac, 0x1800117ac\nmov     [rbx], rax                                                     ; +0xb0, 0x1800117b0\nadd     rsp, 20h                                                       ; +0xb3, 0x1800117b3\npop     rbx                                                            ; +0xb7, 0x1800117b7\nretn                                                                   ; +0xb8, 0x1800117b8\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb9, 0x1800117b9\nalign 20h                                                              ; +0xbf, 0x1800117bf", "xrefs": ["sub_1800115B0 @ 0x180011612", "sub_1800115B0 @ 0x1800115cc", "<???> @ 0x18002fdf8", "<???> @ 0x18004a2a8"], "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"}