{"type": "func", "start": 5374782096, "end": 5374782407, "name": "CreateParticlePopup::onClose", "pseudocode": "// \n// CreateParticlePopup::onClose from 0x1405caa90 to 0x1405cabc7 (311 bytes)\n// \n// 5 xrefs:\n// > CreateParticlePopup::keyBackClicked @ 0x1405cabd9\n// > CreateParticlePopup::init @ 0x1405c1e54\n// > <???> @ 0x1408e0abc\n// > <???> @ 0x1408e0af4\n// > <???> @ 0x14092e454\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:34:52 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onClose(__int64 a1)\n{\n  __int64 v2; // rdx\n  unsigned __int8 *v3; // rax\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // ebp\n  struct cocos2d::CCObject *v6; // rsi\n  struct cocos2d::CCObject *v7; // rdi\n  unsigned __int8 *v8; // rax\n  unsigned __int8 v10[40]; // [rsp+20h] [rbp-28h] BYREF\n\n  CreateParticlePopup::willClose((cocos2d::CCArray **)a1);\n  if ( *(_QWORD *)(a1 + 680) )\n  {\n    v3 = GameToolbox::saveParticleToString(v10, *(_QWORD *)(a1 + 712));\n    ParticleGameObject::setParticleString(*(_QWORD *)(a1 + 680), v3);\n    *(_DWORD *)(*(_QWORD *)(a1 + 680) + 1804LL) = *(_DWORD *)(a1 + 996);\n    *(_BYTE *)(*(_QWORD *)(a1 + 680) + 1800LL) = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 748LL);\n    ParticleGameObject::updateParticle(*(_QWORD *)(a1 + 680));\n  }\n  else\n  {\n    v4 = *(cocos2d::CCArray **)(a1 + 688);\n    if ( v4 )\n    {\n      v5 = 0;\n      if ( cocos2d::CCArray::count(v4) )\n      {\n        do\n        {\n          v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v5);\n          v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 696), v5);\n          v8 = GameToolbox::saveParticleToString(v10, (__int64)v7);\n          ParticleGameObject::setParticleString(v6, v8);\n          *((_BYTE *)v6 + 1800) = *((_BYTE *)v7 + 748);\n          ParticleGameObject::updateParticle(v6);\n          ++v5;\n        }\n        while ( v5 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );\n      }\n    }\n  }\n  LOBYTE(v2) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v2);\n}", "assembly": "; \n; CreateParticlePopup::onClose from 0x1405caa90 to 0x1405cabc7 (311 bytes)\n; \n; 5 xrefs:\n; > CreateParticlePopup::keyBackClicked @ 0x1405cabd9\n; > CreateParticlePopup::init @ 0x1405c1e54\n; > <???> @ 0x1408e0abc\n; > <???> @ 0x1408e0af4\n; > <???> @ 0x14092e454\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:34:52 +0000\n; \npush    rbx                                                            ; +0x0, 0x1405caa90\nsub     rsp, 40h                                                       ; +0x2, 0x1405caa92\nmov     rbx, rcx                                                       ; +0x6, 0x1405caa96\ncall    CreateParticlePopup__willClose                                 ; +0x9, 0x1405caa99\ncmp     qword ptr [rbx+2A8h], 0                                        ; +0xe, 0x1405caa9e\njz      short loc_1405CAB07                                            ; +0x16, 0x1405caaa6\nmov     rdx, [rbx+2C8h]                                                ; +0x18, 0x1405caaa8\nlea     rcx, [rsp+48h+var_28]                                          ; +0x1f, 0x1405caaaf\ncall    GameToolbox__saveParticleToString                              ; +0x24, 0x1405caab4\nmov     rcx, [rbx+2A8h]                                                ; +0x29, 0x1405caab9\nmov     rdx, rax                                                       ; +0x30, 0x1405caac0\ncall    ParticleGameObject__setParticleString                          ; +0x33, 0x1405caac3\nmov     rcx, [rbx+2A8h]                                                ; +0x38, 0x1405caac8\nmov     eax, [rbx+3E4h]                                                ; +0x3f, 0x1405caacf\nmov     [rcx+70Ch], eax                                                ; +0x45, 0x1405caad5\nmov     rax, [rbx+2C8h]                                                ; +0x4b, 0x1405caadb\nmov     rcx, [rbx+2A8h]                                                ; +0x52, 0x1405caae2\nmovzx   eax, byte ptr [rax+2ECh]                                       ; +0x59, 0x1405caae9\nmov     [rcx+708h], al                                                 ; +0x60, 0x1405caaf0\nmov     rcx, [rbx+2A8h]                                                ; +0x66, 0x1405caaf6\ncall    ParticleGameObject__updateParticle                             ; +0x6d, 0x1405caafd\njmp     loc_1405CABB3                                                  ; +0x72, 0x1405cab02\nmov     rcx, [rbx+2B0h]                                                ; +0x77, 0x1405cab07\ntest    rcx, rcx                                                       ; +0x7e, 0x1405cab0e\njz      loc_1405CABB3                                                  ; +0x81, 0x1405cab11\nmov     [rsp+48h+arg_8], rbp                                           ; +0x87, 0x1405cab17\nxor     ebp, ebp                                                       ; +0x8c, 0x1405cab1c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8e, 0x1405cab1e\ntest    eax, eax                                                       ; +0x94, 0x1405cab24\njz      loc_1405CABAE                                                  ; +0x96, 0x1405cab26\nmov     [rsp+48h+arg_10], rsi                                          ; +0x9c, 0x1405cab2c\nmov     [rsp+48h+arg_18], rdi                                          ; +0xa1, 0x1405cab31\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa6, 0x1405cab36\nmov     rcx, [rbx+2B0h]                                                ; +0xb0, 0x1405cab40\nmov     edx, ebp                                                       ; +0xb7, 0x1405cab47\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb9, 0x1405cab49\nmov     rcx, [rbx+2B8h]                                                ; +0xbf, 0x1405cab4f\nmov     edx, ebp                                                       ; +0xc6, 0x1405cab56\nmov     rsi, rax                                                       ; +0xc8, 0x1405cab58\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xcb, 0x1405cab5b\nmov     rdx, rax                                                       ; +0xd1, 0x1405cab61\nlea     rcx, [rsp+48h+var_28]                                          ; +0xd4, 0x1405cab64\nmov     rdi, rax                                                       ; +0xd9, 0x1405cab69\ncall    GameToolbox__saveParticleToString                              ; +0xdc, 0x1405cab6c\nmov     rdx, rax                                                       ; +0xe1, 0x1405cab71\nmov     rcx, rsi                                                       ; +0xe4, 0x1405cab74\ncall    ParticleGameObject__setParticleString                          ; +0xe7, 0x1405cab77\nmovzx   eax, byte ptr [rdi+2ECh]                                       ; +0xec, 0x1405cab7c\nmov     rcx, rsi                                                       ; +0xf3, 0x1405cab83\nmov     [rsi+708h], al                                                 ; +0xf6, 0x1405cab86\ncall    ParticleGameObject__updateParticle                             ; +0xfc, 0x1405cab8c\nmov     rcx, [rbx+2B0h]                                                ; +0x101, 0x1405cab91\ninc     ebp                                                            ; +0x108, 0x1405cab98\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x10a, 0x1405cab9a\ncmp     ebp, eax                                                       ; +0x110, 0x1405caba0\njb      short loc_1405CAB40                                            ; +0x112, 0x1405caba2\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x114, 0x1405caba4\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x119, 0x1405caba9\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x11e, 0x1405cabae\nmov     rax, [rbx]                                                     ; +0x123, 0x1405cabb3\nmov     dl, 1                                                          ; +0x126, 0x1405cabb6\nmov     rcx, rbx                                                       ; +0x128, 0x1405cabb8\nadd     rsp, 40h                                                       ; +0x12b, 0x1405cabbb\npop     rbx                                                            ; +0x12f, 0x1405cabbf\njmp     qword ptr [rax+208h]                                           ; +0x130, 0x1405cabc0", "xrefs": ["CreateParticlePopup::keyBackClicked @ 0x1405cabd9", "CreateParticlePopup::init @ 0x1405c1e54", "<???> @ 0x1408e0abc", "<???> @ 0x1408e0af4", "<???> @ 0x14092e454"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}