{"type": "func", "start": 4300822368, "end": 4300822460, "name": "ColorSelectLiveOverlay::createWithActions", "pseudocode": "// \n// ColorSelectLiveOverlay::createWithActions from 0x100595760 to 0x1005957bc (92 bytes)\n// \n// 3 xrefs:\n// > EditorUI::editColor @ 0x100019ab2\n// > EditorUI::showLiveColorSelectForModeSpecial @ 0x100019c29\n// > EditorUI::showLiveColorSelectForMode @ 0x100019d30\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:32:28 +0000\n// \n\nvoid *__fastcall ColorSelectLiveOverlay::createWithActions(__int64 a1, __int64 a2)\n{\n  void *v2; // rbx\n\n  v2 = operator new(0x360u);\n  ColorSelectLiveOverlay::ColorSelectLiveOverlay(v2);\n  if ( (unsigned __int8)ColorSelectLiveOverlay::init(v2, a1, a2, 0) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; ColorSelectLiveOverlay::createWithActions from 0x100595760 to 0x1005957bc (92 bytes)\n; \n; 3 xrefs:\n; > EditorUI::editColor @ 0x100019ab2\n; > EditorUI::showLiveColorSelectForModeSpecial @ 0x100019c29\n; > EditorUI::showLiveColorSelectForMode @ 0x100019d30\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:32:28 +0000\n; \npush    rbp                                                            ; +0x0, 0x100595760\nmov     rbp, rsp                                                       ; +0x1, 0x100595761\npush    r15                                                            ; +0x4, 0x100595764\npush    r14                                                            ; +0x6, 0x100595766\npush    rbx                                                            ; +0x8, 0x100595768\npush    rax                                                            ; +0x9, 0x100595769\nmov     r14, rsi                                                       ; +0xa, 0x10059576a\nmov     r15, rdi                                                       ; +0xd, 0x10059576d\nmov     edi, 360h; __sz                                                ; +0x10, 0x100595770\ncall    __Znwm; operator new(ulong)                                    ; +0x15, 0x100595775\nmov     rbx, rax                                                       ; +0x1a, 0x10059577a\nmov     rdi, rax                                                       ; +0x1d, 0x10059577d\ncall    ColorSelectLiveOverlay__ColorSelectLiveOverlay                 ; +0x20, 0x100595780\nmov     rdi, rbx                                                       ; +0x25, 0x100595785\nmov     rsi, r15                                                       ; +0x28, 0x100595788\nmov     rdx, r14                                                       ; +0x2b, 0x10059578b\nxor     ecx, ecx                                                       ; +0x2e, 0x10059578e\ncall    ColorSelectLiveOverlay__init                                   ; +0x30, 0x100595790\ntest    al, al                                                         ; +0x35, 0x100595795\njz      short loc_1005957A3                                            ; +0x37, 0x100595797\nmov     rdi, rbx                                                       ; +0x39, 0x100595799\ncall    cocos2d__CCObject__autorelease                                 ; +0x3c, 0x10059579c\njmp     short loc_1005957AE                                            ; +0x41, 0x1005957a1\nmov     rax, [rbx]                                                     ; +0x43, 0x1005957a3\nmov     rdi, rbx                                                       ; +0x46, 0x1005957a6\ncall    qword ptr [rax+10h]                                            ; +0x49, 0x1005957a9\nxor     ebx, ebx                                                       ; +0x4c, 0x1005957ac\nmov     rax, rbx                                                       ; +0x4e, 0x1005957ae\nadd     rsp, 8                                                         ; +0x51, 0x1005957b1\npop     rbx                                                            ; +0x55, 0x1005957b5\npop     r14                                                            ; +0x56, 0x1005957b6\npop     r15                                                            ; +0x58, 0x1005957b8\npop     rbp                                                            ; +0x5a, 0x1005957ba\nretn                                                                   ; +0x5b, 0x1005957bb", "xrefs": ["EditorUI::editColor @ 0x100019ab2", "EditorUI::showLiveColorSelectForModeSpecial @ 0x100019c29", "EditorUI::showLiveColorSelectForMode @ 0x100019d30"], "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"}