{"type": "func", "start": 4300829776, "end": 4300829885, "name": "ColorSelectLiveOverlay::toggleControls", "pseudocode": "// \n// ColorSelectLiveOverlay::toggleControls from 0x100597450 to 0x1005974bd (109 bytes)\n// \n// 0 xrefs:\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:29 +0000\n// \n\n__int64 __fastcall ColorSelectLiveOverlay::toggleControls(__int64 a1, unsigned __int8 a2)\n{\n  __int64 result; // rax\n  unsigned int v3; // r14d\n  __int64 v4; // rax\n\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 672));\n  if ( (_DWORD)result )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 672), v3);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, a2);\n      ++v3;\n      result = sub_1007FEF90(*(_QWORD *)(a1 + 672));\n    }\n    while ( v3 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectLiveOverlay::toggleControls from 0x100597450 to 0x1005974bd (109 bytes)\n; \n; 0 xrefs:\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:29 +0000\n; \npush    rbp                                                            ; +0x0, 0x100597450\nmov     rbp, rsp                                                       ; +0x1, 0x100597451\npush    r15                                                            ; +0x4, 0x100597454\npush    r14                                                            ; +0x6, 0x100597456\npush    rbx                                                            ; +0x8, 0x100597458\npush    rax                                                            ; +0x9, 0x100597459\nmov     r15d, esi                                                      ; +0xa, 0x10059745a\nmov     rbx, rdi                                                       ; +0xd, 0x10059745d\nmov     rdi, [rdi+2A0h]                                                ; +0x10, 0x100597460\ncall    sub_1007FEF90                                                  ; +0x17, 0x100597467\ntest    eax, eax                                                       ; +0x1c, 0x10059746c\njz      short loc_1005974B2                                            ; +0x1e, 0x10059746e\nxor     r14d, r14d                                                     ; +0x20, 0x100597470\nmovzx   r15d, r15b                                                     ; +0x23, 0x100597473\nnop     word ptr [rax+rax+00000000h]                                   ; +0x27, 0x100597477\nmov     rdi, [rbx+2A0h]                                                ; +0x30, 0x100597480\nmov     esi, r14d                                                      ; +0x37, 0x100597487\ncall    sub_1007FEFE0                                                  ; +0x3a, 0x10059748a\nmov     rcx, [rax]                                                     ; +0x3f, 0x10059748f\nmov     rdi, rax                                                       ; +0x42, 0x100597492\nmov     esi, r15d                                                      ; +0x45, 0x100597495\ncall    qword ptr [rcx+158h]                                           ; +0x48, 0x100597498\ninc     r14d                                                           ; +0x4e, 0x10059749e\nmov     rdi, [rbx+2A0h]                                                ; +0x51, 0x1005974a1\ncall    sub_1007FEF90                                                  ; +0x58, 0x1005974a8\ncmp     r14d, eax                                                      ; +0x5d, 0x1005974ad\njb      short loc_100597480                                            ; +0x60, 0x1005974b0\nadd     rsp, 8                                                         ; +0x62, 0x1005974b2\npop     rbx                                                            ; +0x66, 0x1005974b6\npop     r14                                                            ; +0x67, 0x1005974b7\npop     r15                                                            ; +0x69, 0x1005974b9\npop     rbp                                                            ; +0x6b, 0x1005974bb\nretn                                                                   ; +0x6c, 0x1005974bc", "xrefs": [], "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"}