{"type": "func", "start": 5372261136, "end": 5372261348, "name": "ColorAction::create", "pseudocode": "// \n// ColorAction::create from 0x140363310 to 0x1403633e4 (212 bytes)\n// \n// 18 xrefs:\n// > GJEffectManager::getColorAction @ 0x140365f35\n// > GJEffectManager::setupFromString @ 0x14036e5b7\n// > GJEffectManager::loadFromState @ 0x14036ec23\n// > LevelEditorLayer::init @ 0x1403ee93e\n// > LevelEditorLayer::init @ 0x1403ee9c7\n// > LevelEditorLayer::getNextColorChannel @ 0x1403f9bb2\n// > LevelEditorLayer::transferDefaultColors @ 0x1403fa75d\n// > LevelEditorLayer::transferDefaultColors @ 0x1403fa7dc\n// > LevelSettingsObject::init @ 0x14040ea6b\n// > LevelSettingsObject::init @ 0x14040eaca\n// > LevelSettingsObject::init @ 0x14040eb29\n// > LevelSettingsObject::init @ 0x14040eb88\n// > LevelSettingsObject::init @ 0x14040ebeb\n// > LevelSettingsObject::init @ 0x14040ec4a\n// > PlayLayer::setupHasCompleted @ 0x140504b28\n// > PlayLayer::setupHasCompleted @ 0x140504bbb\n// > CreateParticlePopup::onSelectColor @ 0x1405c6f33\n// > <???> @ 0x140921554\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:30:53 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *ColorAction::create()\n{\n  char *v1; // [rsp+30h] [rbp+8h]\n\n  v1 = (char *)operator new(0xA8u);\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)v1);\n  *(_QWORD *)v1 = &ColorAction::`vftable';\n  *((_WORD *)v1 + 28) = 0;\n  *((_QWORD *)v1 + 8) = 1065353216;\n  *((_DWORD *)v1 + 20) = 0;\n  v1[84] = 0;\n  *((_QWORD *)v1 + 11) = 0;\n  *((_DWORD *)v1 + 24) = 1065353216;\n  *((_DWORD *)v1 + 25) = 1065353216;\n  *(_OWORD *)(v1 + 104) = xmmword_1408FE490;\n  *((_DWORD *)v1 + 30) = 0;\n  *((_WORD *)v1 + 62) = 0;\n  v1[126] = 0;\n  *((_QWORD *)v1 + 16) = 0;\n  v1[136] = 0;\n  *((_QWORD *)v1 + 18) = 0;\n  *((_QWORD *)v1 + 19) = 0;\n  *((_QWORD *)v1 + 20) = 0;\n  *((_WORD *)v1 + 36) = -1;\n  v1[74] = -1;\n  *(_WORD *)(v1 + 75) = -1;\n  v1[77] = -1;\n  *((_DWORD *)v1 + 22) = -1;\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  return v1;\n}", "assembly": "; \n; ColorAction::create from 0x140363310 to 0x1403633e4 (212 bytes)\n; \n; 18 xrefs:\n; > GJEffectManager::getColorAction @ 0x140365f35\n; > GJEffectManager::setupFromString @ 0x14036e5b7\n; > GJEffectManager::loadFromState @ 0x14036ec23\n; > LevelEditorLayer::init @ 0x1403ee93e\n; > LevelEditorLayer::init @ 0x1403ee9c7\n; > LevelEditorLayer::getNextColorChannel @ 0x1403f9bb2\n; > LevelEditorLayer::transferDefaultColors @ 0x1403fa75d\n; > LevelEditorLayer::transferDefaultColors @ 0x1403fa7dc\n; > LevelSettingsObject::init @ 0x14040ea6b\n; > LevelSettingsObject::init @ 0x14040eaca\n; > LevelSettingsObject::init @ 0x14040eb29\n; > LevelSettingsObject::init @ 0x14040eb88\n; > LevelSettingsObject::init @ 0x14040ebeb\n; > LevelSettingsObject::init @ 0x14040ec4a\n; > PlayLayer::setupHasCompleted @ 0x140504b28\n; > PlayLayer::setupHasCompleted @ 0x140504bbb\n; > CreateParticlePopup::onSelectColor @ 0x1405c6f33\n; > <???> @ 0x140921554\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:30:53 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140363310\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140363315\npush    rdi                                                            ; +0xa, 0x14036331a\nsub     rsp, 20h                                                       ; +0xb, 0x14036331b\nmovzx   esi, cs:word_140703460                                         ; +0xf, 0x14036331f\nmovzx   edi, cs:byte_140703462                                         ; +0x16, 0x140363326\nmov     ecx, 0A8h; Size                                                ; +0x1d, 0x14036332d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x140363332\nmov     rbx, rax                                                       ; +0x27, 0x140363337\nmov     [rsp+28h+arg_0], rax                                           ; +0x2a, 0x14036333a\nmov     rcx, rax                                                       ; +0x2f, 0x14036333f\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x32, 0x140363342\nlea     rax, ??_7ColorAction@@6B@; const ColorAction::`vftable'        ; +0x38, 0x140363348\nmov     [rbx], rax                                                     ; +0x3f, 0x14036334f\nmov     word ptr [rbx+38h], 0                                          ; +0x42, 0x140363352\nmov     qword ptr [rbx+40h], 3F800000h                                 ; +0x48, 0x140363358\nxor     eax, eax                                                       ; +0x50, 0x140363360\nmov     [rbx+50h], eax                                                 ; +0x52, 0x140363362\nmov     [rbx+54h], al                                                  ; +0x55, 0x140363365\nmov     [rbx+58h], rax                                                 ; +0x58, 0x140363368\nmov     dword ptr [rbx+60h], 3F800000h                                 ; +0x5c, 0x14036336c\nmov     dword ptr [rbx+64h], 3F800000h                                 ; +0x63, 0x140363373\nmovups  xmm0, cs:xmmword_1408FE490                                     ; +0x6a, 0x14036337a\nmovups  xmmword ptr [rbx+68h], xmm0                                    ; +0x71, 0x140363381\nmov     [rbx+78h], eax                                                 ; +0x75, 0x140363385\nmov     [rbx+7Ch], ax                                                  ; +0x78, 0x140363388\nmov     [rbx+7Eh], al                                                  ; +0x7c, 0x14036338c\nmov     [rbx+80h], rax                                                 ; +0x7f, 0x14036338f\nmov     [rbx+88h], al                                                  ; +0x86, 0x140363396\nmov     [rbx+90h], rax                                                 ; +0x8c, 0x14036339c\nmov     [rbx+98h], rax                                                 ; +0x93, 0x1403633a3\nmov     [rbx+0A0h], rax                                                ; +0x9a, 0x1403633aa\nmov     [rbx+48h], si                                                  ; +0xa1, 0x1403633b1\nmov     [rbx+4Ah], dil                                                 ; +0xa5, 0x1403633b5\nmov     [rbx+4Bh], si                                                  ; +0xa9, 0x1403633b9\nmov     [rbx+4Dh], dil                                                 ; +0xad, 0x1403633bd\nmov     dword ptr [rbx+58h], 0FFFFFFFFh                                ; +0xb1, 0x1403633c1\nmov     rcx, rbx                                                       ; +0xb8, 0x1403633c8\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xbb, 0x1403633cb\nmov     rax, rbx                                                       ; +0xc1, 0x1403633d1\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc4, 0x1403633d4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc9, 0x1403633d9\nadd     rsp, 20h                                                       ; +0xce, 0x1403633de\npop     rdi                                                            ; +0xd2, 0x1403633e2\nretn                                                                   ; +0xd3, 0x1403633e3", "xrefs": ["GJEffectManager::getColorAction @ 0x140365f35", "GJEffectManager::setupFromString @ 0x14036e5b7", "GJEffectManager::loadFromState @ 0x14036ec23", "LevelEditorLayer::init @ 0x1403ee93e", "LevelEditorLayer::init @ 0x1403ee9c7", "LevelEditorLayer::getNextColorChannel @ 0x1403f9bb2", "LevelEditorLayer::transferDefaultColors @ 0x1403fa75d", "LevelEditorLayer::transferDefaultColors @ 0x1403fa7dc", "LevelSettingsObject::init @ 0x14040ea6b", "LevelSettingsObject::init @ 0x14040eaca", "LevelSettingsObject::init @ 0x14040eb29", "LevelSettingsObject::init @ 0x14040eb88", "LevelSettingsObject::init @ 0x14040ebeb", "LevelSettingsObject::init @ 0x14040ec4a", "PlayLayer::setupHasCompleted @ 0x140504b28", "PlayLayer::setupHasCompleted @ 0x140504bbb", "CreateParticlePopup::onSelectColor @ 0x1405c6f33", "<???> @ 0x140921554"], "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"}