{"type": "func", "start": 4297072496, "end": 4297072812, "name": "GameEffectsManager::scaleParticle", "pseudocode": "// \n// GameEffectsManager::scaleParticle from 0x100201f70 to 0x1002020ac (316 bytes)\n// \n// 0 xrefs:\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 GameEffectsManager::scaleParticle(GameEffectsManager *a1, cocos2d::CCParticleSystemQuad *a2, float a3)\n{\n  int v3; // eax\n  cocos2d::CCParticleSystemQuad_vtbl *v4; // rcx\n  float v5; // xmm0_4\n  float v6; // xmm0_4\n  float v7; // xmm0_4\n  float v8; // xmm0_4\n  float v9; // xmm0_4\n  __int64 v10; // rax\n  float v11; // xmm0_4\n  float v12; // xmm0_4\n  _BYTE v13[8]; // [rsp+4h] [rbp-1Ch] BYREF\n  float v14; // [rsp+Ch] [rbp-14h]\n\n  v14 = a3;\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a2->getPositionType)(a2);\n  v4 = a2->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( v3 == 2 )\n  {\n    v5 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v4->getScale)(a2);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a2->setScale)(a2, v5 * v14);\n  }\n  else\n  {\n    v6 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v4->getStartSize)(a2);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a2->setStartSize)(a2, v6 * v14);\n    v7 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a2->getStartSizeVar)(a2);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a2->setStartSizeVar)(a2, v7 * v14);\n    v8 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a2->getEndSize)(a2);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a2->setEndSize)(a2, v8 * v14);\n    v9 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a2->getEndSizeVar)(a2);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a2->setEndSizeVar)(a2, v9 * v14);\n    v10 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a2->getPosVar)(a2);\n    sub_10028CD40(v13, v10, v14);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _BYTE *))a2->setPosVar)(a2, v13);\n    if ( !((unsigned int (__fastcall *)(cocos2d::CCParticleSystemQuad *))a2->getEmitterMode)(a2) )\n    {\n      v11 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a2->getSpeed)(a2);\n      ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a2->setSpeed)(a2, v11 * v14);\n      v12 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a2->getSpeedVar)(a2);\n      ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a2->setSpeedVar)(a2, v12 * v14);\n    }\n  }\n}", "assembly": "; \n; GameEffectsManager::scaleParticle from 0x100201f70 to 0x1002020ac (316 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x100201f70\nmov     rbp, rsp                                                       ; +0x1, 0x100201f71\npush    r14                                                            ; +0x4, 0x100201f74\npush    rbx                                                            ; +0x6, 0x100201f76\nsub     rsp, 10h                                                       ; +0x7, 0x100201f77\nmovss   [rbp+var_14], xmm0                                             ; +0xb, 0x100201f7b\nmov     rbx, rsi                                                       ; +0x10, 0x100201f80\nmov     rax, [rsi]                                                     ; +0x13, 0x100201f83\nmov     rdi, rsi                                                       ; +0x16, 0x100201f86\ncall    qword ptr [rax+608h]                                           ; +0x19, 0x100201f89\nmov     rcx, [rbx]                                                     ; +0x1f, 0x100201f8f\nmov     rdi, rbx                                                       ; +0x22, 0x100201f92\ncmp     eax, 2                                                         ; +0x25, 0x100201f95\njnz     short loc_100201FBC                                            ; +0x28, 0x100201f98\ncall    qword ptr [rcx+0A8h]                                           ; +0x2a, 0x100201f9a\nmulss   xmm0, [rbp+var_14]                                             ; +0x30, 0x100201fa0\nmov     rax, [rbx]                                                     ; +0x35, 0x100201fa5\nmov     rax, [rax+0A0h]                                                ; +0x38, 0x100201fa8\nmov     rdi, rbx                                                       ; +0x3f, 0x100201faf\nadd     rsp, 10h                                                       ; +0x42, 0x100201fb2\npop     rbx                                                            ; +0x46, 0x100201fb6\npop     r14                                                            ; +0x47, 0x100201fb7\npop     rbp                                                            ; +0x49, 0x100201fb9\njmp     rax                                                            ; +0x4a, 0x100201fba\ncall    qword ptr [rcx+4F8h]                                           ; +0x4c, 0x100201fbc\nmulss   xmm0, [rbp+var_14]                                             ; +0x52, 0x100201fc2\nmov     rax, [rbx]                                                     ; +0x57, 0x100201fc7\nmov     rdi, rbx                                                       ; +0x5a, 0x100201fca\ncall    qword ptr [rax+500h]                                           ; +0x5d, 0x100201fcd\nmov     rax, [rbx]                                                     ; +0x63, 0x100201fd3\nmov     rdi, rbx                                                       ; +0x66, 0x100201fd6\ncall    qword ptr [rax+508h]                                           ; +0x69, 0x100201fd9\nmulss   xmm0, [rbp+var_14]                                             ; +0x6f, 0x100201fdf\nmov     rax, [rbx]                                                     ; +0x74, 0x100201fe4\nmov     rdi, rbx                                                       ; +0x77, 0x100201fe7\ncall    qword ptr [rax+510h]                                           ; +0x7a, 0x100201fea\nmov     rax, [rbx]                                                     ; +0x80, 0x100201ff0\nmov     rdi, rbx                                                       ; +0x83, 0x100201ff3\ncall    qword ptr [rax+518h]                                           ; +0x86, 0x100201ff6\nmulss   xmm0, [rbp+var_14]                                             ; +0x8c, 0x100201ffc\nmov     rax, [rbx]                                                     ; +0x91, 0x100202001\nmov     rdi, rbx                                                       ; +0x94, 0x100202004\ncall    qword ptr [rax+520h]                                           ; +0x97, 0x100202007\nmov     rax, [rbx]                                                     ; +0x9d, 0x10020200d\nmov     rdi, rbx                                                       ; +0xa0, 0x100202010\ncall    qword ptr [rax+528h]                                           ; +0xa3, 0x100202013\nmulss   xmm0, [rbp+var_14]                                             ; +0xa9, 0x100202019\nmov     rax, [rbx]                                                     ; +0xae, 0x10020201e\nmov     rdi, rbx                                                       ; +0xb1, 0x100202021\ncall    qword ptr [rax+530h]                                           ; +0xb4, 0x100202024\nmov     rax, [rbx]                                                     ; +0xba, 0x10020202a\nmov     rdi, rbx                                                       ; +0xbd, 0x10020202d\ncall    qword ptr [rax+3A8h]                                           ; +0xc0, 0x100202030\nlea     r14, [rbp+var_1C]                                              ; +0xc6, 0x100202036\nmov     rdi, r14                                                       ; +0xca, 0x10020203a\nmov     rsi, rax                                                       ; +0xcd, 0x10020203d\nmovss   xmm0, [rbp+var_14]                                             ; +0xd0, 0x100202040\ncall    sub_10028CD40                                                  ; +0xd5, 0x100202045\nmov     rax, [rbx]                                                     ; +0xda, 0x10020204a\nmov     rdi, rbx                                                       ; +0xdd, 0x10020204d\nmov     rsi, r14                                                       ; +0xe0, 0x100202050\ncall    qword ptr [rax+3B0h]                                           ; +0xe3, 0x100202053\nmov     rax, [rbx]                                                     ; +0xe9, 0x100202059\nmov     rdi, rbx                                                       ; +0xec, 0x10020205c\ncall    qword ptr [rax+628h]                                           ; +0xef, 0x10020205f\ntest    eax, eax                                                       ; +0xf5, 0x100202065\njnz     short loc_1002020A3                                            ; +0xf7, 0x100202067\nmov     rax, [rbx]                                                     ; +0xf9, 0x100202069\nmov     rdi, rbx                                                       ; +0xfc, 0x10020206c\ncall    qword ptr [rax+410h]                                           ; +0xff, 0x10020206f\nmulss   xmm0, [rbp+var_14]                                             ; +0x105, 0x100202075\nmov     rax, [rbx]                                                     ; +0x10a, 0x10020207a\nmov     rdi, rbx                                                       ; +0x10d, 0x10020207d\ncall    qword ptr [rax+418h]                                           ; +0x110, 0x100202080\nmov     rax, [rbx]                                                     ; +0x116, 0x100202086\nmov     rdi, rbx                                                       ; +0x119, 0x100202089\ncall    qword ptr [rax+420h]                                           ; +0x11c, 0x10020208c\nmulss   xmm0, [rbp+var_14]                                             ; +0x122, 0x100202092\nmov     rax, [rbx]                                                     ; +0x127, 0x100202097\nmov     rdi, rbx                                                       ; +0x12a, 0x10020209a\ncall    qword ptr [rax+428h]                                           ; +0x12d, 0x10020209d\nadd     rsp, 10h                                                       ; +0x133, 0x1002020a3\npop     rbx                                                            ; +0x137, 0x1002020a7\npop     r14                                                            ; +0x138, 0x1002020a8\npop     rbp                                                            ; +0x13a, 0x1002020aa\nretn                                                                   ; +0x13b, 0x1002020ab", "xrefs": [], "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"}