{"type": "func", "start": 4302317536, "end": 4302318024, "name": "GJSpecialColorSelect::create", "pseudocode": "// \n// GJSpecialColorSelect::create from 0x1007027e0 to 0x1007029c8 (488 bytes)\n// \n// 4 xrefs:\n// > SetColorIDPopup::onSelectSpecialColor @ 0x10029977e\n// > SetupPulsePopup::onSelectSpecialTargetID @ 0x1003971b7\n// > SetupPulsePopup::onSelectSpecialColor @ 0x100397917\n// > ColorSelectPopup::onSelectSpecialColor @ 0x10080720e\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:35:59 +0000\n// \n\nchar *__fastcall GJSpecialColorSelect::create(unsigned int a1, __int64 a2, unsigned int a3)\n{\n  char *v4; // rbx\n\n  v4 = (char *)operator new(0x2B0u);\n  cocos2d::CCLayerColor::CCLayerColor((__int64)v4);\n  *(_QWORD *)v4 = off_100B4FB70;\n  *((_QWORD *)v4 + 40) = off_100B500C0;\n  *((_QWORD *)v4 + 41) = &off_100B50130;\n  *((_QWORD *)v4 + 42) = off_100B50148;\n  *((_QWORD *)v4 + 43) = off_100B50168;\n  *((_QWORD *)v4 + 44) = off_100B50190;\n  *((_QWORD *)v4 + 51) = off_100B501C0;\n  *((_QWORD *)v4 + 54) = off_100B50240;\n  *((_QWORD *)v4 + 68) = off_100B50260;\n  *(_OWORD *)(v4 + 552) = 0;\n  *(_OWORD *)(v4 + 561) = 0;\n  *(_OWORD *)(v4 + 584) = 0;\n  sub_1002782A0((_QWORD *)v4 + 75);\n  *((_OWORD *)v4 + 38) = 0;\n  *((_QWORD *)v4 + 78) = 0;\n  *((_DWORD *)v4 + 158) = -1;\n  *((_WORD *)v4 + 318) = 0;\n  *((_DWORD *)v4 + 160) = -1;\n  v4[644] = 0;\n  *((_QWORD *)v4 + 81) = 0;\n  v4[656] = 0;\n  *(_QWORD *)v4 = off_100B96D60;\n  *((_QWORD *)v4 + 40) = off_100B972B0;\n  *((_QWORD *)v4 + 41) = &off_100B97320;\n  *((_QWORD *)v4 + 42) = off_100B97338;\n  *((_QWORD *)v4 + 43) = off_100B97358;\n  *((_QWORD *)v4 + 44) = off_100B97380;\n  *((_QWORD *)v4 + 51) = off_100B973B0;\n  *((_QWORD *)v4 + 54) = off_100B97430;\n  *((_QWORD *)v4 + 68) = off_100B97450;\n  *((_QWORD *)v4 + 83) = 0;\n  *((_DWORD *)v4 + 168) = 0;\n  *((_QWORD *)v4 + 85) = 0;\n  if ( (unsigned __int8)GJSpecialColorSelect::init(v4, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; GJSpecialColorSelect::create from 0x1007027e0 to 0x1007029c8 (488 bytes)\n; \n; 4 xrefs:\n; > SetColorIDPopup::onSelectSpecialColor @ 0x10029977e\n; > SetupPulsePopup::onSelectSpecialTargetID @ 0x1003971b7\n; > SetupPulsePopup::onSelectSpecialColor @ 0x100397917\n; > ColorSelectPopup::onSelectSpecialColor @ 0x10080720e\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:35:59 +0000\n; \npush    rbp                                                            ; +0x0, 0x1007027e0\nmov     rbp, rsp                                                       ; +0x1, 0x1007027e1\npush    r15                                                            ; +0x4, 0x1007027e4\npush    r14                                                            ; +0x6, 0x1007027e6\npush    r12                                                            ; +0x8, 0x1007027e8\npush    rbx                                                            ; +0xa, 0x1007027ea\nmov     r14d, edx                                                      ; +0xb, 0x1007027eb\nmov     r15, rsi                                                       ; +0xe, 0x1007027ee\nmov     r12d, edi                                                      ; +0x11, 0x1007027f1\nmov     edi, 2B0h; __sz                                                ; +0x14, 0x1007027f4\ncall    __Znwm; operator new(ulong)                                    ; +0x19, 0x1007027f9\nmov     rbx, rax                                                       ; +0x1e, 0x1007027fe\nmov     rdi, rax                                                       ; +0x21, 0x100702801\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x24, 0x100702804\nlea     rax, _ZTV12FLAlertLayer; `vtable for'FLAlertLayer              ; +0x29, 0x100702809\nlea     rcx, [rax+10h]                                                 ; +0x30, 0x100702810\nmov     [rbx], rcx                                                     ; +0x34, 0x100702814\nlea     rcx, [rax+560h]                                                ; +0x37, 0x100702817\nmov     [rbx+140h], rcx                                                ; +0x3e, 0x10070281e\nlea     rcx, [rax+5D0h]                                                ; +0x45, 0x100702825\nmov     [rbx+148h], rcx                                                ; +0x4c, 0x10070282c\nlea     rcx, [rax+5E8h]                                                ; +0x53, 0x100702833\nmov     [rbx+150h], rcx                                                ; +0x5a, 0x10070283a\nlea     rcx, [rax+608h]                                                ; +0x61, 0x100702841\nmov     [rbx+158h], rcx                                                ; +0x68, 0x100702848\nlea     rcx, [rax+630h]                                                ; +0x6f, 0x10070284f\nmov     [rbx+160h], rcx                                                ; +0x76, 0x100702856\nlea     rcx, [rax+660h]                                                ; +0x7d, 0x10070285d\nmov     [rbx+198h], rcx                                                ; +0x84, 0x100702864\nlea     rcx, [rax+6E0h]                                                ; +0x8b, 0x10070286b\nmov     [rbx+1B0h], rcx                                                ; +0x92, 0x100702872\nadd     rax, 700h                                                      ; +0x99, 0x100702879\nmov     [rbx+220h], rax                                                ; +0x9f, 0x10070287f\nmov     rdi, rbx                                                       ; +0xa6, 0x100702886\nadd     rdi, 258h                                                      ; +0xa9, 0x100702889\nxorps   xmm0, xmm0                                                     ; +0xb0, 0x100702890\nmovups  xmmword ptr [rbx+228h], xmm0                                   ; +0xb3, 0x100702893\nmovups  xmmword ptr [rbx+231h], xmm0                                   ; +0xba, 0x10070289a\nmovups  xmmword ptr [rbx+248h], xmm0                                   ; +0xc1, 0x1007028a1\ncall    sub_1002782A0                                                  ; +0xc8, 0x1007028a8\nxorps   xmm0, xmm0                                                     ; +0xcd, 0x1007028ad\nmovups  xmmword ptr [rbx+260h], xmm0                                   ; +0xd0, 0x1007028b0\nmov     qword ptr [rbx+270h], 0                                        ; +0xd7, 0x1007028b7\nmov     dword ptr [rbx+278h], 0FFFFFFFFh                               ; +0xe2, 0x1007028c2\nmov     word ptr [rbx+27Ch], 0                                         ; +0xec, 0x1007028cc\nmov     dword ptr [rbx+280h], 0FFFFFFFFh                               ; +0xf5, 0x1007028d5\nmov     byte ptr [rbx+284h], 0                                         ; +0xff, 0x1007028df\nmov     qword ptr [rbx+288h], 0                                        ; +0x106, 0x1007028e6\nmov     byte ptr [rbx+290h], 0                                         ; +0x111, 0x1007028f1\nlea     rax, off_100B96D60                                             ; +0x118, 0x1007028f8\nmov     [rbx], rax                                                     ; +0x11f, 0x1007028ff\nlea     rax, off_100B972B0                                             ; +0x122, 0x100702902\nmov     [rbx+140h], rax                                                ; +0x129, 0x100702909\nlea     rax, off_100B97320                                             ; +0x130, 0x100702910\nmov     [rbx+148h], rax                                                ; +0x137, 0x100702917\nlea     rax, off_100B97338                                             ; +0x13e, 0x10070291e\nmov     [rbx+150h], rax                                                ; +0x145, 0x100702925\nlea     rax, off_100B97358                                             ; +0x14c, 0x10070292c\nmov     [rbx+158h], rax                                                ; +0x153, 0x100702933\nlea     rax, off_100B97380                                             ; +0x15a, 0x10070293a\nmov     [rbx+160h], rax                                                ; +0x161, 0x100702941\nlea     rax, off_100B973B0                                             ; +0x168, 0x100702948\nmov     [rbx+198h], rax                                                ; +0x16f, 0x10070294f\nlea     rax, off_100B97430                                             ; +0x176, 0x100702956\nmov     [rbx+1B0h], rax                                                ; +0x17d, 0x10070295d\nlea     rax, off_100B97450                                             ; +0x184, 0x100702964\nmov     [rbx+220h], rax                                                ; +0x18b, 0x10070296b\nmov     qword ptr [rbx+298h], 0                                        ; +0x192, 0x100702972\nmov     dword ptr [rbx+2A0h], 0                                        ; +0x19d, 0x10070297d\nmov     qword ptr [rbx+2A8h], 0                                        ; +0x1a7, 0x100702987\nmov     rdi, rbx                                                       ; +0x1b2, 0x100702992\nmov     esi, r12d                                                      ; +0x1b5, 0x100702995\nmov     rdx, r15                                                       ; +0x1b8, 0x100702998\nmov     ecx, r14d                                                      ; +0x1bb, 0x10070299b\ncall    GJSpecialColorSelect__init                                     ; +0x1be, 0x10070299e\ntest    al, al                                                         ; +0x1c3, 0x1007029a3\njz      short loc_1007029B1                                            ; +0x1c5, 0x1007029a5\nmov     rdi, rbx                                                       ; +0x1c7, 0x1007029a7\ncall    cocos2d__CCObject__autorelease                                 ; +0x1ca, 0x1007029aa\njmp     short loc_1007029BC                                            ; +0x1cf, 0x1007029af\nmov     rax, [rbx]                                                     ; +0x1d1, 0x1007029b1\nmov     rdi, rbx                                                       ; +0x1d4, 0x1007029b4\ncall    qword ptr [rax+10h]                                            ; +0x1d7, 0x1007029b7\nxor     ebx, ebx                                                       ; +0x1da, 0x1007029ba\nmov     rax, rbx                                                       ; +0x1dc, 0x1007029bc\npop     rbx                                                            ; +0x1df, 0x1007029bf\npop     r12                                                            ; +0x1e0, 0x1007029c0\npop     r14                                                            ; +0x1e2, 0x1007029c2\npop     r15                                                            ; +0x1e4, 0x1007029c4\npop     rbp                                                            ; +0x1e6, 0x1007029c6\nretn                                                                   ; +0x1e7, 0x1007029c7", "xrefs": ["SetColorIDPopup::onSelectSpecialColor @ 0x10029977e", "SetupPulsePopup::onSelectSpecialTargetID @ 0x1003971b7", "SetupPulsePopup::onSelectSpecialColor @ 0x100397917", "ColorSelectPopup::onSelectSpecialColor @ 0x10080720e"], "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"}