{"type": "func", "start": 5369592832, "end": 5369592944, "name": "MessageThreadsPage::refreshUserFilterBtn", "pseudocode": "// \n// MessageThreadsPage::refreshUserFilterBtn from 0x1400d7c00 to 0x1400d7c70 (112 bytes)\n// \n// 5 xrefs:\n// > MessageThreadsPage::init @ 0x1400d50a0\n// > MessageThreadsPage::friendPicked @ 0x1400d7a27\n// > MessageThreadsPage::clearRecipients @ 0x1400d7b17\n// > MessageThreadsPage::friendPickerClosed @ 0x1400d7b51\n// > <???> @ 0x1409146fc\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:27 +0000\n// \n\nint __fastcall MessageThreadsPage::refreshUserFilterBtn(__int64 a1)\n{\n  cocos2d::CCArray *v2; // rcx\n  int result; // eax\n  cocos2d::CCString *v4; // rax\n  char *CString; // rdx\n\n  v2 = *(cocos2d::CCArray **)(a1 + 888);\n  if ( v2 )\n    result = cocos2d::CCArray::count(v2);\n  else\n    result = 0;\n  if ( *(_QWORD *)(a1 + 936) )\n  {\n    if ( result <= 0 )\n    {\n      CString = &byte_1406ED6E0;\n    }\n    else\n    {\n      v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)result);\n      CString = (char *)cocos2d::CCString::getCString(v4);\n    }\n    return (**(__int64 (__fastcall ***)(__int64, char *))(*(_QWORD *)(a1 + 936) + 360LL))(\n             *(_QWORD *)(a1 + 936) + 360LL,\n             CString);\n  }\n  return result;\n}", "assembly": "; \n; MessageThreadsPage::refreshUserFilterBtn from 0x1400d7c00 to 0x1400d7c70 (112 bytes)\n; \n; 5 xrefs:\n; > MessageThreadsPage::init @ 0x1400d50a0\n; > MessageThreadsPage::friendPicked @ 0x1400d7a27\n; > MessageThreadsPage::clearRecipients @ 0x1400d7b17\n; > MessageThreadsPage::friendPickerClosed @ 0x1400d7b51\n; > <???> @ 0x1409146fc\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:27 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400d7c00\nsub     rsp, 20h                                                       ; +0x2, 0x1400d7c02\nmov     rbx, rcx                                                       ; +0x6, 0x1400d7c06\nmov     rcx, [rcx+378h]                                                ; +0x9, 0x1400d7c09\ntest    rcx, rcx                                                       ; +0x10, 0x1400d7c10\njz      short loc_1400D7C1D                                            ; +0x13, 0x1400d7c13\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x15, 0x1400d7c15\njmp     short loc_1400D7C1F                                            ; +0x1b, 0x1400d7c1b\nxor     eax, eax                                                       ; +0x1d, 0x1400d7c1d\ncmp     qword ptr [rbx+3A8h], 0                                        ; +0x1f, 0x1400d7c1f\njz      short loc_1400D7C6A                                            ; +0x27, 0x1400d7c27\ntest    eax, eax                                                       ; +0x29, 0x1400d7c29\njle     short loc_1400D7C4A                                            ; +0x2b, 0x1400d7c2b\nmov     edx, eax                                                       ; +0x2d, 0x1400d7c2d\nlea     rcx, word_1406ED6F8                                            ; +0x2f, 0x1400d7c2f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x36, 0x1400d7c36\nmov     rcx, rax                                                       ; +0x3c, 0x1400d7c3c\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x3f, 0x1400d7c3f\nmov     rdx, rax                                                       ; +0x45, 0x1400d7c45\njmp     short loc_1400D7C51                                            ; +0x48, 0x1400d7c48\nlea     rdx, byte_1406ED6E0                                            ; +0x4a, 0x1400d7c4a\nmov     rcx, [rbx+3A8h]                                                ; +0x51, 0x1400d7c51\nadd     rcx, 168h                                                      ; +0x58, 0x1400d7c58\nmov     rax, [rcx]                                                     ; +0x5f, 0x1400d7c5f\nadd     rsp, 20h                                                       ; +0x62, 0x1400d7c62\npop     rbx                                                            ; +0x66, 0x1400d7c66\njmp     qword ptr [rax]                                                ; +0x67, 0x1400d7c67\nadd     rsp, 20h                                                       ; +0x6a, 0x1400d7c6a\npop     rbx                                                            ; +0x6e, 0x1400d7c6e\nretn                                                                   ; +0x6f, 0x1400d7c6f", "xrefs": ["MessageThreadsPage::init @ 0x1400d50a0", "MessageThreadsPage::friendPicked @ 0x1400d7a27", "MessageThreadsPage::clearRecipients @ 0x1400d7b17", "MessageThreadsPage::friendPickerClosed @ 0x1400d7b51", "<???> @ 0x1409146fc"], "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"}