{"type": "func", "start": 4300695024, "end": 4300695575, "name": "GameLevelManager::getFollowing", "pseudocode": "// \n// GameLevelManager::getFollowing from 0x1005765f0 to 0x100576817 (551 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::syncFollowListIfNeeded @ 0x100576f7d\n// > GameLevelManager::syncFollowListIfNeeded @ 0x100576fad\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:32:17 +0000\n// \n\nbool __fastcall GameLevelManager::getFollowing(__int64 a1)\n{\n  bool isDLActive; // al\n  __int64 v2; // rax\n  __int64 v3; // rax\n  const std::string::value_type *CString; // rax\n  const char *data; // r14\n  size_t v6; // rax\n  size_t v7; // r15\n  char *v8; // r12\n  size_t v9; // r13\n  char v11; // [rsp+0h] [rbp-A0h]\n  std::string v12; // [rsp+10h] [rbp-90h] BYREF\n  __int128 v13; // [rsp+28h] [rbp-78h] BYREF\n  void *__p; // [rsp+38h] [rbp-68h]\n  std::string v15; // [rsp+40h] [rbp-60h] BYREF\n  _QWORD __dst[2]; // [rsp+58h] [rbp-48h] BYREF\n  void *v17; // [rsp+68h] [rbp-38h]\n  bool v18; // [rsp+77h] [rbp-29h]\n\n  isDLActive = GameLevelManager::isDLActive(a1, \"following\");\n  if ( !isDLActive )\n  {\n    v18 = 0;\n    GameLevelManager::addDLToActive(a1, \"following\");\n    GameLevelManager::getBasePostString(&v15);\n    v2 = sub_10088E820(\"%c%s%s%c%c%s\", (char)\"7\");\n    cocos2d::CCString::getCString(v2);\n    v3 = sub_10088E820(\"&ack=1&secret=%s\", v11);\n    CString = (const std::string::value_type *)cocos2d::CCString::getCString(v3);\n    std::string::append(&v15, CString);\n    v12.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u);\n    v12.__r_.__value_.__r.__words[0] = 57;\n    v12.__r_.__value_.__l.__size_ = 53;\n    strcpy(v12.__r_.__value_.__l.__data_, \"https://www.boomlings.com/database/getGJFollowing.php\");\n    if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 )\n      data = v15.__r_.__value_.__l.__data_;\n    else\n      data = v15.__r_.__value_.__s.__data_;\n    v6 = strlen(data);\n    if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )\n      sub_100003630();\n    v7 = v6;\n    if ( v6 >= 0x17 )\n    {\n      v9 = 26;\n      if ( (v6 | 7) != 0x17 )\n        v9 = (v6 | 7) + 1;\n      v8 = (char *)operator new(v9);\n      v17 = v8;\n      __dst[0] = v9 | 1;\n      __dst[1] = v7;\n    }\n    else\n    {\n      LOBYTE(__dst[0]) = 2 * v6;\n      v8 = (char *)__dst + 1;\n      if ( !v6 )\n      {\nLABEL_13:\n        v8[v7] = 0;\n        LOBYTE(v13) = 18;\n        strcpy((char *)&v13 + 1, \"following\");\n        GameLevelManager::ProcessHttpRequest(a1, &v12, (__int64)__dst, &v13, 0x72u);\n        if ( (v13 & 1) != 0 )\n        {\n          operator delete(__p);\n          if ( (__dst[0] & 1) == 0 )\n          {\nLABEL_15:\n            if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) == 0 )\n              goto LABEL_16;\n            goto LABEL_22;\n          }\n        }\n        else if ( (__dst[0] & 1) == 0 )\n        {\n          goto LABEL_15;\n        }\n        operator delete(v17);\n        if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) == 0 )\n        {\nLABEL_16:\n          if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) == 0 )\n          {\nLABEL_18:\n            isDLActive = v18;\n            return !isDLActive;\n          }\nLABEL_17:\n          operator delete(v15.__r_.__value_.__l.__data_);\n          goto LABEL_18;\n        }\nLABEL_22:\n        operator delete(v12.__r_.__value_.__l.__data_);\n        if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) == 0 )\n          goto LABEL_18;\n        goto LABEL_17;\n      }\n    }\n    memmove(v8, data, v7);\n    goto LABEL_13;\n  }\n  return !isDLActive;\n}", "assembly": "; \n; GameLevelManager::getFollowing from 0x1005765f0 to 0x100576817 (551 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::syncFollowListIfNeeded @ 0x100576f7d\n; > GameLevelManager::syncFollowListIfNeeded @ 0x100576fad\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:32:17 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005765f0\nmov     rbp, rsp                                                       ; +0x1, 0x1005765f1\npush    r15                                                            ; +0x4, 0x1005765f4\npush    r14                                                            ; +0x6, 0x1005765f6\npush    r13                                                            ; +0x8, 0x1005765f8\npush    r12                                                            ; +0xa, 0x1005765fa\npush    rbx                                                            ; +0xc, 0x1005765fc\nsub     rsp, 78h                                                       ; +0xd, 0x1005765fd\nmov     rbx, rdi                                                       ; +0x11, 0x100576601\nlea     rsi, aFollowing_0; \"following\"                                 ; +0x14, 0x100576604\ncall    GameLevelManager__isDLActive                                   ; +0x1b, 0x10057660b\ntest    al, al                                                         ; +0x20, 0x100576610\njnz     loc_1005767CF                                                  ; +0x22, 0x100576612\nmov     [rbp+var_29], al                                               ; +0x28, 0x100576618\nlea     rsi, aFollowing_0; \"following\"                                 ; +0x2b, 0x10057661b\nmov     rdi, rbx                                                       ; +0x32, 0x100576622\ncall    GameLevelManager__addDLToActive                                ; +0x35, 0x100576625\nlea     rdi, [rbp+var_60]; this                                        ; +0x3a, 0x10057662a\ncall    GameLevelManager__getBasePostString                            ; +0x3e, 0x10057662e\nlea     rax, a7; \"7\"                                                   ; +0x43, 0x100576633\nmov     qword ptr [rsp+0A0h+var_A0], rax; char                         ; +0x4a, 0x10057663a\nlea     rdi, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0x4e, 0x10057663e\nlea     rdx, aMfd; \"mfd\"                                               ; +0x55, 0x100576645\nlea     rcx, a2893; \"2893\"                                             ; +0x5c, 0x10057664c\nmov     esi, 57h ; 'W'                                                 ; +0x63, 0x100576653\nmov     r8d, 67h ; 'g'                                                 ; +0x68, 0x100576658\nmov     r9d, 62h ; 'b'                                                 ; +0x6e, 0x10057665e\nxor     eax, eax                                                       ; +0x74, 0x100576664\ncall    sub_10088E820                                                  ; +0x76, 0x100576666\nmov     rdi, rax                                                       ; +0x7b, 0x10057666b\ncall    cocos2d__CCString__getCString                                  ; +0x7e, 0x10057666e\nlea     rdi, aAck1SecretS; \"&ack=1&secret=%s\"                          ; +0x83, 0x100576673\nmov     rsi, rax                                                       ; +0x8a, 0x10057667a\nxor     eax, eax                                                       ; +0x8d, 0x10057667d\ncall    sub_10088E820                                                  ; +0x8f, 0x10057667f\nmov     rdi, rax                                                       ; +0x94, 0x100576684\ncall    cocos2d__CCString__getCString                                  ; +0x97, 0x100576687\nlea     rdi, [rbp+var_60]; this                                        ; +0x9c, 0x10057668c\nmov     rsi, rax; __s                                                  ; +0xa0, 0x100576690\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xa3, 0x100576693\nmov     edi, 38h ; '8'; __sz                                           ; +0xa8, 0x100576698\ncall    __Znwm; operator new(ulong)                                    ; +0xad, 0x10057669d\nmov     [rbp+var_80], rax                                              ; +0xb2, 0x1005766a2\nmov     [rbp+var_90], 39h ; '9'                                        ; +0xb6, 0x1005766a6\nmov     [rbp+var_88], 35h ; '5'                                        ; +0xc1, 0x1005766b1\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_90+20h; \"se/getGJFollowing.php\" ; +0xcc, 0x1005766bc\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xd3, 0x1005766c3\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_90+10h; \"lings.com/database/getGJFollowing.php\" ; +0xd7, 0x1005766c7\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0xde, 0x1005766ce\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_90; \"https://www.boomlings.com/database/getG\"... ; +0xe2, 0x1005766d2\nmovups  xmmword ptr [rax], xmm0                                        ; +0xe9, 0x1005766d9\nmov     rcx, 7068702E676E6977h                                         ; +0xec, 0x1005766dc\nmov     [rax+2Dh], rcx                                                 ; +0xf6, 0x1005766e6\nmov     byte ptr [rax+35h], 0                                          ; +0xfa, 0x1005766ea\ntest    byte ptr [rbp+var_60.__r_.__value_], 1                         ; +0xfe, 0x1005766ee\njz      short loc_1005766FA                                            ; +0x102, 0x1005766f2\nmov     r14, qword ptr [rbp+var_60.__r_.__value_+10h]                  ; +0x104, 0x1005766f4\njmp     short loc_1005766FE                                            ; +0x108, 0x1005766f8\nlea     r14, [rbp+var_60.__r_.__value_+1]                              ; +0x10a, 0x1005766fa\nmov     rdi, r14; __s                                                  ; +0x10e, 0x1005766fe\ncall    _strlen                                                        ; +0x111, 0x100576701\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x116, 0x100576706\njnb     loc_100576812                                                  ; +0x11a, 0x10057670a\nmov     r15, rax                                                       ; +0x120, 0x100576710\ncmp     rax, 17h                                                       ; +0x123, 0x100576713\njnb     short loc_10057672B                                            ; +0x127, 0x100576717\nlea     eax, [r15+r15]                                                 ; +0x129, 0x100576719\nmov     byte ptr [rbp+__dst], al                                       ; +0x12d, 0x10057671d\nlea     r12, [rbp+__dst+1]                                             ; +0x130, 0x100576720\ntest    r15, r15                                                       ; +0x134, 0x100576724\njnz     short loc_10057675F                                            ; +0x137, 0x100576727\njmp     short loc_10057676D                                            ; +0x139, 0x100576729\nmov     rax, r15                                                       ; +0x13b, 0x10057672b\nor      rax, 7                                                         ; +0x13e, 0x10057672e\nlea     rcx, [rax+1]                                                   ; +0x142, 0x100576732\ncmp     rax, 17h                                                       ; +0x146, 0x100576736\nmov     r13d, 1Ah                                                      ; +0x14a, 0x10057673a\ncmovnz  r13, rcx                                                       ; +0x150, 0x100576740\nmov     rdi, r13; __sz                                                 ; +0x154, 0x100576744\ncall    __Znwm; operator new(ulong)                                    ; +0x157, 0x100576747\nmov     r12, rax                                                       ; +0x15c, 0x10057674c\nmov     [rbp+var_38], rax                                              ; +0x15f, 0x10057674f\nor      r13, 1                                                         ; +0x163, 0x100576753\nmov     [rbp+__dst], r13                                               ; +0x167, 0x100576757\nmov     [rbp+var_40], r15                                              ; +0x16b, 0x10057675b\nmov     rdi, r12; __dst                                                ; +0x16f, 0x10057675f\nmov     rsi, r14; __src                                                ; +0x172, 0x100576762\nmov     rdx, r15; __len                                                ; +0x175, 0x100576765\ncall    _memmove                                                       ; +0x178, 0x100576768\nmov     byte ptr [r12+r15], 0                                          ; +0x17d, 0x10057676d\nmov     [rbp+var_78], 12h                                              ; +0x182, 0x100576772\nmov     rax, 6E69776F6C6C6F66h                                         ; +0x186, 0x100576776\nmov     [rbp+var_77], rax                                              ; +0x190, 0x100576780\nmov     word ptr [rbp-6Fh], 67h ; 'g'                                  ; +0x194, 0x100576784\nlea     rsi, [rbp+var_90]                                              ; +0x19a, 0x10057678a\nlea     rdx, [rbp+__dst]                                               ; +0x1a1, 0x100576791\nlea     rcx, [rbp+var_78]                                              ; +0x1a5, 0x100576795\nmov     rdi, rbx                                                       ; +0x1a9, 0x100576799\nmov     r8d, 72h ; 'r'                                                 ; +0x1ac, 0x10057679c\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x1b2, 0x1005767a2\ntest    [rbp+var_78], 1                                                ; +0x1b7, 0x1005767a7\njnz     short loc_1005767E0                                            ; +0x1bb, 0x1005767ab\ntest    byte ptr [rbp+__dst], 1                                        ; +0x1bd, 0x1005767ad\njnz     short loc_1005767EF                                            ; +0x1c1, 0x1005767b1\ntest    byte ptr [rbp+var_90], 1                                       ; +0x1c3, 0x1005767b3\njnz     short loc_100576801                                            ; +0x1ca, 0x1005767ba\ntest    byte ptr [rbp+var_60.__r_.__value_], 1                         ; +0x1cc, 0x1005767bc\njz      short loc_1005767CB                                            ; +0x1d0, 0x1005767c0\nmov     rdi, qword ptr [rbp+var_60.__r_.__value_+10h]; __p             ; +0x1d2, 0x1005767c2\ncall    __ZdlPv; operator delete(void *)                               ; +0x1d6, 0x1005767c6\nmovzx   eax, [rbp+var_29]                                              ; +0x1db, 0x1005767cb\nxor     al, 1                                                          ; +0x1df, 0x1005767cf\nadd     rsp, 78h                                                       ; +0x1e1, 0x1005767d1\npop     rbx                                                            ; +0x1e5, 0x1005767d5\npop     r12                                                            ; +0x1e6, 0x1005767d6\npop     r13                                                            ; +0x1e8, 0x1005767d8\npop     r14                                                            ; +0x1ea, 0x1005767da\npop     r15                                                            ; +0x1ec, 0x1005767dc\npop     rbp                                                            ; +0x1ee, 0x1005767de\nretn                                                                   ; +0x1ef, 0x1005767df\nmov     rdi, [rbp+__p]; __p                                            ; +0x1f0, 0x1005767e0\ncall    __ZdlPv; operator delete(void *)                               ; +0x1f4, 0x1005767e4\ntest    byte ptr [rbp+__dst], 1                                        ; +0x1f9, 0x1005767e9\njz      short loc_1005767B3                                            ; +0x1fd, 0x1005767ed\nmov     rdi, [rbp+var_38]; __p                                         ; +0x1ff, 0x1005767ef\ncall    __ZdlPv; operator delete(void *)                               ; +0x203, 0x1005767f3\ntest    byte ptr [rbp+var_90], 1                                       ; +0x208, 0x1005767f8\njz      short loc_1005767BC                                            ; +0x20f, 0x1005767ff\nmov     rdi, [rbp+var_80]; __p                                         ; +0x211, 0x100576801\ncall    __ZdlPv; operator delete(void *)                               ; +0x215, 0x100576805\ntest    byte ptr [rbp+var_60.__r_.__value_], 1                         ; +0x21a, 0x10057680a\njnz     short loc_1005767C2                                            ; +0x21e, 0x10057680e\njmp     short loc_1005767CB                                            ; +0x220, 0x100576810\ncall    sub_100003630                                                  ; +0x222, 0x100576812", "xrefs": ["GameLevelManager::syncFollowListIfNeeded @ 0x100576f7d", "GameLevelManager::syncFollowListIfNeeded @ 0x100576fad"], "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"}