{"type": "func", "start": 4300695712, "end": 4300696469, "name": "GameLevelManager::syncFollowing", "pseudocode": "// \n// GameLevelManager::syncFollowing from 0x1005768a0 to 0x100576b95 (757 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::syncFollowListIfNeeded @ 0x100576fa6\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::syncFollowing(__int64 a1)\n{\n  bool isDLActive; // al\n  __int64 v2; // r14\n  unsigned int i; // r15d\n  __int64 v4; // rax\n  const std::string::value_type *CString; // rax\n  __int64 v6; // rax\n  __int64 v7; // rax\n  const std::string::value_type *v8; // rax\n  const char *data; // r14\n  size_t v10; // rax\n  size_t v11; // r15\n  char *v12; // r12\n  size_t v13; // r13\n  char v15; // [rsp+0h] [rbp-C0h]\n  std::string v16; // [rsp+10h] [rbp-B0h] BYREF\n  __int128 v17; // [rsp+28h] [rbp-98h] BYREF\n  void *__p; // [rsp+38h] [rbp-88h]\n  std::string v19; // [rsp+40h] [rbp-80h] BYREF\n  _QWORD __dst[2]; // [rsp+58h] [rbp-68h] BYREF\n  void *v21; // [rsp+68h] [rbp-58h]\n  std::string v22; // [rsp+70h] [rbp-50h] BYREF\n  bool v23; // [rsp+97h] [rbp-29h]\n\n  isDLActive = GameLevelManager::isDLActive(a1, \"following\");\n  if ( !isDLActive )\n  {\n    v23 = 0;\n    GameLevelManager::addDLToActive(a1, \"following\");\n    memset(&v22, 0, sizeof(v22));\n    v2 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 776));\n    if ( v2 )\n    {\n      for ( i = 0; ; ++i )\n      {\n        if ( i >= (unsigned int)sub_1007FEF90(v2) )\n          goto LABEL_11;\n        if ( (*(_BYTE *)&v22.__r_.__value_.__s.0 & 1) == 0 )\n          break;\n        if ( v22.__r_.__value_.__l.__size_ )\n          goto LABEL_9;\nLABEL_10:\n        v4 = sub_1007FEFE0(v2, i);\n        CString = (const std::string::value_type *)cocos2d::CCString::getCString(v4);\n        std::string::append(&v22, CString);\n      }\n      if ( !(*(_BYTE *)&v22.__r_.__value_.__l.0 >> 1) )\n        goto LABEL_10;\nLABEL_9:\n      std::string::append(&v22, \",\");\n      goto LABEL_10;\n    }\nLABEL_11:\n    GameLevelManager::getBasePostString(&v19);\n    v6 = sub_10088E820(\"%c%s%s%c%c%s\", (char)\"7\");\n    cocos2d::CCString::getCString(v6);\n    v7 = sub_10088E820(\"&follows=%s&ack=1&secret=%s\", v15);\n    v8 = (const std::string::value_type *)cocos2d::CCString::getCString(v7);\n    std::string::append(&v19, v8);\n    v16.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u);\n    v16.__r_.__value_.__r.__words[0] = 57;\n    v16.__r_.__value_.__l.__size_ = 54;\n    strcpy(v16.__r_.__value_.__l.__data_, \"https://www.boomlings.com/database/syncGJFollowing.php\");\n    if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 )\n      data = v19.__r_.__value_.__l.__data_;\n    else\n      data = v19.__r_.__value_.__s.__data_;\n    v10 = strlen(data);\n    if ( v10 >= 0xFFFFFFFFFFFFFFF8LL )\n      sub_100003630();\n    v11 = v10;\n    if ( v10 >= 0x17 )\n    {\n      v13 = 26;\n      if ( (v10 | 7) != 0x17 )\n        v13 = (v10 | 7) + 1;\n      v12 = (char *)operator new(v13);\n      v21 = v12;\n      __dst[0] = v13 | 1;\n      __dst[1] = v11;\n    }\n    else\n    {\n      LOBYTE(__dst[0]) = 2 * v10;\n      v12 = (char *)__dst + 1;\n      if ( !v10 )\n      {\nLABEL_22:\n        v12[v11] = 0;\n        LOBYTE(v17) = 18;\n        strcpy((char *)&v17 + 1, \"following\");\n        GameLevelManager::ProcessHttpRequest(a1, &v16, (__int64)__dst, &v17, 0x73u);\n        if ( (v17 & 1) != 0 )\n        {\n          operator delete(__p);\n          if ( (__dst[0] & 1) == 0 )\n          {\nLABEL_24:\n            if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) == 0 )\n              goto LABEL_25;\n            goto LABEL_32;\n          }\n        }\n        else if ( (__dst[0] & 1) == 0 )\n        {\n          goto LABEL_24;\n        }\n        operator delete(v21);\n        if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) == 0 )\n        {\nLABEL_25:\n          if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 )\n            goto LABEL_26;\n          goto LABEL_33;\n        }\nLABEL_32:\n        operator delete(v16.__r_.__value_.__l.__data_);\n        if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 )\n        {\nLABEL_26:\n          if ( (*(_BYTE *)&v22.__r_.__value_.__s.0 & 1) == 0 )\n          {\nLABEL_28:\n            isDLActive = v23;\n            return !isDLActive;\n          }\nLABEL_27:\n          operator delete(v22.__r_.__value_.__l.__data_);\n          goto LABEL_28;\n        }\nLABEL_33:\n        operator delete(v19.__r_.__value_.__l.__data_);\n        if ( (*(_BYTE *)&v22.__r_.__value_.__s.0 & 1) == 0 )\n          goto LABEL_28;\n        goto LABEL_27;\n      }\n    }\n    memmove(v12, data, v11);\n    goto LABEL_22;\n  }\n  return !isDLActive;\n}", "assembly": "; \n; GameLevelManager::syncFollowing from 0x1005768a0 to 0x100576b95 (757 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::syncFollowListIfNeeded @ 0x100576fa6\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, 0x1005768a0\nmov     rbp, rsp                                                       ; +0x1, 0x1005768a1\npush    r15                                                            ; +0x4, 0x1005768a4\npush    r14                                                            ; +0x6, 0x1005768a6\npush    r13                                                            ; +0x8, 0x1005768a8\npush    r12                                                            ; +0xa, 0x1005768aa\npush    rbx                                                            ; +0xc, 0x1005768ac\nsub     rsp, 98h                                                       ; +0xd, 0x1005768ad\nmov     rbx, rdi                                                       ; +0x14, 0x1005768b4\nlea     rsi, aFollowing_0; \"following\"                                 ; +0x17, 0x1005768b7\ncall    GameLevelManager__isDLActive                                   ; +0x1e, 0x1005768be\ntest    al, al                                                         ; +0x23, 0x1005768c3\njnz     loc_100576B35                                                  ; +0x25, 0x1005768c5\nmov     [rbp+var_29], al                                               ; +0x2b, 0x1005768cb\nlea     rsi, aFollowing_0; \"following\"                                 ; +0x2e, 0x1005768ce\nmov     rdi, rbx                                                       ; +0x35, 0x1005768d5\ncall    GameLevelManager__addDLToActive                                ; +0x38, 0x1005768d8\nxorps   xmm0, xmm0                                                     ; +0x3d, 0x1005768dd\nmovaps  xmmword ptr [rbp+var_50.__r_.__value_], xmm0                   ; +0x40, 0x1005768e0\nmov     qword ptr [rbp+var_50.__r_.__value_+10h], 0                    ; +0x44, 0x1005768e4\nmov     rdi, [rbx+308h]                                                ; +0x4c, 0x1005768ec\ncall    cocos2d__CCDictionary__allKeys                                 ; +0x53, 0x1005768f3\nmov     r14, rax                                                       ; +0x58, 0x1005768f8\ntest    rax, rax                                                       ; +0x5b, 0x1005768fb\njz      short loc_100576965                                            ; +0x5e, 0x1005768fe\nxor     r15d, r15d                                                     ; +0x60, 0x100576900\nlea     r12, [rbp+var_50]                                              ; +0x63, 0x100576903\nlea     r13, asc_100A41842; \",\"                                        ; +0x67, 0x100576907\nxchg    ax, ax                                                         ; +0x6e, 0x10057690e\nmov     rdi, r14                                                       ; +0x70, 0x100576910\ncall    sub_1007FEF90                                                  ; +0x73, 0x100576913\ncmp     r15d, eax                                                      ; +0x78, 0x100576918\njnb     short loc_100576965                                            ; +0x7b, 0x10057691b\nmovzx   eax, byte ptr [rbp+var_50.__r_.__value_]                       ; +0x7d, 0x10057691d\ntest    al, 1                                                          ; +0x81, 0x100576921\njz      short loc_100576930                                            ; +0x83, 0x100576923\nmov     rax, qword ptr [rbp+var_50.__r_.__value_+8]                    ; +0x85, 0x100576925\ntest    rax, rax                                                       ; +0x89, 0x100576929\njnz     short loc_100576937                                            ; +0x8c, 0x10057692c\njmp     short loc_100576942                                            ; +0x8e, 0x10057692e\nshr     eax, 1                                                         ; +0x90, 0x100576930\ntest    rax, rax                                                       ; +0x92, 0x100576932\njz      short loc_100576942                                            ; +0x95, 0x100576935\nmov     rdi, r12; this                                                 ; +0x97, 0x100576937\nmov     rsi, r13; __s                                                  ; +0x9a, 0x10057693a\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x9d, 0x10057693d\nmov     rdi, r14                                                       ; +0xa2, 0x100576942\nmov     esi, r15d                                                      ; +0xa5, 0x100576945\ncall    sub_1007FEFE0                                                  ; +0xa8, 0x100576948\nmov     rdi, rax                                                       ; +0xad, 0x10057694d\ncall    cocos2d__CCString__getCString                                  ; +0xb0, 0x100576950\nmov     rdi, r12; this                                                 ; +0xb5, 0x100576955\nmov     rsi, rax; __s                                                  ; +0xb8, 0x100576958\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xbb, 0x10057695b\ninc     r15d                                                           ; +0xc0, 0x100576960\njmp     short loc_100576910                                            ; +0xc3, 0x100576963\nlea     rdi, [rbp+var_80]; this                                        ; +0xc5, 0x100576965\ncall    GameLevelManager__getBasePostString                            ; +0xc9, 0x100576969\ntest    byte ptr [rbp+var_50.__r_.__value_], 1                         ; +0xce, 0x10057696e\njz      short loc_10057697A                                            ; +0xd2, 0x100576972\nmov     r14, qword ptr [rbp+var_50.__r_.__value_+10h]                  ; +0xd4, 0x100576974\njmp     short loc_10057697E                                            ; +0xd8, 0x100576978\nlea     r14, [rbp+var_50.__r_.__value_+1]                              ; +0xda, 0x10057697a\nlea     rax, a7; \"7\"                                                   ; +0xde, 0x10057697e\nmov     qword ptr [rsp+0C0h+var_C0], rax; char                         ; +0xe5, 0x100576985\nlea     rdi, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0xe9, 0x100576989\nlea     rdx, aMfd; \"mfd\"                                               ; +0xf0, 0x100576990\nlea     rcx, a2893; \"2893\"                                             ; +0xf7, 0x100576997\nmov     esi, 57h ; 'W'                                                 ; +0xfe, 0x10057699e\nmov     r8d, 67h ; 'g'                                                 ; +0x103, 0x1005769a3\nmov     r9d, 62h ; 'b'                                                 ; +0x109, 0x1005769a9\nxor     eax, eax                                                       ; +0x10f, 0x1005769af\ncall    sub_10088E820                                                  ; +0x111, 0x1005769b1\nmov     rdi, rax                                                       ; +0x116, 0x1005769b6\ncall    cocos2d__CCString__getCString                                  ; +0x119, 0x1005769b9\nlea     rdi, aFollowsSAck1Se; \"&follows=%s&ack=1&secret=%s\"            ; +0x11e, 0x1005769be\nmov     rsi, r14                                                       ; +0x125, 0x1005769c5\nmov     rdx, rax                                                       ; +0x128, 0x1005769c8\nxor     eax, eax                                                       ; +0x12b, 0x1005769cb\ncall    sub_10088E820                                                  ; +0x12d, 0x1005769cd\nmov     rdi, rax                                                       ; +0x132, 0x1005769d2\ncall    cocos2d__CCString__getCString                                  ; +0x135, 0x1005769d5\nlea     rdi, [rbp+var_80]; this                                        ; +0x13a, 0x1005769da\nmov     rsi, rax; __s                                                  ; +0x13e, 0x1005769de\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x141, 0x1005769e1\nmov     edi, 38h ; '8'; __sz                                           ; +0x146, 0x1005769e6\ncall    __Znwm; operator new(ulong)                                    ; +0x14b, 0x1005769eb\nmov     [rbp+var_A0], rax                                              ; +0x150, 0x1005769f0\nmov     [rbp+var_B0], 39h ; '9'                                        ; +0x157, 0x1005769f7\nmov     [rbp+var_A8], 36h ; '6'                                        ; +0x162, 0x100576a02\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_91+20h; \"se/syncGJFollowing.php\" ; +0x16d, 0x100576a0d\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x174, 0x100576a14\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_91+10h; \"lings.com/database/syncGJFollowing.php\" ; +0x178, 0x100576a18\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x17f, 0x100576a1f\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_91; \"https://www.boomlings.com/database/sync\"... ; +0x183, 0x100576a23\nmovups  xmmword ptr [rax], xmm0                                        ; +0x18a, 0x100576a2a\nmov     rcx, 7068702E676E6977h                                         ; +0x18d, 0x100576a2d\nmov     [rax+2Eh], rcx                                                 ; +0x197, 0x100576a37\nmov     byte ptr [rax+36h], 0                                          ; +0x19b, 0x100576a3b\ntest    byte ptr [rbp+var_80.__r_.__value_], 1                         ; +0x19f, 0x100576a3f\njz      short loc_100576A4B                                            ; +0x1a3, 0x100576a43\nmov     r14, qword ptr [rbp+var_80.__r_.__value_+10h]                  ; +0x1a5, 0x100576a45\njmp     short loc_100576A4F                                            ; +0x1a9, 0x100576a49\nlea     r14, [rbp+var_80.__r_.__value_+1]                              ; +0x1ab, 0x100576a4b\nmov     rdi, r14; __s                                                  ; +0x1af, 0x100576a4f\ncall    _strlen                                                        ; +0x1b2, 0x100576a52\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x1b7, 0x100576a57\njnb     loc_100576B90                                                  ; +0x1bb, 0x100576a5b\nmov     r15, rax                                                       ; +0x1c1, 0x100576a61\ncmp     rax, 17h                                                       ; +0x1c4, 0x100576a64\njnb     short loc_100576A7C                                            ; +0x1c8, 0x100576a68\nlea     eax, [r15+r15]                                                 ; +0x1ca, 0x100576a6a\nmov     byte ptr [rbp+__dst], al                                       ; +0x1ce, 0x100576a6e\nlea     r12, [rbp+__dst+1]                                             ; +0x1d1, 0x100576a71\ntest    r15, r15                                                       ; +0x1d5, 0x100576a75\njnz     short loc_100576AB0                                            ; +0x1d8, 0x100576a78\njmp     short loc_100576ABE                                            ; +0x1da, 0x100576a7a\nmov     rax, r15                                                       ; +0x1dc, 0x100576a7c\nor      rax, 7                                                         ; +0x1df, 0x100576a7f\nlea     rcx, [rax+1]                                                   ; +0x1e3, 0x100576a83\ncmp     rax, 17h                                                       ; +0x1e7, 0x100576a87\nmov     r13d, 1Ah                                                      ; +0x1eb, 0x100576a8b\ncmovnz  r13, rcx                                                       ; +0x1f1, 0x100576a91\nmov     rdi, r13; __sz                                                 ; +0x1f5, 0x100576a95\ncall    __Znwm; operator new(ulong)                                    ; +0x1f8, 0x100576a98\nmov     r12, rax                                                       ; +0x1fd, 0x100576a9d\nmov     [rbp+var_58], rax                                              ; +0x200, 0x100576aa0\nor      r13, 1                                                         ; +0x204, 0x100576aa4\nmov     [rbp+__dst], r13                                               ; +0x208, 0x100576aa8\nmov     [rbp+var_60], r15                                              ; +0x20c, 0x100576aac\nmov     rdi, r12; __dst                                                ; +0x210, 0x100576ab0\nmov     rsi, r14; __src                                                ; +0x213, 0x100576ab3\nmov     rdx, r15; __len                                                ; +0x216, 0x100576ab6\ncall    _memmove                                                       ; +0x219, 0x100576ab9\nmov     byte ptr [r12+r15], 0                                          ; +0x21e, 0x100576abe\nmov     [rbp+var_98], 12h                                              ; +0x223, 0x100576ac3\nmov     rax, 6E69776F6C6C6F66h                                         ; +0x22a, 0x100576aca\nmov     [rbp+var_97], rax                                              ; +0x234, 0x100576ad4\nmov     word ptr [rbp-8Fh], 67h ; 'g'                                  ; +0x23b, 0x100576adb\nlea     rsi, [rbp+var_B0]                                              ; +0x244, 0x100576ae4\nlea     rdx, [rbp+__dst]                                               ; +0x24b, 0x100576aeb\nlea     rcx, [rbp+var_98]                                              ; +0x24f, 0x100576aef\nmov     rdi, rbx                                                       ; +0x256, 0x100576af6\nmov     r8d, 73h ; 's'                                                 ; +0x259, 0x100576af9\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x25f, 0x100576aff\ntest    [rbp+var_98], 1                                                ; +0x264, 0x100576b04\njnz     short loc_100576B49                                            ; +0x26b, 0x100576b0b\ntest    byte ptr [rbp+__dst], 1                                        ; +0x26d, 0x100576b0d\njnz     short loc_100576B5B                                            ; +0x271, 0x100576b11\ntest    byte ptr [rbp+var_B0], 1                                       ; +0x273, 0x100576b13\njnz     short loc_100576B6D                                            ; +0x27a, 0x100576b1a\ntest    byte ptr [rbp+var_80.__r_.__value_], 1                         ; +0x27c, 0x100576b1c\njnz     short loc_100576B7F                                            ; +0x280, 0x100576b20\ntest    byte ptr [rbp+var_50.__r_.__value_], 1                         ; +0x282, 0x100576b22\njz      short loc_100576B31                                            ; +0x286, 0x100576b26\nmov     rdi, qword ptr [rbp+var_50.__r_.__value_+10h]; __p             ; +0x288, 0x100576b28\ncall    __ZdlPv; operator delete(void *)                               ; +0x28c, 0x100576b2c\nmovzx   eax, [rbp+var_29]                                              ; +0x291, 0x100576b31\nxor     al, 1                                                          ; +0x295, 0x100576b35\nadd     rsp, 98h                                                       ; +0x297, 0x100576b37\npop     rbx                                                            ; +0x29e, 0x100576b3e\npop     r12                                                            ; +0x29f, 0x100576b3f\npop     r13                                                            ; +0x2a1, 0x100576b41\npop     r14                                                            ; +0x2a3, 0x100576b43\npop     r15                                                            ; +0x2a5, 0x100576b45\npop     rbp                                                            ; +0x2a7, 0x100576b47\nretn                                                                   ; +0x2a8, 0x100576b48\nmov     rdi, [rbp+__p]; __p                                            ; +0x2a9, 0x100576b49\ncall    __ZdlPv; operator delete(void *)                               ; +0x2b0, 0x100576b50\ntest    byte ptr [rbp+__dst], 1                                        ; +0x2b5, 0x100576b55\njz      short loc_100576B13                                            ; +0x2b9, 0x100576b59\nmov     rdi, [rbp+var_58]; __p                                         ; +0x2bb, 0x100576b5b\ncall    __ZdlPv; operator delete(void *)                               ; +0x2bf, 0x100576b5f\ntest    byte ptr [rbp+var_B0], 1                                       ; +0x2c4, 0x100576b64\njz      short loc_100576B1C                                            ; +0x2cb, 0x100576b6b\nmov     rdi, [rbp+var_A0]; __p                                         ; +0x2cd, 0x100576b6d\ncall    __ZdlPv; operator delete(void *)                               ; +0x2d4, 0x100576b74\ntest    byte ptr [rbp+var_80.__r_.__value_], 1                         ; +0x2d9, 0x100576b79\njz      short loc_100576B22                                            ; +0x2dd, 0x100576b7d\nmov     rdi, qword ptr [rbp+var_80.__r_.__value_+10h]; __p             ; +0x2df, 0x100576b7f\ncall    __ZdlPv; operator delete(void *)                               ; +0x2e3, 0x100576b83\ntest    byte ptr [rbp+var_50.__r_.__value_], 1                         ; +0x2e8, 0x100576b88\njnz     short loc_100576B28                                            ; +0x2ec, 0x100576b8c\njmp     short loc_100576B31                                            ; +0x2ee, 0x100576b8e\ncall    sub_100003630                                                  ; +0x2f0, 0x100576b90", "xrefs": ["GameLevelManager::syncFollowListIfNeeded @ 0x100576fa6"], "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"}