{"type": "func", "start": 5369939056, "end": 5369939164, "name": "ColorSelectPopup::onSelectSpecialColor", "pseudocode": "// \n// ColorSelectPopup::onSelectSpecialColor from 0x14012c470 to 0x14012c4dc (108 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::init @ 0x140128585\n// > ColorSelectPopup::init @ 0x140128ca2\n// > <???> @ 0x140916c64\n// > <???> @ 0x140916c70\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 11:27:01 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::onSelectSpecialColor(__int64 a1, __int64 a2)\n{\n  bool v3; // zf\n  __int64 v4; // rdx\n  __int64 v5; // rcx\n  __int64 v6; // rdi\n  __int64 v7; // rbx\n  unsigned int v8; // eax\n\n  v3 = a1 == 0;\n  v4 = a1 + 1008;\n  v5 = *(unsigned int *)(a1 + 1160);\n  if ( v3 )\n    v4 = 0;\n  v6 = GJSpecialColorSelect::create(v5, v4, 1);\n  v7 = *(_QWORD *)v6;\n  v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  (*(void (__fastcall **)(__int64, _QWORD))(v7 + 64))(v6, v8);\n  return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1064LL))(v6);\n}", "assembly": "; \n; ColorSelectPopup::onSelectSpecialColor from 0x14012c470 to 0x14012c4dc (108 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::init @ 0x140128585\n; > ColorSelectPopup::init @ 0x140128ca2\n; > <???> @ 0x140916c64\n; > <???> @ 0x140916c70\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 11:27:01 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14012c470\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14012c475\npush    rdi                                                            ; +0xa, 0x14012c47a\nsub     rsp, 20h                                                       ; +0xb, 0x14012c47b\nxor     eax, eax                                                       ; +0xf, 0x14012c47f\nmov     rsi, rdx                                                       ; +0x11, 0x14012c481\ntest    rcx, rcx                                                       ; +0x14, 0x14012c484\nlea     rdx, [rcx+3F0h]                                                ; +0x17, 0x14012c487\nmov     ecx, [rcx+488h]                                                ; +0x1e, 0x14012c48e\nmov     r8d, 1                                                         ; +0x24, 0x14012c494\ncmovz   rdx, rax                                                       ; +0x2a, 0x14012c49a\ncall    GJSpecialColorSelect__create                                   ; +0x2e, 0x14012c49e\nmov     rcx, [rsi]                                                     ; +0x33, 0x14012c4a3\nmov     rdi, rax                                                       ; +0x36, 0x14012c4a6\nmov     rbx, [rax]                                                     ; +0x39, 0x14012c4a9\nmov     rdx, [rcx+38h]                                                 ; +0x3c, 0x14012c4ac\nmov     rcx, rsi                                                       ; +0x40, 0x14012c4b0\ncall    rdx                                                            ; +0x43, 0x14012c4b3\nmov     edx, eax                                                       ; +0x45, 0x14012c4b5\nmov     rcx, rdi                                                       ; +0x47, 0x14012c4b7\ncall    qword ptr [rbx+40h]                                            ; +0x4a, 0x14012c4ba\nmov     rcx, [rdi]                                                     ; +0x4d, 0x14012c4bd\nmov     rdx, [rcx+428h]                                                ; +0x50, 0x14012c4c0\nmov     rcx, rdi                                                       ; +0x57, 0x14012c4c7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5a, 0x14012c4ca\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5f, 0x14012c4cf\nadd     rsp, 20h                                                       ; +0x64, 0x14012c4d4\npop     rdi                                                            ; +0x68, 0x14012c4d8\njmp     rdx                                                            ; +0x69, 0x14012c4d9", "xrefs": ["ColorSelectPopup::init @ 0x140128585", "ColorSelectPopup::init @ 0x140128ca2", "<???> @ 0x140916c64", "<???> @ 0x140916c70"], "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"}