{"type": "func", "start": 4297890640, "end": 4297890791, "name": "GJEffectManager::traverseInheritanceChain", "pseudocode": "// \n// GJEffectManager::traverseInheritanceChain from 0x1002c9b50 to 0x1002c9be7 (151 bytes)\n// \n// 0 xrefs:\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:28:09 +0000\n// \n\n__int64 __fastcall GJEffectManager::traverseInheritanceChain(__int64 a1, __int64 a2)\n{\n  __int64 v3; // r14\n  __int64 v4; // rdi\n  unsigned int *v5; // rax\n  unsigned __int64 v6; // r14\n  unsigned __int64 v7; // r15\n\n  if ( a2 )\n  {\n    v3 = a2;\n    do\n    {\n      a2 = v3;\n      sub_1007FEBF0(*(_QWORD *)(a1 + 1000), v3);\n      v3 = *(_QWORD *)(v3 + 64);\n    }\n    while ( v3 );\n  }\n  v4 = *(_QWORD *)(a1 + 1000);\n  if ( !v4 )\n  {\n    v4 = 0;\n    return sub_1007FF190(v4);\n  }\n  v5 = *(unsigned int **)(v4 + 56);\n  if ( !*v5 )\n    return sub_1007FF190(v4);\n  v6 = *((_QWORD *)v5 + 2);\n  v7 = v6 + 8LL * *v5 - 8;\n  do\n  {\n    if ( !*(_QWORD *)v7 )\n      break;\n    GJEffectManager::calculateInheritedColor(a1, a2, *(_QWORD *)(*(_QWORD *)v7 + 72LL));\n    v7 -= 8LL;\n  }\n  while ( v7 >= v6 );\n  return sub_1007FF190(*(_QWORD *)(a1 + 1000));\n}", "assembly": "; \n; GJEffectManager::traverseInheritanceChain from 0x1002c9b50 to 0x1002c9be7 (151 bytes)\n; \n; 0 xrefs:\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:28:09 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002c9b50\nmov     rbp, rsp                                                       ; +0x1, 0x1002c9b51\npush    r15                                                            ; +0x4, 0x1002c9b54\npush    r14                                                            ; +0x6, 0x1002c9b56\npush    rbx                                                            ; +0x8, 0x1002c9b58\npush    rax                                                            ; +0x9, 0x1002c9b59\nmov     rbx, rdi                                                       ; +0xa, 0x1002c9b5a\ntest    rsi, rsi                                                       ; +0xd, 0x1002c9b5d\njz      short loc_1002C9B88                                            ; +0x10, 0x1002c9b60\nmov     r14, rsi                                                       ; +0x12, 0x1002c9b62\nnop     word ptr [rax+rax+00000000h]                                   ; +0x15, 0x1002c9b65\nmov     rdi, [rbx+3E8h]                                                ; +0x20, 0x1002c9b70\nmov     rsi, r14                                                       ; +0x27, 0x1002c9b77\ncall    sub_1007FEBF0                                                  ; +0x2a, 0x1002c9b7a\nmov     r14, [r14+40h]                                                 ; +0x2f, 0x1002c9b7f\ntest    r14, r14                                                       ; +0x33, 0x1002c9b83\njnz     short loc_1002C9B70                                            ; +0x36, 0x1002c9b86\nmov     rdi, [rbx+3E8h]                                                ; +0x38, 0x1002c9b88\ntest    rdi, rdi                                                       ; +0x3f, 0x1002c9b8f\njz      short loc_1002C9BD6                                            ; +0x42, 0x1002c9b92\nmov     rax, [rdi+38h]                                                 ; +0x44, 0x1002c9b94\nmov     ecx, [rax]                                                     ; +0x48, 0x1002c9b98\ntest    rcx, rcx                                                       ; +0x4a, 0x1002c9b9a\njz      short loc_1002C9BD8                                            ; +0x4d, 0x1002c9b9d\nmov     r14, [rax+10h]                                                 ; +0x4f, 0x1002c9b9f\nlea     r15, [r14+rcx*8]                                               ; +0x53, 0x1002c9ba3\nadd     r15, 0FFFFFFFFFFFFFFF8h                                        ; +0x57, 0x1002c9ba7\nnop     dword ptr [rax+rax+00h]                                        ; +0x5b, 0x1002c9bab\nmov     rax, [r15]                                                     ; +0x60, 0x1002c9bb0\ntest    rax, rax                                                       ; +0x63, 0x1002c9bb3\njz      short loc_1002C9BCD                                            ; +0x66, 0x1002c9bb6\nmov     rdx, [rax+48h]                                                 ; +0x68, 0x1002c9bb8\nmov     rdi, rbx                                                       ; +0x6c, 0x1002c9bbc\ncall    GJEffectManager__calculateInheritedColor                       ; +0x6f, 0x1002c9bbf\nadd     r15, 0FFFFFFFFFFFFFFF8h                                        ; +0x74, 0x1002c9bc4\ncmp     r15, r14                                                       ; +0x78, 0x1002c9bc8\njnb     short loc_1002C9BB0                                            ; +0x7b, 0x1002c9bcb\nmov     rdi, [rbx+3E8h]                                                ; +0x7d, 0x1002c9bcd\njmp     short loc_1002C9BD8                                            ; +0x84, 0x1002c9bd4\nxor     edi, edi                                                       ; +0x86, 0x1002c9bd6\nadd     rsp, 8                                                         ; +0x88, 0x1002c9bd8\npop     rbx                                                            ; +0x8c, 0x1002c9bdc\npop     r14                                                            ; +0x8d, 0x1002c9bdd\npop     r15                                                            ; +0x8f, 0x1002c9bdf\npop     rbp                                                            ; +0x91, 0x1002c9be1\njmp     sub_1007FF190                                                  ; +0x92, 0x1002c9be2", "xrefs": [], "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"}