{"type": "func", "start": 5369281808, "end": 5369282137, "name": "ColorSelectLiveOverlay::create", "pseudocode": "// \n// ColorSelectLiveOverlay::create from 0x14008bd10 to 0x14008be59 (329 bytes)\n// \n// 3 xrefs:\n// > EditorUI::editColor @ 0x14011ee0e\n// > EditorUI::showLiveColorSelectForMode @ 0x14011ef5b\n// > <???> @ 0x1406c6e04\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\n// Hidden C++ exception states: #wind=1\nColorSelectLiveOverlay *ColorSelectLiveOverlay::create(ColorAction *a1, ColorAction *a2, EffectGameObject *a3)\n{\n  char *v6; // r14\n\n  v6 = (char *)operator new(0x340u);\n  FLAlertLayer::FLAlertLayer((FLAlertLayer *)v6);\n  *(_QWORD *)v6 = &ColorSelectLiveOverlay::`vftable';\n  *((_QWORD *)v6 + 40) = &ColorSelectLiveOverlay::`vftable';\n  *((_QWORD *)v6 + 41) = &ColorSelectLiveOverlay::`vftable';\n  *((_QWORD *)v6 + 42) = &ColorSelectLiveOverlay::`vftable';\n  *((_QWORD *)v6 + 43) = &ColorSelectLiveOverlay::`vftable';\n  *((_QWORD *)v6 + 44) = &ColorSelectLiveOverlay::`vftable';\n  *((_QWORD *)v6 + 51) = &ColorSelectLiveOverlay::`vftable';\n  *((_QWORD *)v6 + 54) = &ColorSelectLiveOverlay::`vftable';\n  *((_QWORD *)v6 + 79) = 0;\n  *((_QWORD *)v6 + 81) = 0;\n  *((_QWORD *)v6 + 82) = 0;\n  *((_QWORD *)v6 + 83) = 0;\n  *(_QWORD *)(v6 + 684) = 0;\n  *((_DWORD *)v6 + 173) = 0;\n  *((_DWORD *)v6 + 174) = 1065353216;\n  *((_QWORD *)v6 + 88) = 0;\n  *((_WORD *)v6 + 356) = 0;\n  v6[714] = 0;\n  *((_QWORD *)v6 + 93) = 0;\n  *((_QWORD *)v6 + 98) = 0;\n  *((_WORD *)v6 + 412) = 0;\n  if ( ColorSelectLiveOverlay::init((ColorSelectLiveOverlay *)v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    return (ColorSelectLiveOverlay *)v6;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::create from 0x14008bd10 to 0x14008be59 (329 bytes)\n; \n; 3 xrefs:\n; > EditorUI::editColor @ 0x14011ee0e\n; > EditorUI::showLiveColorSelectForMode @ 0x14011ef5b\n; > <???> @ 0x1406c6e04\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14008bd10\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14008bd15\npush    rsi                                                            ; +0xa, 0x14008bd1a\npush    rdi                                                            ; +0xb, 0x14008bd1b\npush    r14                                                            ; +0xc, 0x14008bd1c\nsub     rsp, 20h                                                       ; +0xe, 0x14008bd1e\nmov     rbx, r8                                                        ; +0x12, 0x14008bd22\nmov     rdi, rdx                                                       ; +0x15, 0x14008bd25\nmov     rsi, rcx                                                       ; +0x18, 0x14008bd28\nmov     ecx, 340h; Size                                                ; +0x1b, 0x14008bd2b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x20, 0x14008bd30\nmov     r14, rax                                                       ; +0x25, 0x14008bd35\nmov     [rsp+38h+arg_18], rax                                          ; +0x28, 0x14008bd38\nmov     rcx, rax                                                       ; +0x2d, 0x14008bd3d\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x30, 0x14008bd40\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@; const ColorSelectLiveOverlay::`vftable' ; +0x35, 0x14008bd45\nmov     [r14], rax                                                     ; +0x3c, 0x14008bd4c\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_0; const ColorSelectLiveOverlay::`vftable' ; +0x3f, 0x14008bd4f\nmov     [r14+140h], rax                                                ; +0x46, 0x14008bd56\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_1; const ColorSelectLiveOverlay::`vftable' ; +0x4d, 0x14008bd5d\nmov     [r14+148h], rax                                                ; +0x54, 0x14008bd64\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_2; const ColorSelectLiveOverlay::`vftable' ; +0x5b, 0x14008bd6b\nmov     [r14+150h], rax                                                ; +0x62, 0x14008bd72\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_3; const ColorSelectLiveOverlay::`vftable' ; +0x69, 0x14008bd79\nmov     [r14+158h], rax                                                ; +0x70, 0x14008bd80\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_4; const ColorSelectLiveOverlay::`vftable' ; +0x77, 0x14008bd87\nmov     [r14+160h], rax                                                ; +0x7e, 0x14008bd8e\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_5; const ColorSelectLiveOverlay::`vftable' ; +0x85, 0x14008bd95\nmov     [r14+198h], rax                                                ; +0x8c, 0x14008bd9c\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_6; const ColorSelectLiveOverlay::`vftable' ; +0x93, 0x14008bda3\nmov     [r14+1B0h], rax                                                ; +0x9a, 0x14008bdaa\nxor     ebp, ebp                                                       ; +0xa1, 0x14008bdb1\nmov     [r14+278h], rbp                                                ; +0xa3, 0x14008bdb3\nmov     [r14+288h], rbp                                                ; +0xaa, 0x14008bdba\nmov     [r14+290h], rbp                                                ; +0xb1, 0x14008bdc1\nmov     [r14+298h], rbp                                                ; +0xb8, 0x14008bdc8\nmov     [r14+2ACh], rbp                                                ; +0xbf, 0x14008bdcf\nmov     [r14+2B4h], ebp                                                ; +0xc6, 0x14008bdd6\nmov     dword ptr [r14+2B8h], 3F800000h                                ; +0xcd, 0x14008bddd\nmov     [r14+2C0h], rbp                                                ; +0xd8, 0x14008bde8\nmov     [r14+2C8h], bp                                                 ; +0xdf, 0x14008bdef\nmov     [r14+2CAh], bpl                                                ; +0xe7, 0x14008bdf7\nmov     [r14+2E8h], rbp                                                ; +0xee, 0x14008bdfe\nmov     [r14+310h], rbp                                                ; +0xf5, 0x14008be05\nmov     [r14+338h], bp                                                 ; +0xfc, 0x14008be0c\nmov     r9, rbx                                                        ; +0x104, 0x14008be14\nmov     r8, rdi                                                        ; +0x107, 0x14008be17\nmov     rdx, rsi                                                       ; +0x10a, 0x14008be1a\nmov     rcx, r14                                                       ; +0x10d, 0x14008be1d\ncall    ColorSelectLiveOverlay__init                                   ; +0x110, 0x14008be20\nmov     rcx, r14                                                       ; +0x115, 0x14008be25\ntest    al, al                                                         ; +0x118, 0x14008be28\njz      short loc_14008BE37                                            ; +0x11a, 0x14008be2a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x11c, 0x14008be2c\nmov     rax, r14                                                       ; +0x122, 0x14008be32\njmp     short loc_14008BE46                                            ; +0x125, 0x14008be35\nmov     r8, [r14]                                                      ; +0x127, 0x14008be37\nmov     edx, 1                                                         ; +0x12a, 0x14008be3a\ncall    qword ptr [r8+8]                                               ; +0x12f, 0x14008be3f\nmov     rax, rbp                                                       ; +0x133, 0x14008be43\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x136, 0x14008be46\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x13b, 0x14008be4b\nadd     rsp, 20h                                                       ; +0x140, 0x14008be50\npop     r14                                                            ; +0x144, 0x14008be54\npop     rdi                                                            ; +0x146, 0x14008be56\npop     rsi                                                            ; +0x147, 0x14008be57\nretn                                                                   ; +0x148, 0x14008be58", "xrefs": ["EditorUI::editColor @ 0x14011ee0e", "EditorUI::showLiveColorSelectForMode @ 0x14011ef5b", "<???> @ 0x1406c6e04"], "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"}