{"type": "func", "start": 4302527344, "end": 4302527540, "name": "FriendsProfilePage::onGlobalSearch", "pseudocode": "// \n// FriendsProfilePage::onGlobalSearch from 0x100735b70 to 0x100735c34 (196 bytes)\n// \n// 1 xrefs:\n// > FriendsProfilePage::init @ 0x100735424\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:36:24 +0000\n// \n\nvoid __fastcall FriendsProfilePage::onGlobalSearch(\n        __int64 a1,\n        __int64 a2,\n        std::string::size_type size,\n        std::string::pointer data)\n{\n  __int64 v4; // rsi\n  std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v5; // al\n  unsigned __int8 v6; // si\n  bool v7; // zf\n  std::string::value_type *v8; // rax\n  std::string::size_type v9; // rcx\n  __int64 v10; // rdx\n  __int64 v11; // rax\n  std::string v12; // [rsp+0h] [rbp-20h] BYREF\n\n  v4 = *(_QWORD *)(a1 + 912);\n  if ( v4 )\n  {\n    CCTextInputNode::getString(&v12, v4);\n    v5 = v12.__r_.__value_.__s.0;\n    data = v12.__r_.__value_.__l.__data_;\n    size = v12.__r_.__value_.__l.__size_;\n  }\n  else\n  {\n    *(_WORD *)&v12.__r_.__value_.__l.0 = 0;\n    v5 = 0;\n  }\n  v6 = *(unsigned __int8 *)&v5 >> 1;\n  v7 = (*(_BYTE *)&v5 & 1) == 0;\n  v8 = v12.__r_.__value_.__s.__data_;\n  if ( !v7 )\n    v8 = data;\n  v9 = v6;\n  if ( !v7 )\n    v9 = size;\n  if ( v9 )\n  {\n    v10 = 0;\n    while ( v8[v10] == 32 )\n    {\n      if ( v9 == ++v10 )\n        goto LABEL_16;\n    }\n    if ( v10 != -1 )\n    {\n      v11 = GameLevelManager::sharedState();\n      if ( sub_100578FA0(v11, &v12) )\n      {\n        *(_QWORD *)(GameLevelManager::sharedState() + 1368) = a1 + 808;\n        sub_10095CEF0(a1);\n        sub_10095CF70(a1);\n      }\n    }\n  }\nLABEL_16:\n  if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v12.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; FriendsProfilePage::onGlobalSearch from 0x100735b70 to 0x100735c34 (196 bytes)\n; \n; 1 xrefs:\n; > FriendsProfilePage::init @ 0x100735424\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:36:24 +0000\n; \npush    rbp                                                            ; +0x0, 0x100735b70\nmov     rbp, rsp                                                       ; +0x1, 0x100735b71\npush    rbx                                                            ; +0x4, 0x100735b74\nsub     rsp, 18h                                                       ; +0x5, 0x100735b75\nmov     rbx, rdi                                                       ; +0x9, 0x100735b79\nmov     rsi, [rdi+390h]                                                ; +0xc, 0x100735b7c\ntest    rsi, rsi                                                       ; +0x13, 0x100735b83\njz      short loc_100735B9F                                            ; +0x16, 0x100735b86\nlea     rdi, [rbp+var_20]                                              ; +0x18, 0x100735b88\ncall    CCTextInputNode__getString                                     ; +0x1c, 0x100735b8c\nmovzx   eax, byte ptr [rbp+var_20]                                     ; +0x21, 0x100735b91\nmov     rcx, [rbp+__p]                                                 ; +0x25, 0x100735b95\nmov     rdx, [rbp+var_18]                                              ; +0x29, 0x100735b99\njmp     short loc_100735BA7                                            ; +0x2d, 0x100735b9d\nmov     [rbp+var_20], 0                                                ; +0x2f, 0x100735b9f\nxor     eax, eax                                                       ; +0x35, 0x100735ba5\nmov     esi, eax                                                       ; +0x37, 0x100735ba7\nshr     sil, 1                                                         ; +0x39, 0x100735ba9\ntest    al, 1                                                          ; +0x3c, 0x100735bac\nlea     rax, [rbp+var_20+1]                                            ; +0x3e, 0x100735bae\ncmovnz  rax, rcx                                                       ; +0x42, 0x100735bb2\nmovzx   ecx, sil                                                       ; +0x46, 0x100735bb6\ncmovnz  rcx, rdx                                                       ; +0x4a, 0x100735bba\ntest    rcx, rcx                                                       ; +0x4e, 0x100735bbe\njz      short loc_100735C1E                                            ; +0x51, 0x100735bc1\nxor     edx, edx                                                       ; +0x53, 0x100735bc3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x55, 0x100735bc5\ncmp     byte ptr [rax+rdx], 20h ; ' '                                  ; +0x60, 0x100735bd0\njnz     short loc_100735BE0                                            ; +0x64, 0x100735bd4\ninc     rdx                                                            ; +0x66, 0x100735bd6\ncmp     rcx, rdx                                                       ; +0x69, 0x100735bd9\njnz     short loc_100735BD0                                            ; +0x6c, 0x100735bdc\njmp     short loc_100735C1E                                            ; +0x6e, 0x100735bde\ncmp     rdx, 0FFFFFFFFFFFFFFFFh                                        ; +0x70, 0x100735be0\njz      short loc_100735C1E                                            ; +0x74, 0x100735be4\ncall    GameLevelManager__sharedState                                  ; +0x76, 0x100735be6\nlea     rsi, [rbp+var_20]                                              ; +0x7b, 0x100735beb\nmov     rdi, rax                                                       ; +0x7f, 0x100735bef\ncall    sub_100578FA0                                                  ; +0x82, 0x100735bf2\ntest    al, al                                                         ; +0x87, 0x100735bf7\njz      short loc_100735C1E                                            ; +0x89, 0x100735bf9\ncall    GameLevelManager__sharedState                                  ; +0x8b, 0x100735bfb\nlea     rcx, [rbx+328h]                                                ; +0x90, 0x100735c00\nmov     [rax+558h], rcx                                                ; +0x97, 0x100735c07\nmov     rdi, rbx                                                       ; +0x9e, 0x100735c0e\ncall    sub_10095CEF0                                                  ; +0xa1, 0x100735c11\nmov     rdi, rbx                                                       ; +0xa6, 0x100735c16\ncall    sub_10095CF70                                                  ; +0xa9, 0x100735c19\ntest    byte ptr [rbp+var_20], 1                                       ; +0xae, 0x100735c1e\njz      short loc_100735C2D                                            ; +0xb2, 0x100735c22\nmov     rdi, [rbp+__p]; __p                                            ; +0xb4, 0x100735c24\ncall    __ZdlPv; operator delete(void *)                               ; +0xb8, 0x100735c28\nadd     rsp, 18h                                                       ; +0xbd, 0x100735c2d\npop     rbx                                                            ; +0xc1, 0x100735c31\npop     rbp                                                            ; +0xc2, 0x100735c32\nretn                                                                   ; +0xc3, 0x100735c33", "xrefs": ["FriendsProfilePage::init @ 0x100735424"], "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"}