{"type": "func", "start": 4297500624, "end": 4297500980, "name": "HSVLiveOverlay::create", "pseudocode": "// \n// HSVLiveOverlay::create from 0x10026a7d0 to 0x10026a934 (356 bytes)\n// \n// 1 xrefs:\n// > EditorUI::editHSV @ 0x10003c9f8\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\nHSVLiveOverlay *__fastcall HSVLiveOverlay::create(GameObject *a1, cocos2d::CCArray *a2)\n{\n  char *v2; // rbx\n\n  v2 = (char *)operator new(0x2C0u);\n  cocos2d::CCLayerColor::CCLayerColor(v2);\n  *((_QWORD *)v2 + 72) = 0;\n  *((_DWORD *)v2 + 146) = 0;\n  v2[588] = 0;\n  *((_OWORD *)v2 + 34) = 0;\n  *(_OWORD *)(v2 + 553) = 0;\n  *((_OWORD *)v2 + 37) = 0;\n  *((_QWORD *)v2 + 76) = 0;\n  *((_DWORD *)v2 + 154) = -1;\n  *((_WORD *)v2 + 310) = 0;\n  *((_DWORD *)v2 + 156) = -1;\n  v2[628] = 0;\n  *(_QWORD *)v2 = off_1008EBD30;\n  *((_QWORD *)v2 + 40) = off_1008EC258;\n  *((_QWORD *)v2 + 41) = &off_1008EC2C8;\n  *((_QWORD *)v2 + 42) = off_1008EC2E0;\n  *((_QWORD *)v2 + 43) = off_1008EC300;\n  *((_QWORD *)v2 + 44) = off_1008EC320;\n  *((_QWORD *)v2 + 51) = off_1008EC348;\n  *((_QWORD *)v2 + 54) = off_1008EC3C8;\n  *((_QWORD *)v2 + 79) = off_1008EC3E8;\n  *((_OWORD *)v2 + 40) = 0;\n  *(_OWORD *)(v2 + 664) = 0;\n  *((_DWORD *)v2 + 170) = -1;\n  *(_DWORD *)(v2 + 695) = 0;\n  *((_QWORD *)v2 + 86) = 0;\n  if ( HSVLiveOverlay::init((HSVLiveOverlay *)v2, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (HSVLiveOverlay *)v2;\n}", "assembly": "; \n; HSVLiveOverlay::create from 0x10026a7d0 to 0x10026a934 (356 bytes)\n; \n; 1 xrefs:\n; > EditorUI::editHSV @ 0x10003c9f8\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, 0x10026a7d0\nmov     rbp, rsp                                                       ; +0x1, 0x10026a7d1\npush    r15                                                            ; +0x4, 0x10026a7d4\npush    r14                                                            ; +0x6, 0x10026a7d6\npush    rbx                                                            ; +0x8, 0x10026a7d8\npush    rax                                                            ; +0x9, 0x10026a7d9\nmov     r14, rsi                                                       ; +0xa, 0x10026a7da\nmov     r15, rdi                                                       ; +0xd, 0x10026a7dd\nmov     edi, 2C0h; __sz                                                ; +0x10, 0x10026a7e0\ncall    __Znwm; operator new(ulong)                                    ; +0x15, 0x10026a7e5\nmov     rbx, rax                                                       ; +0x1a, 0x10026a7ea\nmov     rdi, rax                                                       ; +0x1d, 0x10026a7ed\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x20, 0x10026a7f0\nmov     qword ptr [rbx+240h], 0                                        ; +0x25, 0x10026a7f5\nmov     dword ptr [rbx+248h], 0                                        ; +0x30, 0x10026a800\nmov     byte ptr [rbx+24Ch], 0                                         ; +0x3a, 0x10026a80a\nxorps   xmm0, xmm0                                                     ; +0x41, 0x10026a811\nmovups  xmmword ptr [rbx+220h], xmm0                                   ; +0x44, 0x10026a814\nmovups  xmmword ptr [rbx+229h], xmm0                                   ; +0x4b, 0x10026a81b\nmovups  xmmword ptr [rbx+250h], xmm0                                   ; +0x52, 0x10026a822\nmov     qword ptr [rbx+260h], 0                                        ; +0x59, 0x10026a829\nmov     dword ptr [rbx+268h], 0FFFFFFFFh                               ; +0x64, 0x10026a834\nmov     word ptr [rbx+26Ch], 0                                         ; +0x6e, 0x10026a83e\nmov     dword ptr [rbx+270h], 0FFFFFFFFh                               ; +0x77, 0x10026a847\nmov     byte ptr [rbx+274h], 0                                         ; +0x81, 0x10026a851\nlea     rax, off_1008EBD30                                             ; +0x88, 0x10026a858\nmov     [rbx], rax                                                     ; +0x8f, 0x10026a85f\nlea     rax, off_1008EC258                                             ; +0x92, 0x10026a862\nmov     [rbx+140h], rax                                                ; +0x99, 0x10026a869\nlea     rax, off_1008EC2C8                                             ; +0xa0, 0x10026a870\nmov     [rbx+148h], rax                                                ; +0xa7, 0x10026a877\nlea     rax, off_1008EC2E0                                             ; +0xae, 0x10026a87e\nmov     [rbx+150h], rax                                                ; +0xb5, 0x10026a885\nlea     rax, off_1008EC300                                             ; +0xbc, 0x10026a88c\nmov     [rbx+158h], rax                                                ; +0xc3, 0x10026a893\nlea     rax, off_1008EC320                                             ; +0xca, 0x10026a89a\nmov     [rbx+160h], rax                                                ; +0xd1, 0x10026a8a1\nlea     rax, off_1008EC348                                             ; +0xd8, 0x10026a8a8\nmov     [rbx+198h], rax                                                ; +0xdf, 0x10026a8af\nlea     rax, off_1008EC3C8                                             ; +0xe6, 0x10026a8b6\nmov     [rbx+1B0h], rax                                                ; +0xed, 0x10026a8bd\nlea     rax, off_1008EC3E8                                             ; +0xf4, 0x10026a8c4\nmov     [rbx+278h], rax                                                ; +0xfb, 0x10026a8cb\nmovups  xmmword ptr [rbx+280h], xmm0                                   ; +0x102, 0x10026a8d2\nmovups  xmmword ptr [rbx+298h], xmm0                                   ; +0x109, 0x10026a8d9\nmov     dword ptr [rbx+2A8h], 0FFFFFFFFh                               ; +0x110, 0x10026a8e0\nmov     dword ptr [rbx+2B7h], 0                                        ; +0x11a, 0x10026a8ea\nmov     qword ptr [rbx+2B0h], 0                                        ; +0x124, 0x10026a8f4\nmov     rdi, rbx                                                       ; +0x12f, 0x10026a8ff\nmov     rsi, r15                                                       ; +0x132, 0x10026a902\nmov     rdx, r14                                                       ; +0x135, 0x10026a905\ncall    HSVLiveOverlay__init                                           ; +0x138, 0x10026a908\ntest    al, al                                                         ; +0x13d, 0x10026a90d\njz      short loc_10026A91B                                            ; +0x13f, 0x10026a90f\nmov     rdi, rbx                                                       ; +0x141, 0x10026a911\ncall    cocos2d__CCObject__autorelease                                 ; +0x144, 0x10026a914\njmp     short loc_10026A926                                            ; +0x149, 0x10026a919\nmov     rax, [rbx]                                                     ; +0x14b, 0x10026a91b\nmov     rdi, rbx                                                       ; +0x14e, 0x10026a91e\ncall    qword ptr [rax+10h]                                            ; +0x151, 0x10026a921\nxor     ebx, ebx                                                       ; +0x154, 0x10026a924\nmov     rax, rbx                                                       ; +0x156, 0x10026a926\nadd     rsp, 8                                                         ; +0x159, 0x10026a929\npop     rbx                                                            ; +0x15d, 0x10026a92d\npop     r14                                                            ; +0x15e, 0x10026a92e\npop     r15                                                            ; +0x160, 0x10026a930\npop     rbp                                                            ; +0x162, 0x10026a932\nretn                                                                   ; +0x163, 0x10026a933", "xrefs": ["EditorUI::editHSV @ 0x10003c9f8"], "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"}