{"type": "func", "start": 5370878784, "end": 5370879407, "name": "FRequestProfilePage::updateModeButtons", "pseudocode": "// \n// FRequestProfilePage::updateModeButtons from 0x140211b40 to 0x140211daf (623 bytes)\n// \n// 3 xrefs:\n// > FRequestProfilePage::init @ 0x14020fa9c\n// > FRequestProfilePage::onSelectMode @ 0x140211b12\n// > <???> @ 0x14091b53c\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:28:19 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall FRequestProfilePage::updateModeButtons(__int64 a1)\n{\n  __int64 v2; // rax\n  float v3; // xmm6_4\n  int v4; // ebp\n  int v5; // esi\n  __int64 **v6; // r15\n  __int64 *v7; // rbx\n  __int64 v8; // rdi\n  __int64 result; // rax\n  __int64 v10; // rdx\n  __int64 v11; // rbx\n  const char *v12; // rcx\n  __int64 *v13; // rbx\n  __int64 *v14; // rax\n  __int64 *v15; // r14\n  __int64 v16; // rdi\n  __int64 v17; // rbx\n  __int64 v18; // rax\n  __int64 v19; // rax\n  char v20[8]; // [rsp+30h] [rbp-88h] BYREF\n  char v21[8]; // [rsp+38h] [rbp-80h] BYREF\n  float v22; // [rsp+C8h] [rbp+10h] BYREF\n  float v23; // [rsp+CCh] [rbp+14h]\n  __int16 v24; // [rsp+D0h] [rbp+18h] BYREF\n  char v25; // [rsp+D2h] [rbp+1Ah]\n  void *v26; // [rsp+D8h] [rbp+20h]\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v2, &v22);\n  v3 = (float)((float)(v22 * 0.5) - 220.0) + 26.0;\n  if ( *(_BYTE *)(a1 + 704) )\n    v4 = 1;\n  else\n    v4 = *(_BYTE *)(a1 + 705) != 0 ? 2 : 0;\n  v5 = 0;\n  v6 = (__int64 **)(a1 + 856);\n  do\n  {\n    v7 = *v6;\n    if ( !*v6 )\n    {\n      if ( v5 == 1 )\n      {\n        v12 = \"threadBtn_sentOn_001.png\";\n      }\n      else\n      {\n        v12 = \"threadBtn_ignoreOn_001.png\";\n        if ( v5 != 2 )\n          v12 = \"threadBtn_inboxOn_001.png\";\n      }\n      v24 = -3856;\n      v25 = -16;\n      v13 = (__int64 *)sub_14006C4D0(v12, v5 == v4, (__int64)&v24);\n      *v6 = v13;\n      v26 = operator new(0x208u);\n      v14 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v26);\n      v15 = v14;\n      if ( v14 )\n      {\n        if ( CCMenuItemSpriteExtra::init(v14, v13, 0, a1, (__int64)FRequestProfilePage::onSelectMode) )\n        {\n          cocos2d::CCObject::autorelease((cocos2d::CCObject *)v15);\nLABEL_19:\n          (*(void (__fastcall **)(__int64 *, _QWORD))(*v15 + 64))(v15, (unsigned int)v5);\n          *((_DWORD *)v15 + 93) = 1067030938;\n          (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v15);\n          v16 = *v15;\n          v17 = *(_QWORD *)(a1 + 552);\n          cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v3, (float)((float)(v23 * 0.5) + 68.0) - (float)(37 * v5));\n          cocos2d::CCNode::convertToNodeSpace(v17, v21, v18);\n          result = (*(__int64 (__fastcall **)(__int64 *, __int64))(v16 + 184))(v15, v19);\n          goto LABEL_20;\n        }\n        (*(void (__fastcall **)(__int64 *, __int64))(*v15 + 8))(v15, 1);\n      }\n      v15 = nullptr;\n      goto LABEL_19;\n    }\n    v8 = (*(__int64 (__fastcall **)(__int64 *, __int64))(*v7 + 472))(*v6, 1);\n    result = (*(__int64 (__fastcall **)(__int64 *, __int64))(*v7 + 472))(v7, 2);\n    v11 = result;\n    if ( v8 )\n      result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)v8 + 336LL))(v8, v5 == v4);\n    if ( v11 )\n    {\n      LOBYTE(v10) = v5 != v4;\n      result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 336LL))(v11, v10);\n    }\nLABEL_20:\n    ++v5;\n    ++v6;\n  }\n  while ( v5 < 3 );\n  return result;\n}", "assembly": "; \n; FRequestProfilePage::updateModeButtons from 0x140211b40 to 0x140211daf (623 bytes)\n; \n; 3 xrefs:\n; > FRequestProfilePage::init @ 0x14020fa9c\n; > FRequestProfilePage::onSelectMode @ 0x140211b12\n; > <???> @ 0x14091b53c\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:28:19 +0000\n; \npush    rbx                                                            ; +0x0, 0x140211b40\npush    rbp                                                            ; +0x2, 0x140211b42\npush    rsi                                                            ; +0x3, 0x140211b43\npush    rdi                                                            ; +0x4, 0x140211b44\npush    r12                                                            ; +0x5, 0x140211b45\npush    r13                                                            ; +0x7, 0x140211b47\npush    r14                                                            ; +0x9, 0x140211b49\npush    r15                                                            ; +0xb, 0x140211b4b\nsub     rsp, 78h                                                       ; +0xd, 0x140211b4d\nmovaps  [rsp+0B8h+var_58], xmm6                                        ; +0x11, 0x140211b51\nmovaps  [rsp+0B8h+var_68], xmm7                                        ; +0x16, 0x140211b56\nmovaps  [rsp+0B8h+var_78], xmm8                                        ; +0x1b, 0x140211b5b\nmov     r13, rcx                                                       ; +0x21, 0x140211b61\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x24, 0x140211b64\nmov     rcx, rax                                                       ; +0x2a, 0x140211b6a\nlea     rdx, [rsp+0B8h+arg_8]                                          ; +0x2d, 0x140211b6d\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x35, 0x140211b75\nmovss   xmm6, [rsp+0B8h+arg_8]                                         ; +0x3b, 0x140211b7b\nmovss   xmm7, cs:dword_140834F20                                       ; +0x44, 0x140211b84\nmulss   xmm6, xmm7                                                     ; +0x4c, 0x140211b8c\nsubss   xmm6, cs:dword_14083591C                                       ; +0x50, 0x140211b90\naddss   xmm6, cs:dword_1408355F8                                       ; +0x58, 0x140211b98\ncmp     byte ptr [r13+2C0h], 0                                         ; +0x60, 0x140211ba0\njz      short loc_140211BB1                                            ; +0x68, 0x140211ba8\nmov     ebp, 1                                                         ; +0x6a, 0x140211baa\njmp     short loc_140211BC0                                            ; +0x6f, 0x140211baf\nmovzx   eax, byte ptr [r13+2C1h]                                       ; +0x71, 0x140211bb1\nneg     al                                                             ; +0x79, 0x140211bb9\nsbb     ebp, ebp                                                       ; +0x7b, 0x140211bbb\nand     ebp, 2                                                         ; +0x7d, 0x140211bbd\nxor     esi, esi                                                       ; +0x80, 0x140211bc0\nlea     r15, [r13+358h]                                                ; +0x82, 0x140211bc2\nlea     r12, aThreadbtnInbox; \"threadBtn_inboxOn_001.png\"              ; +0x89, 0x140211bc9\nlea     rdi, FRequestProfilePage__onSelectMode                         ; +0x90, 0x140211bd0\nmovss   xmm8, cs:dword_140835710                                       ; +0x97, 0x140211bd7\nmov     rbx, [r15]                                                     ; +0xa0, 0x140211be0\ntest    rbx, rbx                                                       ; +0xa3, 0x140211be3\njz      short loc_140211C4F                                            ; +0xa6, 0x140211be6\ncmp     esi, ebp                                                       ; +0xa8, 0x140211be8\nsetz    r14b                                                           ; +0xaa, 0x140211bea\nmov     rax, [rbx]                                                     ; +0xae, 0x140211bee\nmov     edx, 1                                                         ; +0xb1, 0x140211bf1\nmov     rcx, rbx                                                       ; +0xb6, 0x140211bf6\ncall    qword ptr [rax+1D8h]                                           ; +0xb9, 0x140211bf9\nmov     rdi, rax                                                       ; +0xbf, 0x140211bff\nmov     r8, [rbx]                                                      ; +0xc2, 0x140211c02\nmov     edx, 2                                                         ; +0xc5, 0x140211c05\nmov     rcx, rbx                                                       ; +0xca, 0x140211c0a\ncall    qword ptr [r8+1D8h]                                            ; +0xcd, 0x140211c0d\nmov     rbx, rax                                                       ; +0xd4, 0x140211c14\ntest    rdi, rdi                                                       ; +0xd7, 0x140211c17\njz      short loc_140211C30                                            ; +0xda, 0x140211c1a\nmov     rcx, [rdi]                                                     ; +0xdc, 0x140211c1c\nmov     r8, [rcx+150h]                                                 ; +0xdf, 0x140211c1f\nmovzx   edx, r14b                                                      ; +0xe6, 0x140211c26\nmov     rcx, rdi                                                       ; +0xea, 0x140211c2a\ncall    r8                                                             ; +0xed, 0x140211c2d\ntest    rbx, rbx                                                       ; +0xf0, 0x140211c30\njz      loc_140211D78                                                  ; +0xf3, 0x140211c33\ncmp     esi, ebp                                                       ; +0xf9, 0x140211c39\nsetnz   dl                                                             ; +0xfb, 0x140211c3b\nmov     rax, [rbx]                                                     ; +0xfe, 0x140211c3e\nmov     rcx, rbx                                                       ; +0x101, 0x140211c41\ncall    qword ptr [rax+150h]                                           ; +0x104, 0x140211c44\njmp     loc_140211D78                                                  ; +0x10a, 0x140211c4a\ncmp     esi, 1                                                         ; +0x10f, 0x140211c4f\njnz     short loc_140211C5D                                            ; +0x112, 0x140211c52\nlea     rcx, aThreadbtnSento; \"threadBtn_sentOn_001.png\"               ; +0x114, 0x140211c54\njmp     short loc_140211C6B                                            ; +0x11b, 0x140211c5b\nlea     rcx, aThreadbtnIgnor; \"threadBtn_ignoreOn_001.png\"             ; +0x11d, 0x140211c5d\ncmp     esi, 2                                                         ; +0x124, 0x140211c64\ncmovnz  rcx, r12                                                       ; +0x127, 0x140211c67\nmov     [rsp+0B8h+arg_0], 0F0F0h                                       ; +0x12b, 0x140211c6b\nmovzx   eax, [rsp+0B8h+arg_0]                                          ; +0x135, 0x140211c75\nmov     [rsp+0B8h+arg_10], ax                                          ; +0x13d, 0x140211c7d\nmov     [rsp+0B8h+arg_12], 0F0h                                        ; +0x145, 0x140211c85\ncmp     esi, ebp                                                       ; +0x14d, 0x140211c8d\nsetz    dl                                                             ; +0x14f, 0x140211c8f\nlea     r8, [rsp+0B8h+arg_10]                                          ; +0x152, 0x140211c92\ncall    sub_14006C4D0                                                  ; +0x15a, 0x140211c9a\nmov     rbx, rax                                                       ; +0x15f, 0x140211c9f\nmov     [r15], rax                                                     ; +0x162, 0x140211ca2\nmov     ecx, 208h; Size                                                ; +0x165, 0x140211ca5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16a, 0x140211caa\nmov     [rsp+0B8h+arg_18], rax                                         ; +0x16f, 0x140211caf\nmov     rcx, rax                                                       ; +0x177, 0x140211cb7\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x17a, 0x140211cba\nmov     r14, rax                                                       ; +0x17f, 0x140211cbf\ntest    rax, rax                                                       ; +0x182, 0x140211cc2\njz      short loc_140211CF7                                            ; +0x185, 0x140211cc5\nmov     [rsp+0B8h+var_98], rdi                                         ; +0x187, 0x140211cc7\nmov     r9, r13                                                        ; +0x18c, 0x140211ccc\nxor     r8d, r8d                                                       ; +0x18f, 0x140211ccf\nmov     rdx, rbx                                                       ; +0x192, 0x140211cd2\nmov     rcx, rax                                                       ; +0x195, 0x140211cd5\ncall    CCMenuItemSpriteExtra__init                                    ; +0x198, 0x140211cd8\nmov     rcx, r14                                                       ; +0x19d, 0x140211cdd\ntest    al, al                                                         ; +0x1a0, 0x140211ce0\njz      short loc_140211CEC                                            ; +0x1a2, 0x140211ce2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1a4, 0x140211ce4\njmp     short loc_140211CFA                                            ; +0x1aa, 0x140211cea\nmov     rax, [r14]                                                     ; +0x1ac, 0x140211cec\nmov     edx, 1                                                         ; +0x1af, 0x140211cef\ncall    qword ptr [rax+8]                                              ; +0x1b4, 0x140211cf4\nxor     r14d, r14d                                                     ; +0x1b7, 0x140211cf7\nmov     rax, [r14]                                                     ; +0x1ba, 0x140211cfa\nmov     edx, esi                                                       ; +0x1bd, 0x140211cfd\nmov     rcx, r14                                                       ; +0x1bf, 0x140211cff\ncall    qword ptr [rax+40h]                                            ; +0x1c2, 0x140211d02\nmov     dword ptr [r14+174h], 3F99999Ah                                ; +0x1c5, 0x140211d05\nmov     rcx, [r13+228h]                                                ; +0x1d0, 0x140211d10\nmov     rax, [rcx]                                                     ; +0x1d7, 0x140211d17\nmov     rdx, r14                                                       ; +0x1da, 0x140211d1a\ncall    qword ptr [rax+1D0h]                                           ; +0x1dd, 0x140211d1d\nmov     rdi, [r14]                                                     ; +0x1e3, 0x140211d23\nmov     rbx, [r13+228h]                                                ; +0x1e6, 0x140211d26\nmovss   xmm2, [rsp+0B8h+arg_C]                                         ; +0x1ed, 0x140211d2d\nmulss   xmm2, xmm7                                                     ; +0x1f6, 0x140211d36\naddss   xmm2, xmm8                                                     ; +0x1fa, 0x140211d3a\nimul    eax, esi, 25h ; '%'                                            ; +0x1ff, 0x140211d3f\nmovd    xmm0, eax                                                      ; +0x202, 0x140211d42\ncvtdq2ps xmm0, xmm0                                                    ; +0x206, 0x140211d46\nsubss   xmm2, xmm0                                                     ; +0x209, 0x140211d49\nmovaps  xmm1, xmm6                                                     ; +0x20d, 0x140211d4d\nlea     rcx, [rsp+0B8h+var_88]                                         ; +0x210, 0x140211d50\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x215, 0x140211d55\nmov     r8, rax                                                        ; +0x21b, 0x140211d5b\nlea     rdx, [rsp+0B8h+var_80]                                         ; +0x21e, 0x140211d5e\nmov     rcx, rbx                                                       ; +0x223, 0x140211d63\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x226, 0x140211d66\nmov     rdx, rax                                                       ; +0x22c, 0x140211d6c\nmov     rcx, r14                                                       ; +0x22f, 0x140211d6f\ncall    qword ptr [rdi+0B8h]                                           ; +0x232, 0x140211d72\ninc     esi                                                            ; +0x238, 0x140211d78\nadd     r15, 8                                                         ; +0x23a, 0x140211d7a\ncmp     esi, 3                                                         ; +0x23e, 0x140211d7e\nlea     rdi, FRequestProfilePage__onSelectMode                         ; +0x241, 0x140211d81\njl      loc_140211BE0                                                  ; +0x248, 0x140211d88\nmovaps  xmm6, [rsp+0B8h+var_58]                                        ; +0x24e, 0x140211d8e\nmovaps  xmm7, [rsp+0B8h+var_68]                                        ; +0x253, 0x140211d93\nmovaps  xmm8, [rsp+0B8h+var_78]                                        ; +0x258, 0x140211d98\nadd     rsp, 78h                                                       ; +0x25e, 0x140211d9e\npop     r15                                                            ; +0x262, 0x140211da2\npop     r14                                                            ; +0x264, 0x140211da4\npop     r13                                                            ; +0x266, 0x140211da6\npop     r12                                                            ; +0x268, 0x140211da8\npop     rdi                                                            ; +0x26a, 0x140211daa\npop     rsi                                                            ; +0x26b, 0x140211dab\npop     rbp                                                            ; +0x26c, 0x140211dac\npop     rbx                                                            ; +0x26d, 0x140211dad\nretn                                                                   ; +0x26e, 0x140211dae", "xrefs": ["FRequestProfilePage::init @ 0x14020fa9c", "FRequestProfilePage::onSelectMode @ 0x140211b12", "<???> @ 0x14091b53c"], "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"}