{"type": "func", "start": 5373120688, "end": 5373120824, "name": "CreateParticlePopup::willClose", "pseudocode": "// \n// CreateParticlePopup::willClose from 0x1404350b0 to 0x140435138 (136 bytes)\n// \n// 5 xrefs:\n// > CreateParticlePopup::onPasteSettings @ 0x140431e49\n// > CreateParticlePopup::onClose @ 0x140435149\n// > <???> @ 0x1406a1518\n// > <???> @ 0x1406a1528\n// > <???> @ 0x1406d9cb0\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 CreateParticlePopup::willClose(CreateParticlePopup *a1)\n{\n  struct cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject_vtbl *v3; // rcx\n  cocos2d::CCObject_vtbl *i; // rbx\n  bool (__fastcall *canEncode)(cocos2d::CCObject *__hidden); // rcx\n  __int64 v6; // rax\n\n  v2 = cocos2d::CCArray::objectAtIndex(a1->m_inputDicts, 0);\n  if ( v2 )\n  {\n    v3 = v2[1].__vftable;\n    if ( v3 )\n    {\n      for ( i = (cocos2d::CCObject_vtbl *)v3[4].copyWithZone; ; i = (cocos2d::CCObject_vtbl *)i[4].copyWithZone )\n      {\n        canEncode = v3[3].canEncode;\n        v6 = *(_QWORD *)canEncode;\n        *((_QWORD *)canEncode + 70) = 0;\n        (*(void (__fastcall **)(bool (__fastcall *)(cocos2d::CCObject *__hidden), _QWORD))(v6 + 1016))(canEncode, 0);\n        v3 = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n  a1->setKeypadEnabled(a1, 0);\n}", "assembly": "; \n; CreateParticlePopup::willClose from 0x1404350b0 to 0x140435138 (136 bytes)\n; \n; 5 xrefs:\n; > CreateParticlePopup::onPasteSettings @ 0x140431e49\n; > CreateParticlePopup::onClose @ 0x140435149\n; > <???> @ 0x1406a1518\n; > <???> @ 0x1406a1528\n; > <???> @ 0x1406d9cb0\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    rdi                                                            ; +0x0, 0x1404350b0\nsub     rsp, 20h                                                       ; +0x2, 0x1404350b2\nmov     rdi, rcx                                                       ; +0x6, 0x1404350b6\nxor     edx, edx                                                       ; +0x9, 0x1404350b9\nmov     rcx, [rcx+2D0h]                                                ; +0xb, 0x1404350bb\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x12, 0x1404350c2\ntest    rax, rax                                                       ; +0x18, 0x1404350c8\njz      short loc_140435124                                            ; +0x1b, 0x1404350cb\nmov     rcx, [rax+38h]                                                 ; +0x1d, 0x1404350cd\ntest    rcx, rcx                                                       ; +0x21, 0x1404350d1\njz      short loc_140435124                                            ; +0x24, 0x1404350d4\nmov     [rsp+28h+arg_0], rbx                                           ; +0x26, 0x1404350d6\nmov     rbx, [rcx+120h]                                                ; +0x2b, 0x1404350db\nmov     [rsp+28h+arg_8], rsi                                           ; +0x32, 0x1404350e2\nxor     esi, esi                                                       ; +0x37, 0x1404350e7\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x1404350e9\nmov     rcx, [rcx+108h]                                                ; +0x40, 0x1404350f0\nxor     edx, edx                                                       ; +0x47, 0x1404350f7\nmov     rax, [rcx]                                                     ; +0x49, 0x1404350f9\nmov     [rcx+230h], rsi                                                ; +0x4c, 0x1404350fc\ncall    qword ptr [rax+3F8h]                                           ; +0x53, 0x140435103\nmov     rcx, rbx                                                       ; +0x59, 0x140435109\ntest    rbx, rbx                                                       ; +0x5c, 0x14043510c\njz      short loc_14043511A                                            ; +0x5f, 0x14043510f\nmov     rbx, [rbx+120h]                                                ; +0x61, 0x140435111\njmp     short loc_1404350F0                                            ; +0x68, 0x140435118\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6a, 0x14043511a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6f, 0x14043511f\nmov     rax, [rdi]                                                     ; +0x74, 0x140435124\nxor     edx, edx                                                       ; +0x77, 0x140435127\nmov     rcx, rdi                                                       ; +0x79, 0x140435129\nadd     rsp, 20h                                                       ; +0x7c, 0x14043512c\npop     rdi                                                            ; +0x80, 0x140435130\njmp     qword ptr [rax+3D0h]                                           ; +0x81, 0x140435131", "xrefs": ["CreateParticlePopup::onPasteSettings @ 0x140431e49", "CreateParticlePopup::onClose @ 0x140435149", "<???> @ 0x1406a1518", "<???> @ 0x1406a1528", "<???> @ 0x1406d9cb0"], "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"}