{"type": "func", "start": 6442521296, "end": 6442521375, "name": "cocos2d::extension::CCEditBox::registerScriptEditBoxHandler", "pseudocode": "// \n// cocos2d::extension::CCEditBox::registerScriptEditBoxHandler from 0x1800112d0 to 0x18001131f (79 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a254\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::CCEditBox::registerScriptEditBoxHandler(\n        cocos2d::extension::CCEditBox *this,\n        int a2)\n{\n  _QWORD *v4; // rax\n\n  if ( *((_DWORD *)this + 190) )\n  {\n    v4 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager();\n    (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v4 + 24LL))(*v4, *((unsigned int *)this + 190));\n    *((_DWORD *)this + 190) = a2;\n  }\n  else\n  {\n    *((_DWORD *)this + 190) = a2;\n  }\n}", "assembly": "; \n; cocos2d::extension::CCEditBox::registerScriptEditBoxHandler from 0x1800112d0 to 0x18001131f (79 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a254\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, 0x1800112d0\npush    rdi                                                            ; +0x5, 0x1800112d5\nsub     rsp, 20h                                                       ; +0x6, 0x1800112d6\ncmp     dword ptr [rcx+2F8h], 0                                        ; +0xa, 0x1800112da\nmov     edi, edx                                                       ; +0x11, 0x1800112e1\nmov     rbx, rcx                                                       ; +0x13, 0x1800112e3\njz      short loc_18001130E                                            ; +0x16, 0x1800112e6\ncall    cs:?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x18, 0x1800112e8\nmov     edx, [rbx+2F8h]                                                ; +0x1e, 0x1800112ee\nmov     rcx, [rax]                                                     ; +0x24, 0x1800112f4\nmov     rax, [rcx]                                                     ; +0x27, 0x1800112f7\ncall    qword ptr [rax+18h]                                            ; +0x2a, 0x1800112fa\nmov     [rbx+2F8h], edi                                                ; +0x2d, 0x1800112fd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x33, 0x180011303\nadd     rsp, 20h                                                       ; +0x38, 0x180011308\npop     rdi                                                            ; +0x3c, 0x18001130c\nretn                                                                   ; +0x3d, 0x18001130d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x18001130e\nmov     [rcx+2F8h], edi                                                ; +0x43, 0x180011313\nadd     rsp, 20h                                                       ; +0x49, 0x180011319\npop     rdi                                                            ; +0x4d, 0x18001131d\nretn                                                                   ; +0x4e, 0x18001131e", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x18004a254"], "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"}