{"type": "func", "start": 4302320736, "end": 4302320949, "name": "GJSpecialColorSelect::onSelectColor", "pseudocode": "// \n// GJSpecialColorSelect::onSelectColor from 0x100703460 to 0x100703535 (213 bytes)\n// \n// 1 xrefs:\n// > GJSpecialColorSelect::init @ 0x1007031f5\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:35:59 +0000\n// \n\nvoid __fastcall GJSpecialColorSelect::onSelectColor(__int64 a1, __int64 a2)\n{\n  unsigned int v2; // r15d\n  __int64 v3; // r12\n  const char *v4; // rsi\n  __int64 v5; // [rsp+0h] [rbp-30h]\n\n  *(_DWORD *)(a1 + 672) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1072LL))(a2);\n  if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 680)) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 680), v2);\n      v4 = \"GJ_button_04.png\";\n      if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 64LL))(v3) == 1008 )\n        v4 = \"GJ_button_05.png\";\n      ButtonSprite::updateBGImage(v3, (__int64)v4);\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 680)) );\n  }\n  if ( v5 )\n    ButtonSprite::updateBGImage(v5, (__int64)\"GJ_button_02.png\");\n}", "assembly": "; \n; GJSpecialColorSelect::onSelectColor from 0x100703460 to 0x100703535 (213 bytes)\n; \n; 1 xrefs:\n; > GJSpecialColorSelect::init @ 0x1007031f5\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:35:59 +0000\n; \npush    rbp                                                            ; +0x0, 0x100703460\nmov     rbp, rsp                                                       ; +0x1, 0x100703461\npush    r15                                                            ; +0x4, 0x100703464\npush    r14                                                            ; +0x6, 0x100703466\npush    r13                                                            ; +0x8, 0x100703468\npush    r12                                                            ; +0xa, 0x10070346a\npush    rbx                                                            ; +0xc, 0x10070346c\npush    rax                                                            ; +0xd, 0x10070346d\nmov     r14, rsi                                                       ; +0xe, 0x10070346e\nmov     rbx, rdi                                                       ; +0x11, 0x100703471\nmov     rax, [rsi]                                                     ; +0x14, 0x100703474\nmov     rdi, rsi                                                       ; +0x17, 0x100703477\ncall    qword ptr [rax+40h]                                            ; +0x1a, 0x10070347a\nmov     [rbx+2A0h], eax                                                ; +0x1d, 0x10070347d\nmov     rax, [r14]                                                     ; +0x23, 0x100703483\nmov     rdi, r14                                                       ; +0x26, 0x100703486\ncall    qword ptr [rax+430h]                                           ; +0x29, 0x100703489\nmov     [rbp+var_30], rax                                              ; +0x2f, 0x10070348f\nmov     rdi, [rbx+2A8h]                                                ; +0x33, 0x100703493\ncall    sub_1007FEF90                                                  ; +0x3a, 0x10070349a\ntest    eax, eax                                                       ; +0x3f, 0x10070349f\njz      short loc_100703503                                            ; +0x41, 0x1007034a1\nxor     r15d, r15d                                                     ; +0x43, 0x1007034a3\nlea     r13, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x46, 0x1007034a6\nlea     r14, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x4d, 0x1007034ad\nnop     word ptr [rax+rax+00000000h]                                   ; +0x54, 0x1007034b4\nmov     rdi, [rbx+2A8h]                                                ; +0x60, 0x1007034c0\nmov     esi, r15d                                                      ; +0x67, 0x1007034c7\ncall    sub_1007FEFE0                                                  ; +0x6a, 0x1007034ca\nmov     r12, rax                                                       ; +0x6f, 0x1007034cf\nmov     rax, [rax]                                                     ; +0x72, 0x1007034d2\nmov     rdi, r12                                                       ; +0x75, 0x1007034d5\ncall    qword ptr [rax+40h]                                            ; +0x78, 0x1007034d8\ncmp     eax, 3F0h                                                      ; +0x7b, 0x1007034db\nmov     rsi, r14                                                       ; +0x80, 0x1007034e0\ncmovz   rsi, r13                                                       ; +0x83, 0x1007034e3\nmov     rdi, r12                                                       ; +0x87, 0x1007034e7\ncall    ButtonSprite__updateBGImage                                    ; +0x8a, 0x1007034ea\ninc     r15d                                                           ; +0x8f, 0x1007034ef\nmov     rdi, [rbx+2A8h]                                                ; +0x92, 0x1007034f2\ncall    sub_1007FEF90                                                  ; +0x99, 0x1007034f9\ncmp     r15d, eax                                                      ; +0x9e, 0x1007034fe\njb      short loc_1007034C0                                            ; +0xa1, 0x100703501\nmov     rdi, [rbp+var_30]                                              ; +0xa3, 0x100703503\ntest    rdi, rdi                                                       ; +0xa7, 0x100703507\njz      short loc_100703526                                            ; +0xaa, 0x10070350a\nlea     rsi, aGjButton02Png; \"GJ_button_02.png\"                        ; +0xac, 0x10070350c\nadd     rsp, 8                                                         ; +0xb3, 0x100703513\npop     rbx                                                            ; +0xb7, 0x100703517\npop     r12                                                            ; +0xb8, 0x100703518\npop     r13                                                            ; +0xba, 0x10070351a\npop     r14                                                            ; +0xbc, 0x10070351c\npop     r15                                                            ; +0xbe, 0x10070351e\npop     rbp                                                            ; +0xc0, 0x100703520\njmp     ButtonSprite__updateBGImage                                    ; +0xc1, 0x100703521\nadd     rsp, 8                                                         ; +0xc6, 0x100703526\npop     rbx                                                            ; +0xca, 0x10070352a\npop     r12                                                            ; +0xcb, 0x10070352b\npop     r13                                                            ; +0xcd, 0x10070352d\npop     r14                                                            ; +0xcf, 0x10070352f\npop     r15                                                            ; +0xd1, 0x100703531\npop     rbp                                                            ; +0xd3, 0x100703533\nretn                                                                   ; +0xd4, 0x100703534", "xrefs": ["GJSpecialColorSelect::init @ 0x1007031f5"], "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"}