{"type": "func", "start": 4301417520, "end": 4301417701, "name": "GJSpecialColorSelect::highlightSelected", "pseudocode": "// \n// GJSpecialColorSelect::highlightSelected from 0x100626c30 to 0x100626ce5 (181 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 GJSpecialColorSelect::highlightSelected(GJSpecialColorSelect *a1, ButtonSprite *a2)\n{\n  unsigned int v2; // r15d\n  ButtonSprite *v3; // r12\n  const char *v4; // rsi\n\n  if ( (unsigned int)sub_100720070(a1->m_buttonSprites) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = (ButtonSprite *)sub_1007200C0(a1->m_buttonSprites, v2);\n      v4 = \"GJ_button_04.png\";\n      if ( ((unsigned int (__fastcall *)(ButtonSprite *))v3->getTag)(v3) == 1008 )\n        v4 = \"GJ_button_05.png\";\n      ButtonSprite::updateBGImage(v3, v4);\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_100720070(a1->m_buttonSprites) );\n  }\n  if ( a2 )\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n}", "assembly": "; \n; GJSpecialColorSelect::highlightSelected from 0x100626c30 to 0x100626ce5 (181 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, 0x100626c30\nmov     rbp, rsp                                                       ; +0x1, 0x100626c31\npush    r15                                                            ; +0x4, 0x100626c34\npush    r14                                                            ; +0x6, 0x100626c36\npush    r13                                                            ; +0x8, 0x100626c38\npush    r12                                                            ; +0xa, 0x100626c3a\npush    rbx                                                            ; +0xc, 0x100626c3c\npush    rax                                                            ; +0xd, 0x100626c3d\nmov     [rbp+var_30], rsi                                              ; +0xe, 0x100626c3e\nmov     r14, rdi                                                       ; +0x12, 0x100626c42\nmov     rdi, [rdi+288h]                                                ; +0x15, 0x100626c45\ncall    sub_100720070                                                  ; +0x1c, 0x100626c4c\ntest    eax, eax                                                       ; +0x21, 0x100626c51\njz      short loc_100626CB3                                            ; +0x23, 0x100626c53\nxor     r15d, r15d                                                     ; +0x25, 0x100626c55\nlea     r13, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x28, 0x100626c58\nlea     rbx, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x2f, 0x100626c5f\nnop     word ptr [rax+rax+00000000h]                                   ; +0x36, 0x100626c66\nmov     rdi, [r14+288h]                                                ; +0x40, 0x100626c70\nmov     esi, r15d                                                      ; +0x47, 0x100626c77\ncall    sub_1007200C0                                                  ; +0x4a, 0x100626c7a\nmov     r12, rax                                                       ; +0x4f, 0x100626c7f\nmov     rax, [rax]                                                     ; +0x52, 0x100626c82\nmov     rdi, r12                                                       ; +0x55, 0x100626c85\ncall    qword ptr [rax+40h]                                            ; +0x58, 0x100626c88\ncmp     eax, 3F0h                                                      ; +0x5b, 0x100626c8b\nmov     rsi, rbx                                                       ; +0x60, 0x100626c90\ncmovz   rsi, r13                                                       ; +0x63, 0x100626c93\nmov     rdi, r12                                                       ; +0x67, 0x100626c97\ncall    ButtonSprite__updateBGImage                                    ; +0x6a, 0x100626c9a\ninc     r15d                                                           ; +0x6f, 0x100626c9f\nmov     rdi, [r14+288h]                                                ; +0x72, 0x100626ca2\ncall    sub_100720070                                                  ; +0x79, 0x100626ca9\ncmp     r15d, eax                                                      ; +0x7e, 0x100626cae\njb      short loc_100626C70                                            ; +0x81, 0x100626cb1\nmov     rdi, [rbp+var_30]                                              ; +0x83, 0x100626cb3\ntest    rdi, rdi                                                       ; +0x87, 0x100626cb7\njz      short loc_100626CD6                                            ; +0x8a, 0x100626cba\nlea     rsi, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x8c, 0x100626cbc\nadd     rsp, 8                                                         ; +0x93, 0x100626cc3\npop     rbx                                                            ; +0x97, 0x100626cc7\npop     r12                                                            ; +0x98, 0x100626cc8\npop     r13                                                            ; +0x9a, 0x100626cca\npop     r14                                                            ; +0x9c, 0x100626ccc\npop     r15                                                            ; +0x9e, 0x100626cce\npop     rbp                                                            ; +0xa0, 0x100626cd0\njmp     ButtonSprite__updateBGImage                                    ; +0xa1, 0x100626cd1\nadd     rsp, 8                                                         ; +0xa6, 0x100626cd6\npop     rbx                                                            ; +0xaa, 0x100626cda\npop     r12                                                            ; +0xab, 0x100626cdb\npop     r13                                                            ; +0xad, 0x100626cdd\npop     r14                                                            ; +0xaf, 0x100626cdf\npop     r15                                                            ; +0xb1, 0x100626ce1\npop     rbp                                                            ; +0xb3, 0x100626ce3\nretn                                                                   ; +0xb4, 0x100626ce4", "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"}