{"type": "func", "start": 4299591776, "end": 4299592078, "name": "CreateParticlePopup::onSelectParticleTexture", "pseudocode": "// \n// CreateParticlePopup::onSelectParticleTexture from 0x100469060 to 0x10046918e (302 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::init @ 0x100466c2f\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 12:30:30 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onSelectParticleTexture(__int64 a1, __int64 a2)\n{\n  int v2; // ecx\n  int v3; // eax\n  __int64 v4; // r15\n  __int64 v5; // r12\n  __int64 v6; // rax\n  const char *CString; // rax\n  __int64 v8; // rax\n  __int64 v9; // r14\n  __int64 v10; // r15\n  __int64 v11; // r12\n  unsigned int *v12; // rax\n  double v14; // [rsp+0h] [rbp-30h] BYREF\n  double v15[5]; // [rsp+8h] [rbp-28h] BYREF\n\n  if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) <= 0\n    || (v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2), v3 = 361, v2 <= 361) )\n  {\n    if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) <= 0 )\n      v3 = 0;\n    else\n      v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  }\n  *(_DWORD *)(a1 + 992) = v3;\n  v4 = *(_QWORD *)(a1 + 712);\n  v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v6 = sub_10088E820(\"particle_%02d_001.png\", SLOBYTE(v14));\n  CString = (const char *)cocos2d::CCString::getCString(v6);\n  v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, CString);\n  cocos2d::CCParticleSystemQuad::setDisplayFrame(v4, v8);\n  CreateParticlePopup::updateParticleValueForType(a1, 63, 0, (float)*(int *)(a1 + 992));\n  CreateParticlePopup::applyTexturePage(a1);\n  v9 = *(_QWORD *)(a1 + 888);\n  v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 512LL))(v9);\n  v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 512LL))(a2);\n  v12 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);\n  cocos2d::CCNode::convertToWorldSpace(v15, v11, v12);\n  cocos2d::CCNode::convertToNodeSpace(&v14, v10, (unsigned int *)v15);\n  return (*(__int64 (__fastcall **)(__int64, double *))(*(_QWORD *)v9 + 184LL))(v9, &v14);\n}", "assembly": "; \n; CreateParticlePopup::onSelectParticleTexture from 0x100469060 to 0x10046918e (302 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::init @ 0x100466c2f\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 12:30:30 +0000\n; \npush    rbp                                                            ; +0x0, 0x100469060\nmov     rbp, rsp                                                       ; +0x1, 0x100469061\npush    r15                                                            ; +0x4, 0x100469064\npush    r14                                                            ; +0x6, 0x100469066\npush    r12                                                            ; +0x8, 0x100469068\npush    rbx                                                            ; +0xa, 0x10046906a\nsub     rsp, 10h                                                       ; +0xb, 0x10046906b\nmov     rbx, rsi                                                       ; +0xf, 0x10046906f\nmov     r14, rdi                                                       ; +0x12, 0x100469072\nmov     rax, [rsi]                                                     ; +0x15, 0x100469075\nmov     rdi, rsi                                                       ; +0x18, 0x100469078\ncall    qword ptr [rax+40h]                                            ; +0x1b, 0x10046907b\ntest    eax, eax                                                       ; +0x1e, 0x10046907e\njle     short loc_10046909A                                            ; +0x20, 0x100469080\nmov     rax, [rbx]                                                     ; +0x22, 0x100469082\nmov     rdi, rbx                                                       ; +0x25, 0x100469085\ncall    qword ptr [rax+40h]                                            ; +0x28, 0x100469088\nmov     ecx, eax                                                       ; +0x2b, 0x10046908b\nmov     eax, 169h                                                      ; +0x2d, 0x10046908d\ncmp     ecx, 169h                                                      ; +0x32, 0x100469092\njg      short loc_1004690B4                                            ; +0x38, 0x100469098\nmov     rax, [rbx]                                                     ; +0x3a, 0x10046909a\nmov     rdi, rbx                                                       ; +0x3d, 0x10046909d\ncall    qword ptr [rax+40h]                                            ; +0x40, 0x1004690a0\ntest    eax, eax                                                       ; +0x43, 0x1004690a3\njle     short loc_1004690B2                                            ; +0x45, 0x1004690a5\nmov     rax, [rbx]                                                     ; +0x47, 0x1004690a7\nmov     rdi, rbx                                                       ; +0x4a, 0x1004690aa\ncall    qword ptr [rax+40h]                                            ; +0x4d, 0x1004690ad\njmp     short loc_1004690B4                                            ; +0x50, 0x1004690b0\nxor     eax, eax                                                       ; +0x52, 0x1004690b2\nmov     [r14+3E0h], eax                                                ; +0x54, 0x1004690b4\nmov     r15, [r14+2C8h]                                                ; +0x5b, 0x1004690bb\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x62, 0x1004690c2\nmov     r12, rax                                                       ; +0x67, 0x1004690c7\nmov     esi, [r14+3E0h]                                                ; +0x6a, 0x1004690ca\nlea     rdi, aParticle02d001; \"particle_%02d_001.png\"                  ; +0x71, 0x1004690d1\nxor     eax, eax                                                       ; +0x78, 0x1004690d8\ncall    sub_10088E820                                                  ; +0x7a, 0x1004690da\nmov     rdi, rax                                                       ; +0x7f, 0x1004690df\ncall    cocos2d__CCString__getCString                                  ; +0x82, 0x1004690e2\nmov     rdi, r12                                                       ; +0x87, 0x1004690e7\nmov     rsi, rax                                                       ; +0x8a, 0x1004690ea\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x8d, 0x1004690ed\nmov     rdi, r15                                                       ; +0x92, 0x1004690f2\nmov     rsi, rax                                                       ; +0x95, 0x1004690f5\ncall    cocos2d__CCParticleSystemQuad__setDisplayFrame                 ; +0x98, 0x1004690f8\ncvtsi2ss xmm0, dword ptr [r14+3E0h]                                    ; +0x9d, 0x1004690fd\nmov     rdi, r14                                                       ; +0xa6, 0x100469106\nmov     esi, 3Fh ; '?'                                                 ; +0xa9, 0x100469109\nxor     edx, edx                                                       ; +0xae, 0x10046910e\ncall    CreateParticlePopup__updateParticleValueForType                ; +0xb0, 0x100469110\nmov     rdi, r14                                                       ; +0xb5, 0x100469115\ncall    CreateParticlePopup__applyTexturePage                          ; +0xb8, 0x100469118\nmov     r14, [r14+378h]                                                ; +0xbd, 0x10046911d\nmov     rax, [r14]                                                     ; +0xc4, 0x100469124\nmov     rdi, r14                                                       ; +0xc7, 0x100469127\ncall    qword ptr [rax+200h]                                           ; +0xca, 0x10046912a\nmov     r15, rax                                                       ; +0xd0, 0x100469130\nmov     rax, [rbx]                                                     ; +0xd3, 0x100469133\nmov     rdi, rbx                                                       ; +0xd6, 0x100469136\ncall    qword ptr [rax+200h]                                           ; +0xd9, 0x100469139\nmov     r12, rax                                                       ; +0xdf, 0x10046913f\nmov     rax, [rbx]                                                     ; +0xe2, 0x100469142\nmov     rdi, rbx                                                       ; +0xe5, 0x100469145\ncall    qword ptr [rax+0C0h]                                           ; +0xe8, 0x100469148\nlea     rbx, [rbp+var_28]                                              ; +0xee, 0x10046914e\nmov     rdi, rbx                                                       ; +0xf2, 0x100469152\nmov     rsi, r12                                                       ; +0xf5, 0x100469155\nmov     rdx, rax                                                       ; +0xf8, 0x100469158\ncall    cocos2d__CCNode__convertToWorldSpace                           ; +0xfb, 0x10046915b\nlea     r12, [rbp+var_30]                                              ; +0x100, 0x100469160\nmov     rdi, r12                                                       ; +0x104, 0x100469164\nmov     rsi, r15                                                       ; +0x107, 0x100469167\nmov     rdx, rbx                                                       ; +0x10a, 0x10046916a\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x10d, 0x10046916d\nmov     rax, [r14]                                                     ; +0x112, 0x100469172\nmov     rdi, r14                                                       ; +0x115, 0x100469175\nmov     rsi, r12                                                       ; +0x118, 0x100469178\ncall    qword ptr [rax+0B8h]                                           ; +0x11b, 0x10046917b\nadd     rsp, 10h                                                       ; +0x121, 0x100469181\npop     rbx                                                            ; +0x125, 0x100469185\npop     r12                                                            ; +0x126, 0x100469186\npop     r14                                                            ; +0x128, 0x100469188\npop     r15                                                            ; +0x12a, 0x10046918a\npop     rbp                                                            ; +0x12c, 0x10046918c\nretn                                                                   ; +0x12d, 0x10046918d", "xrefs": ["CreateParticlePopup::init @ 0x100466c2f"], "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"}