{"type": "func", "start": 4301638208, "end": 4301638526, "name": "CharacterColorPage::create", "pseudocode": "// \n// CharacterColorPage::create from 0x10065ca40 to 0x10065cb7e (318 bytes)\n// \n// 1 xrefs:\n// > GJGarageLayer::onPaint @ 0x10036c119\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\nCharacterColorPage *__fastcall CharacterColorPage::create()\n{\n  char *v0; // rbx\n\n  v0 = (char *)operator new(0x2C0u);\n  cocos2d::CCLayerColor::CCLayerColor((__int64)v0);\n  *((_QWORD *)v0 + 72) = 0;\n  *((_DWORD *)v0 + 146) = 0;\n  v0[588] = 0;\n  *((_OWORD *)v0 + 34) = 0;\n  *(_OWORD *)(v0 + 553) = 0;\n  *((_OWORD *)v0 + 37) = 0;\n  *((_QWORD *)v0 + 76) = 0;\n  *((_DWORD *)v0 + 154) = -1;\n  *((_WORD *)v0 + 310) = 0;\n  *((_DWORD *)v0 + 156) = -1;\n  v0[628] = 0;\n  *(_QWORD *)v0 = off_100986BF8;\n  *((_QWORD *)v0 + 40) = off_100987118;\n  *((_QWORD *)v0 + 41) = &off_100987188;\n  *((_QWORD *)v0 + 42) = off_1009871A0;\n  *((_QWORD *)v0 + 43) = off_1009871C0;\n  *((_QWORD *)v0 + 44) = off_1009871E0;\n  *((_QWORD *)v0 + 51) = off_100987208;\n  *((_QWORD *)v0 + 54) = off_100987288;\n  *((_DWORD *)v0 + 158) = 0;\n  *(_OWORD *)(v0 + 680) = 0;\n  *(_OWORD *)(v0 + 664) = 0;\n  *(_OWORD *)(v0 + 648) = 0;\n  *((_QWORD *)v0 + 87) = 0;\n  if ( CharacterColorPage::init((CharacterColorPage *)v0) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return (CharacterColorPage *)v0;\n}", "assembly": "; \n; CharacterColorPage::create from 0x10065ca40 to 0x10065cb7e (318 bytes)\n; \n; 1 xrefs:\n; > GJGarageLayer::onPaint @ 0x10036c119\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, 0x10065ca40\nmov     rbp, rsp                                                       ; +0x1, 0x10065ca41\npush    r14                                                            ; +0x4, 0x10065ca44\npush    rbx                                                            ; +0x6, 0x10065ca46\nmov     edi, 2C0h; __sz                                                ; +0x7, 0x10065ca47\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x10065ca4c\nmov     rbx, rax                                                       ; +0x11, 0x10065ca51\nmov     rdi, rax                                                       ; +0x14, 0x10065ca54\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x17, 0x10065ca57\nmov     qword ptr [rbx+240h], 0                                        ; +0x1c, 0x10065ca5c\nmov     dword ptr [rbx+248h], 0                                        ; +0x27, 0x10065ca67\nmov     byte ptr [rbx+24Ch], 0                                         ; +0x31, 0x10065ca71\nxorps   xmm0, xmm0                                                     ; +0x38, 0x10065ca78\nmovups  xmmword ptr [rbx+220h], xmm0                                   ; +0x3b, 0x10065ca7b\nmovups  xmmword ptr [rbx+229h], xmm0                                   ; +0x42, 0x10065ca82\nmovups  xmmword ptr [rbx+250h], xmm0                                   ; +0x49, 0x10065ca89\nmov     qword ptr [rbx+260h], 0                                        ; +0x50, 0x10065ca90\nmov     dword ptr [rbx+268h], 0FFFFFFFFh                               ; +0x5b, 0x10065ca9b\nmov     word ptr [rbx+26Ch], 0                                         ; +0x65, 0x10065caa5\nmov     dword ptr [rbx+270h], 0FFFFFFFFh                               ; +0x6e, 0x10065caae\nmov     byte ptr [rbx+274h], 0                                         ; +0x78, 0x10065cab8\nlea     rax, off_100986BF8                                             ; +0x7f, 0x10065cabf\nmov     [rbx], rax                                                     ; +0x86, 0x10065cac6\nlea     rax, off_100987118                                             ; +0x89, 0x10065cac9\nmov     [rbx+140h], rax                                                ; +0x90, 0x10065cad0\nlea     rax, off_100987188                                             ; +0x97, 0x10065cad7\nmov     [rbx+148h], rax                                                ; +0x9e, 0x10065cade\nlea     rax, off_1009871A0                                             ; +0xa5, 0x10065cae5\nmov     [rbx+150h], rax                                                ; +0xac, 0x10065caec\nlea     rax, off_1009871C0                                             ; +0xb3, 0x10065caf3\nmov     [rbx+158h], rax                                                ; +0xba, 0x10065cafa\nlea     rax, off_1009871E0                                             ; +0xc1, 0x10065cb01\nmov     [rbx+160h], rax                                                ; +0xc8, 0x10065cb08\nlea     rax, off_100987208                                             ; +0xcf, 0x10065cb0f\nmov     [rbx+198h], rax                                                ; +0xd6, 0x10065cb16\nlea     rax, off_100987288                                             ; +0xdd, 0x10065cb1d\nmov     [rbx+1B0h], rax                                                ; +0xe4, 0x10065cb24\nmov     dword ptr [rbx+278h], 0                                        ; +0xeb, 0x10065cb2b\nmovups  xmmword ptr [rbx+2A8h], xmm0                                   ; +0xf5, 0x10065cb35\nmovups  xmmword ptr [rbx+298h], xmm0                                   ; +0xfc, 0x10065cb3c\nmovups  xmmword ptr [rbx+288h], xmm0                                   ; +0x103, 0x10065cb43\nmov     qword ptr [rbx+2B8h], 0                                        ; +0x10a, 0x10065cb4a\nmov     rdi, rbx                                                       ; +0x115, 0x10065cb55\ncall    CharacterColorPage__init                                       ; +0x118, 0x10065cb58\ntest    al, al                                                         ; +0x11d, 0x10065cb5d\njz      short loc_10065CB6B                                            ; +0x11f, 0x10065cb5f\nmov     rdi, rbx                                                       ; +0x121, 0x10065cb61\ncall    cocos2d__CCObject__autorelease                                 ; +0x124, 0x10065cb64\njmp     short loc_10065CB76                                            ; +0x129, 0x10065cb69\nmov     rax, [rbx]                                                     ; +0x12b, 0x10065cb6b\nmov     rdi, rbx                                                       ; +0x12e, 0x10065cb6e\ncall    qword ptr [rax+10h]                                            ; +0x131, 0x10065cb71\nxor     ebx, ebx                                                       ; +0x134, 0x10065cb74\nmov     rax, rbx                                                       ; +0x136, 0x10065cb76\npop     rbx                                                            ; +0x139, 0x10065cb79\npop     r14                                                            ; +0x13a, 0x10065cb7a\npop     rbp                                                            ; +0x13c, 0x10065cb7c\nretn                                                                   ; +0x13d, 0x10065cb7d", "xrefs": ["GJGarageLayer::onPaint @ 0x10036c119"], "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"}