{"type": "func", "start": 4296652352, "end": 4296652455, "name": "EffectGameObject::getTargetColorIndex", "pseudocode": "// \n// EffectGameObject::getTargetColorIndex from 0x10019b640 to 0x10019b6a7 (103 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::updateCopyColor @ 0x10080a104\n// > ColorSelectPopup::updateCopyColor @ 0x10080a16c\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:25:57 +0000\n// \n\n__int64 __fastcall EffectGameObject::getTargetColorIndex(__int64 a1)\n{\n  int v1; // eax\n\n  v1 = *(_DWORD *)(a1 + 1028);\n  if ( v1 > 743 )\n  {\n    if ( v1 == 744 )\n      return 1003;\n    if ( v1 != 900 )\n    {\n      if ( v1 == 915 )\n        return 1002;\n      return *(unsigned int *)(a1 + 1024);\n    }\n    return 1009;\n  }\n  else\n  {\n    if ( v1 == 29 )\n      return 1000;\n    if ( v1 != 30 )\n    {\n      if ( v1 == 105 )\n        return 1004;\n      return *(unsigned int *)(a1 + 1024);\n    }\n    return 1001;\n  }\n}", "assembly": "; \n; EffectGameObject::getTargetColorIndex from 0x10019b640 to 0x10019b6a7 (103 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::updateCopyColor @ 0x10080a104\n; > ColorSelectPopup::updateCopyColor @ 0x10080a16c\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:25:57 +0000\n; \npush    rbp                                                            ; +0x0, 0x10019b640\nmov     rbp, rsp                                                       ; +0x1, 0x10019b641\nmov     eax, [rdi+404h]                                                ; +0x4, 0x10019b644\ncmp     eax, 2E7h                                                      ; +0xa, 0x10019b64a\njg      short loc_10019B667                                            ; +0xf, 0x10019b64f\ncmp     eax, 1Dh                                                       ; +0x11, 0x10019b651\njz      short loc_10019B683                                            ; +0x14, 0x10019b654\ncmp     eax, 1Eh                                                       ; +0x16, 0x10019b656\njz      short loc_10019B699                                            ; +0x19, 0x10019b659\ncmp     eax, 69h ; 'i'                                                 ; +0x1b, 0x10019b65b\njnz     short loc_10019B691                                            ; +0x1e, 0x10019b65e\nmov     eax, 3ECh                                                      ; +0x20, 0x10019b660\npop     rbp                                                            ; +0x25, 0x10019b665\nretn                                                                   ; +0x26, 0x10019b666\ncmp     eax, 2E8h                                                      ; +0x27, 0x10019b667\njz      short loc_10019B68A                                            ; +0x2c, 0x10019b66c\ncmp     eax, 384h                                                      ; +0x2e, 0x10019b66e\njz      short loc_10019B6A0                                            ; +0x33, 0x10019b673\ncmp     eax, 393h                                                      ; +0x35, 0x10019b675\njnz     short loc_10019B691                                            ; +0x3a, 0x10019b67a\nmov     eax, 3EAh                                                      ; +0x3c, 0x10019b67c\npop     rbp                                                            ; +0x41, 0x10019b681\nretn                                                                   ; +0x42, 0x10019b682\nmov     eax, 3E8h                                                      ; +0x43, 0x10019b683\npop     rbp                                                            ; +0x48, 0x10019b688\nretn                                                                   ; +0x49, 0x10019b689\nmov     eax, 3EBh                                                      ; +0x4a, 0x10019b68a\npop     rbp                                                            ; +0x4f, 0x10019b68f\nretn                                                                   ; +0x50, 0x10019b690\nmov     eax, [rdi+400h]                                                ; +0x51, 0x10019b691\npop     rbp                                                            ; +0x57, 0x10019b697\nretn                                                                   ; +0x58, 0x10019b698\nmov     eax, 3E9h                                                      ; +0x59, 0x10019b699\npop     rbp                                                            ; +0x5e, 0x10019b69e\nretn                                                                   ; +0x5f, 0x10019b69f\nmov     eax, 3F1h                                                      ; +0x60, 0x10019b6a0\npop     rbp                                                            ; +0x65, 0x10019b6a5\nretn                                                                   ; +0x66, 0x10019b6a6", "xrefs": ["ColorSelectPopup::updateCopyColor @ 0x10080a104", "ColorSelectPopup::updateCopyColor @ 0x10080a16c"], "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"}