{"type": "func", "start": 5369442352, "end": 5369442619, "name": "AccountReviewPopup::selectTab", "pseudocode": "// \n// AccountReviewPopup::selectTab from 0x1400b3030 to 0x1400b313b (267 bytes)\n// \n// 3 xrefs:\n// > AccountReviewPopup::init @ 0x1400b095e\n// > AccountReviewPopup::onTab @ 0x1400b3024\n// > <???> @ 0x140913574\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:13 +0000\n// \n\n__int64 __fastcall AccountReviewPopup::selectTab(__int64 a1, int a2)\n{\n  __int64 *v4; // rsi\n  int v5; // edi\n  __int64 v6; // rbp\n  const char *v7; // rdx\n  int v8; // eax\n  __int64 v9; // rcx\n  __int64 v10; // rcx\n  __int64 v11; // rcx\n\n  *(_DWORD *)(a1 + 1324) = a2;\n  v4 = (__int64 *)(a1 + 1464);\n  v5 = 0;\n  v6 = 3;\n  do\n  {\n    v7 = \"GJ_button_04.png\";\n    if ( v5 == a2 )\n      v7 = \"GJ_button_01.png\";\n    ButtonSprite::updateBGImage(*v4, v7);\n    ++v5;\n    ++v4;\n    --v6;\n  }\n  while ( v6 );\n  AccountReviewPopup::updateTabControls(a1);\n  if ( (*(unsigned __int8 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1080LL))(a1, 0) )\n  {\n    *(_DWORD *)(a1 + 680) = 0;\n    v8 = -1;\n  }\n  else\n  {\n    v8 = 0;\n  }\n  *(_DWORD *)(a1 + 684) = v8;\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1088LL))(a1);\n  v9 = *(_QWORD *)(a1 + 760);\n  if ( v9 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 512LL))(v9);\n    *(_QWORD *)(a1 + 760) = 0;\n  }\n  v10 = *(_QWORD *)(a1 + 720);\n  if ( v10 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 336LL))(v10, 0);\n  v11 = *(_QWORD *)(a1 + 728);\n  if ( v11 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 336LL))(v11, 0);\n  return PagedListPopup::showLoading(a1);\n}", "assembly": "; \n; AccountReviewPopup::selectTab from 0x1400b3030 to 0x1400b313b (267 bytes)\n; \n; 3 xrefs:\n; > AccountReviewPopup::init @ 0x1400b095e\n; > AccountReviewPopup::onTab @ 0x1400b3024\n; > <???> @ 0x140913574\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:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400b3030\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400b3035\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1400b303a\npush    rdi                                                            ; +0xf, 0x1400b303f\npush    r12                                                            ; +0x10, 0x1400b3040\npush    r14                                                            ; +0x12, 0x1400b3042\nsub     rsp, 20h                                                       ; +0x14, 0x1400b3044\nmov     r14d, edx                                                      ; +0x18, 0x1400b3048\nmov     [rcx+52Ch], edx                                                ; +0x1b, 0x1400b304b\nmov     rbx, rcx                                                       ; +0x21, 0x1400b3051\nlea     rsi, [rcx+5B8h]                                                ; +0x24, 0x1400b3054\nxor     edi, edi                                                       ; +0x2b, 0x1400b305b\nlea     r12, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x2d, 0x1400b305d\nmov     ebp, 3                                                         ; +0x34, 0x1400b3064\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x1400b3069\nmov     rcx, [rsi]                                                     ; +0x40, 0x1400b3070\nlea     rdx, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x43, 0x1400b3073\ncmp     edi, r14d                                                      ; +0x4a, 0x1400b307a\ncmovz   rdx, r12                                                       ; +0x4d, 0x1400b307d\ncall    ButtonSprite__updateBGImage                                    ; +0x51, 0x1400b3081\ninc     edi                                                            ; +0x56, 0x1400b3086\nlea     rsi, [rsi+8]                                                   ; +0x58, 0x1400b3088\nsub     rbp, 1                                                         ; +0x5c, 0x1400b308c\njnz     short loc_1400B3070                                            ; +0x60, 0x1400b3090\nmov     rcx, rbx                                                       ; +0x62, 0x1400b3092\ncall    AccountReviewPopup__updateTabControls                          ; +0x65, 0x1400b3095\nmov     rax, [rbx]                                                     ; +0x6a, 0x1400b309a\nxor     edx, edx                                                       ; +0x6d, 0x1400b309d\nmov     rcx, rbx                                                       ; +0x6f, 0x1400b309f\ncall    qword ptr [rax+438h]                                           ; +0x72, 0x1400b30a2\ntest    al, al                                                         ; +0x78, 0x1400b30a8\njz      short loc_1400B30B9                                            ; +0x7a, 0x1400b30aa\nmov     [rbx+2A8h], ebp                                                ; +0x7c, 0x1400b30ac\nmov     eax, 0FFFFFFFFh                                                ; +0x82, 0x1400b30b2\njmp     short loc_1400B30BB                                            ; +0x87, 0x1400b30b7\nxor     eax, eax                                                       ; +0x89, 0x1400b30b9\nmov     [rbx+2ACh], eax                                                ; +0x8b, 0x1400b30bb\nmov     rcx, rbx                                                       ; +0x91, 0x1400b30c1\nmov     rax, [rbx]                                                     ; +0x94, 0x1400b30c4\ncall    qword ptr [rax+440h]                                           ; +0x97, 0x1400b30c7\nmov     rcx, [rbx+2F8h]                                                ; +0x9d, 0x1400b30cd\ntest    rcx, rcx                                                       ; +0xa4, 0x1400b30d4\njz      short loc_1400B30ED                                            ; +0xa7, 0x1400b30d7\nmov     rax, [rcx]                                                     ; +0xa9, 0x1400b30d9\ncall    qword ptr [rax+200h]                                           ; +0xac, 0x1400b30dc\nmov     qword ptr [rbx+2F8h], 0                                        ; +0xb2, 0x1400b30e2\nmov     rcx, [rbx+2D0h]                                                ; +0xbd, 0x1400b30ed\ntest    rcx, rcx                                                       ; +0xc4, 0x1400b30f4\njz      short loc_1400B3104                                            ; +0xc7, 0x1400b30f7\nmov     rax, [rcx]                                                     ; +0xc9, 0x1400b30f9\nxor     edx, edx                                                       ; +0xcc, 0x1400b30fc\ncall    qword ptr [rax+150h]                                           ; +0xce, 0x1400b30fe\nmov     rcx, [rbx+2D8h]                                                ; +0xd4, 0x1400b3104\ntest    rcx, rcx                                                       ; +0xdb, 0x1400b310b\njz      short loc_1400B311B                                            ; +0xde, 0x1400b310e\nmov     rax, [rcx]                                                     ; +0xe0, 0x1400b3110\nxor     edx, edx                                                       ; +0xe3, 0x1400b3113\ncall    qword ptr [rax+150h]                                           ; +0xe5, 0x1400b3115\nmov     rcx, rbx                                                       ; +0xeb, 0x1400b311b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xee, 0x1400b311e\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xf3, 0x1400b3123\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xf8, 0x1400b3128\nadd     rsp, 20h                                                       ; +0xfd, 0x1400b312d\npop     r14                                                            ; +0x101, 0x1400b3131\npop     r12                                                            ; +0x103, 0x1400b3133\npop     rdi                                                            ; +0x105, 0x1400b3135\njmp     PagedListPopup__showLoading                                    ; +0x106, 0x1400b3136", "xrefs": ["AccountReviewPopup::init @ 0x1400b095e", "AccountReviewPopup::onTab @ 0x1400b3024", "<???> @ 0x140913574"], "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"}