{"type": "func", "start": 5369814608, "end": 5369814953, "name": "DeathTrackerPopup::onPanelButton", "pseudocode": "// \n// DeathTrackerPopup::onPanelButton from 0x14010de50 to 0x14010dfa9 (345 bytes)\n// \n// 3 xrefs:\n// > DeathTrackerPopup::init @ 0x140105925\n// > <???> @ 0x140915b24\n// > <???> @ 0x140915b30\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 11:26:48 +0000\n// \n\nvoid __fastcall DeathTrackerPopup::onPanelButton(__int64 a1, __int64 a2)\n{\n  int v3; // r9d\n  __int64 v4; // rdx\n  int v5; // r9d\n  __int64 v6; // rdx\n  int v7; // eax\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = (unsigned int)(v3 / 10);\n  v5 = v3 % 10;\n  if ( *(_BYTE *)(a1 + 920) )\n  {\n    if ( !(_DWORD)v4 && v5 <= 1 && *(_BYTE *)(a1 + 977) != (v5 == 1) )\n    {\n      *(_BYTE *)(a1 + 977) = v5 == 1;\n      DeathTrackerPopup::refreshView(a1, v4);\n    }\n  }\n  else if ( (_DWORD)v4 )\n  {\n    v7 = *(_DWORD *)(a1 + 728);\n    if ( (_DWORD)v4 == 1 )\n    {\n      if ( v7 != 3 && (v7 != 2 || !*(_BYTE *)(a1 + 986)) )\n      {\n        *(_DWORD *)(a1 + 740) = v5;\n        if ( v5 )\n          *(_BYTE *)(a1 + 744) = 0;\n        *(_BYTE *)(a1 + 745) = 1;\n        DeathTrackerPopup::refreshView(a1, v4);\n      }\n    }\n    else if ( v7 )\n    {\n      if ( v7 == 2 && v5 <= 1 && *(_BYTE *)(a1 + 986) != (v5 == 0) )\n      {\n        *(_BYTE *)(a1 + 986) = v5 == 0;\n        DeathTrackerPopup::setView(a1, 2);\n      }\n    }\n    else\n    {\n      *(_BYTE *)(a1 + 745) = 1;\n      *(_BYTE *)(a1 + 744) = v5 == 1;\n      DeathTrackerPopup::refreshView(a1, v4);\n    }\n  }\n  else\n  {\n    DeathTrackerPopup::setView(a1, dword_140702E78[v5]);\n    DeathTrackerPopup::refreshView(a1, v6);\n  }\n}", "assembly": "; \n; DeathTrackerPopup::onPanelButton from 0x14010de50 to 0x14010dfa9 (345 bytes)\n; \n; 3 xrefs:\n; > DeathTrackerPopup::init @ 0x140105925\n; > <???> @ 0x140915b24\n; > <???> @ 0x140915b30\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 11:26:48 +0000\n; \npush    rbx                                                            ; +0x0, 0x14010de50\nsub     rsp, 20h                                                       ; +0x2, 0x14010de52\nmov     rax, [rdx]                                                     ; +0x6, 0x14010de56\nmov     rbx, rcx                                                       ; +0x9, 0x14010de59\nmov     rcx, rdx                                                       ; +0xc, 0x14010de5c\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x14010de5f\nmov     r9d, eax                                                       ; +0x12, 0x14010de62\nmov     eax, 66666667h                                                 ; +0x15, 0x14010de65\nimul    r9d                                                            ; +0x1a, 0x14010de6a\nsar     edx, 2                                                         ; +0x1d, 0x14010de6d\nmov     r8d, edx                                                       ; +0x20, 0x14010de70\nshr     r8d, 1Fh                                                       ; +0x23, 0x14010de73\nadd     edx, r8d                                                       ; +0x27, 0x14010de77\nlea     ecx, [rdx+rdx*4]                                               ; +0x2a, 0x14010de7a\nadd     ecx, ecx                                                       ; +0x2d, 0x14010de7d\nsub     r9d, ecx                                                       ; +0x2f, 0x14010de7f\ncmp     byte ptr [rbx+398h], 0                                         ; +0x32, 0x14010de82\njz      short loc_14010DECF                                            ; +0x39, 0x14010de89\ntest    edx, edx                                                       ; +0x3b, 0x14010de8b\njnz     loc_14010DFA3                                                  ; +0x3d, 0x14010de8d\ncmp     r9d, 1                                                         ; +0x43, 0x14010de93\njg      loc_14010DFA3                                                  ; +0x47, 0x14010de97\nmovzx   eax, byte ptr [rbx+3D1h]                                       ; +0x4d, 0x14010de9d\nxor     ecx, ecx                                                       ; +0x54, 0x14010dea4\ncmp     r9d, 1                                                         ; +0x56, 0x14010dea6\nsetz    cl                                                             ; +0x5a, 0x14010deaa\ncmp     eax, ecx                                                       ; +0x5d, 0x14010dead\njz      loc_14010DFA3                                                  ; +0x5f, 0x14010deaf\ncmp     r9d, 1                                                         ; +0x65, 0x14010deb5\nmov     rcx, rbx                                                       ; +0x69, 0x14010deb9\nsetz    al                                                             ; +0x6c, 0x14010debc\nmov     [rbx+3D1h], al                                                 ; +0x6f, 0x14010debf\nadd     rsp, 20h                                                       ; +0x75, 0x14010dec5\npop     rbx                                                            ; +0x79, 0x14010dec9\njmp     DeathTrackerPopup__refreshView                                 ; +0x7a, 0x14010deca\ntest    edx, edx                                                       ; +0x7f, 0x14010decf\njnz     short loc_14010DEF5                                            ; +0x81, 0x14010ded1\nmovsxd  rdx, r9d                                                       ; +0x83, 0x14010ded3\nlea     rax, dword_140702E78                                           ; +0x86, 0x14010ded6\nmov     rcx, rbx                                                       ; +0x8d, 0x14010dedd\nmov     edx, [rax+rdx*4]                                               ; +0x90, 0x14010dee0\ncall    DeathTrackerPopup__setView                                     ; +0x93, 0x14010dee3\nmov     rcx, rbx                                                       ; +0x98, 0x14010dee8\nadd     rsp, 20h                                                       ; +0x9b, 0x14010deeb\npop     rbx                                                            ; +0x9f, 0x14010deef\njmp     DeathTrackerPopup__refreshView                                 ; +0xa0, 0x14010def0\nmov     eax, [rbx+2D8h]                                                ; +0xa5, 0x14010def5\ncmp     edx, 1                                                         ; +0xab, 0x14010defb\njnz     short loc_14010DF42                                            ; +0xae, 0x14010defe\ncmp     eax, 3                                                         ; +0xb0, 0x14010df00\njz      loc_14010DFA3                                                  ; +0xb3, 0x14010df03\ncmp     eax, 2                                                         ; +0xb9, 0x14010df09\njnz     short loc_14010DF1B                                            ; +0xbc, 0x14010df0c\ncmp     byte ptr [rbx+3DAh], 0                                         ; +0xbe, 0x14010df0e\njnz     loc_14010DFA3                                                  ; +0xc5, 0x14010df15\nmov     [rbx+2E4h], r9d                                                ; +0xcb, 0x14010df1b\ntest    r9d, r9d                                                       ; +0xd2, 0x14010df22\njz      short loc_14010DF2E                                            ; +0xd5, 0x14010df25\nmov     byte ptr [rbx+2E8h], 0                                         ; +0xd7, 0x14010df27\nmov     rcx, rbx                                                       ; +0xde, 0x14010df2e\nmov     byte ptr [rbx+2E9h], 1                                         ; +0xe1, 0x14010df31\nadd     rsp, 20h                                                       ; +0xe8, 0x14010df38\npop     rbx                                                            ; +0xec, 0x14010df3c\njmp     DeathTrackerPopup__refreshView                                 ; +0xed, 0x14010df3d\ntest    eax, eax                                                       ; +0xf2, 0x14010df42\njnz     short loc_14010DF67                                            ; +0xf4, 0x14010df44\ncmp     r9d, 1                                                         ; +0xf6, 0x14010df46\nmov     byte ptr [rbx+2E9h], 1                                         ; +0xfa, 0x14010df4a\nmov     rcx, rbx                                                       ; +0x101, 0x14010df51\nsetz    al                                                             ; +0x104, 0x14010df54\nmov     [rbx+2E8h], al                                                 ; +0x107, 0x14010df57\nadd     rsp, 20h                                                       ; +0x10d, 0x14010df5d\npop     rbx                                                            ; +0x111, 0x14010df61\njmp     DeathTrackerPopup__refreshView                                 ; +0x112, 0x14010df62\ncmp     eax, 2                                                         ; +0x117, 0x14010df67\njnz     short loc_14010DFA3                                            ; +0x11a, 0x14010df6a\ncmp     r9d, 1                                                         ; +0x11c, 0x14010df6c\njg      short loc_14010DFA3                                            ; +0x120, 0x14010df70\nmovzx   eax, byte ptr [rbx+3DAh]                                       ; +0x122, 0x14010df72\nxor     ecx, ecx                                                       ; +0x129, 0x14010df79\ntest    r9d, r9d                                                       ; +0x12b, 0x14010df7b\nsetz    cl                                                             ; +0x12e, 0x14010df7e\ncmp     eax, ecx                                                       ; +0x131, 0x14010df81\njz      short loc_14010DFA3                                            ; +0x133, 0x14010df83\ntest    r9d, r9d                                                       ; +0x135, 0x14010df85\nmov     edx, 2                                                         ; +0x138, 0x14010df88\nmov     rcx, rbx                                                       ; +0x13d, 0x14010df8d\nsetz    al                                                             ; +0x140, 0x14010df90\nmov     [rbx+3DAh], al                                                 ; +0x143, 0x14010df93\nadd     rsp, 20h                                                       ; +0x149, 0x14010df99\npop     rbx                                                            ; +0x14d, 0x14010df9d\njmp     DeathTrackerPopup__setView                                     ; +0x14e, 0x14010df9e\nadd     rsp, 20h                                                       ; +0x153, 0x14010dfa3\npop     rbx                                                            ; +0x157, 0x14010dfa7\nretn                                                                   ; +0x158, 0x14010dfa8", "xrefs": ["DeathTrackerPopup::init @ 0x140105925", "<???> @ 0x140915b24", "<???> @ 0x140915b30"], "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"}