{"type": "func", "start": 4300645328, "end": 4300645438, "name": "ColorSelectLiveOverlay::updateColorValue", "pseudocode": "// \n// ColorSelectLiveOverlay::updateColorValue from 0x10056a3d0 to 0x10056a43e (110 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall ColorSelectLiveOverlay::updateColorValue(ColorSelectLiveOverlay *a1)\n{\n  EffectGameObject *m_effectGameObject; // rax\n  __int16 v2; // cx\n  int v3; // eax\n  ColorAction *m_detailColorAction; // rcx\n\n  if ( !a1->m_updateColor )\n  {\n    m_effectGameObject = a1->m_effectGameObject;\n    if ( m_effectGameObject )\n    {\n      v2 = *(_WORD *)&a1->m_targetColor.r;\n      m_effectGameObject->m_triggerTargetColor.b = a1->m_targetColor.b;\n      *(_WORD *)&m_effectGameObject->m_triggerTargetColor.r = v2;\n    }\n    else\n    {\n      v3 = *(unsigned __int16 *)&a1->m_targetColor.r | (a1->m_targetColor.b << 16);\n      if ( a1->m_detailColorSelected )\n        m_detailColorAction = a1->m_detailColorAction;\n      else\n        m_detailColorAction = a1->m_baseColorAction;\n      *(_WORD *)&m_detailColorAction->m_fromColor.r = *(_WORD *)&a1->m_targetColor.r;\n      m_detailColorAction->m_fromColor.b = BYTE2(v3);\n    }\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::updateColorValue from 0x10056a3d0 to 0x10056a43e (110 bytes)\n; \n; 0 xrefs:\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\ncmp     byte ptr [rdi+2CAh], 0                                         ; +0x0, 0x10056a3d0\njnz     short locret_10056A43D                                         ; +0x7, 0x10056a3d7\npush    rbp                                                            ; +0x9, 0x10056a3d9\nmov     rbp, rsp                                                       ; +0xa, 0x10056a3da\nmov     rax, [rdi+278h]                                                ; +0xd, 0x10056a3dd\ntest    rax, rax                                                       ; +0x14, 0x10056a3e4\njz      short loc_10056A406                                            ; +0x17, 0x10056a3e7\nmovzx   ecx, word ptr [rdi+2A6h]                                       ; +0x19, 0x10056a3e9\nmovzx   edx, byte ptr [rdi+2A8h]                                       ; +0x20, 0x10056a3f0\nmov     [rax+5AAh], dl                                                 ; +0x27, 0x10056a3f7\nmov     [rax+5A8h], cx                                                 ; +0x2d, 0x10056a3fd\njmp     short loc_10056A43C                                            ; +0x34, 0x10056a404\nmovzx   ecx, word ptr [rdi+2A6h]                                       ; +0x36, 0x10056a406\nmovzx   eax, byte ptr [rdi+2A8h]                                       ; +0x3d, 0x10056a40d\nshl     eax, 10h                                                       ; +0x44, 0x10056a414\nor      eax, ecx                                                       ; +0x47, 0x10056a417\ncmp     byte ptr [rdi+338h], 1                                         ; +0x49, 0x10056a419\njnz     short loc_10056A42B                                            ; +0x50, 0x10056a420\nmov     rcx, [rdi+298h]                                                ; +0x52, 0x10056a422\njmp     short loc_10056A432                                            ; +0x59, 0x10056a429\nmov     rcx, [rdi+290h]                                                ; +0x5b, 0x10056a42b\nmov     [rcx+48h], ax                                                  ; +0x62, 0x10056a432\nshr     eax, 10h                                                       ; +0x66, 0x10056a436\nmov     [rcx+4Ah], al                                                  ; +0x69, 0x10056a439\npop     rbp                                                            ; +0x6c, 0x10056a43c\nretn                                                                   ; +0x6d, 0x10056a43d", "xrefs": [], "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"}