{"type": "func", "start": 4300642224, "end": 4300642389, "name": "ColorSelectLiveOverlay::determineStartValues", "pseudocode": "// \n// ColorSelectLiveOverlay::determineStartValues from 0x1005697b0 to 0x100569855 (165 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::determineStartValues(ColorSelectLiveOverlay *a1)\n{\n  EffectGameObject *m_effectGameObject; // rax\n  __int16 v2; // cx\n  GLubyte b; // dl\n  ColorAction *m_baseColorAction; // rcx\n  ColorAction *m_detailColorAction; // rax\n  __int16 v6; // dx\n  GLubyte v7; // si\n  __int16 v8; // cx\n\n  m_effectGameObject = a1->m_effectGameObject;\n  if ( m_effectGameObject )\n  {\n    v2 = *(_WORD *)&m_effectGameObject->m_triggerTargetColor.r;\n    b = m_effectGameObject->m_triggerTargetColor.b;\n    a1->m_targetColor.b = b;\n    *(_WORD *)&a1->m_targetColor.r = v2;\n    a1->m_opacity = m_effectGameObject->m_opacity;\n    *(_WORD *)&a1->m_mainColor.r = v2;\n    a1->m_mainColor.b = b;\n  }\n  else\n  {\n    m_baseColorAction = a1->m_baseColorAction;\n    m_detailColorAction = a1->m_detailColorAction;\n    v6 = *(_WORD *)&m_baseColorAction->m_fromColor.r;\n    v7 = m_baseColorAction->m_fromColor.b;\n    a1->m_targetColor.b = v7;\n    *(_WORD *)&a1->m_targetColor.r = v6;\n    *(_WORD *)&a1->m_mainColor.r = v6;\n    a1->m_mainColor.b = v7;\n    a1->m_opacity = m_baseColorAction->m_fromOpacity;\n    if ( m_detailColorAction )\n    {\n      v8 = *(_WORD *)&m_detailColorAction->m_fromColor.r;\n      a1->m_detailColor.b = m_detailColorAction->m_fromColor.b;\n      *(_WORD *)&a1->m_detailColor.r = v8;\n    }\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::determineStartValues from 0x1005697b0 to 0x100569855 (165 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\npush    rbp                                                            ; +0x0, 0x1005697b0\nmov     rbp, rsp                                                       ; +0x1, 0x1005697b1\nmov     rax, [rdi+278h]                                                ; +0x4, 0x1005697b4\ntest    rax, rax                                                       ; +0xb, 0x1005697bb\njz      short loc_1005697FA                                            ; +0xe, 0x1005697be\nmovzx   ecx, word ptr [rax+5A8h]                                       ; +0x10, 0x1005697c0\nmovzx   edx, byte ptr [rax+5AAh]                                       ; +0x17, 0x1005697c7\nmov     [rdi+2A8h], dl                                                 ; +0x1e, 0x1005697ce\nmov     [rdi+2A6h], cx                                                 ; +0x24, 0x1005697d4\nmovss   xmm0, dword ptr [rax+5B0h]                                     ; +0x2b, 0x1005697db\nmovss   dword ptr [rdi+2B8h], xmm0                                     ; +0x33, 0x1005697e3\nmov     [rdi+2A0h], cx                                                 ; +0x3b, 0x1005697eb\nmov     [rdi+2A2h], dl                                                 ; +0x42, 0x1005697f2\npop     rbp                                                            ; +0x48, 0x1005697f8\nretn                                                                   ; +0x49, 0x1005697f9\nmov     rcx, [rdi+290h]                                                ; +0x4a, 0x1005697fa\nmov     rax, [rdi+298h]                                                ; +0x51, 0x100569801\nmovzx   edx, word ptr [rcx+48h]                                        ; +0x58, 0x100569808\nmovzx   esi, byte ptr [rcx+4Ah]                                        ; +0x5c, 0x10056980c\nmov     [rdi+2A8h], sil                                                ; +0x60, 0x100569810\nmov     [rdi+2A6h], dx                                                 ; +0x67, 0x100569817\nmov     [rdi+2A0h], dx                                                 ; +0x6e, 0x10056981e\nmov     [rdi+2A2h], sil                                                ; +0x75, 0x100569825\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x7c, 0x10056982c\nmovss   dword ptr [rdi+2B8h], xmm0                                     ; +0x81, 0x100569831\ntest    rax, rax                                                       ; +0x89, 0x100569839\njz      short loc_100569853                                            ; +0x8c, 0x10056983c\nmovzx   ecx, word ptr [rax+48h]                                        ; +0x8e, 0x10056983e\nmovzx   eax, byte ptr [rax+4Ah]                                        ; +0x92, 0x100569842\nmov     [rdi+2A5h], al                                                 ; +0x96, 0x100569846\nmov     [rdi+2A3h], cx                                                 ; +0x9c, 0x10056984c\npop     rbp                                                            ; +0xa3, 0x100569853\nretn                                                                   ; +0xa4, 0x100569854", "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"}