{"type": "func", "start": 5371137968, "end": 5371138570, "name": "GameLevelManager::onFollowUserCompleted", "pseudocode": "// \n// GameLevelManager::onFollowUserCompleted from 0x140250fb0 to 0x14025120a (602 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::handleIt @ 0x14021b3f3\n// > GameLevelManager::handleIt @ 0x14021b431\n// > <???> @ 0x14091c490\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:42 +0000\n// \n\n// Hidden C++ exception states: #wind=6\nvoid __fastcall GameLevelManager::onFollowUserCompleted(_QWORD *a1, const char *a2, _QWORD *a3, unsigned __int8 a4)\n{\n  _BYTE *v8; // rdx\n  __int64 v9; // rdx\n  __int64 v10; // rcx\n  __int64 v11; // r8\n  __int64 v12; // r9\n  unsigned __int64 v13; // rax\n  size_t v14; // rax\n  size_t v15; // r8\n  _QWORD *v16; // rdx\n  const char *v17; // rcx\n  unsigned int v18; // ebp\n  char *v19; // r8\n  const char *v20; // rcx\n  __int64 v21; // rcx\n  __int64 v22; // rcx\n  char *v23; // rcx\n  void (__fastcall ***v24)(_QWORD, _QWORD, _QWORD); // rcx\n  char *String[2]; // [rsp+48h] [rbp-50h] BYREF\n  __m128i si128; // [rsp+58h] [rbp-40h]\n\n  v8 = a3;\n  if ( a3[3] > 0xFu )\n    v8 = (_BYTE *)*a3;\n  GameLevelManager::removeDLFromActive((__int64)a1, v8);\n  *(_OWORD *)String = 0;\n  si128 = 0;\n  v13 = a3[2];\n  if ( v13 < 7 )\n    sub_14003F4D0(v10, v9, v11, v12);\n  v14 = v13 - 7;\n  v15 = -1;\n  if ( v14 != -1 )\n    v15 = v14;\n  v16 = a3;\n  if ( a3[3] > 0xFu )\n    v16 = (_QWORD *)*a3;\n  sub_14003D230(String, (char *)v16 + 7, v15);\n  v17 = (const char *)String;\n  if ( si128.m128i_i64[1] > 0xFuLL )\n    v17 = String[0];\n  v18 = atoi(v17);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v19 = String[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v19 = *((char **)String[0] - 1);\n      if ( (unsigned __int64)(String[0] - v19 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v19);\n  }\n  v20 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v20 = *(const char **)a2;\n  if ( atoi(v20) >= 0 )\n  {\n    if ( a4 )\n      GameLevelManager::followUser((__int64)a1);\n    else\n      GameLevelManager::unfollowUser((__int64)a1);\n    GameLevelManager::resetStoredUserList(a1, 3);\n    v22 = a1[187];\n    if ( v22 )\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 24LL))(v22, 3);\n    if ( !a4 )\n    {\n      String[1] = (char *)100;\n      si128 = _mm_load_si128((const __m128i *)&xmmword_1408365A0);\n      String[0] = (char *)0x6574756D5F746567LL;\n      cocos2d::CCDictionary::removeObjectForKey(a1[144], String);\n      if ( si128.m128i_i64[1] > 0xFuLL )\n      {\n        v23 = String[0];\n        if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n        {\n          v23 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v23 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v23);\n      }\n    }\n    v24 = (void (__fastcall ***)(_QWORD, _QWORD, _QWORD))a1[67];\n    if ( v24 )\n      (**v24)(v24, v18, a4);\n  }\n  else\n  {\n    v21 = a1[67];\n    if ( v21 )\n      (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v21 + 8LL))(v21, v18, a4);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onFollowUserCompleted from 0x140250fb0 to 0x14025120a (602 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::handleIt @ 0x14021b3f3\n; > GameLevelManager::handleIt @ 0x14021b431\n; > <???> @ 0x14091c490\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:42 +0000\n; \npush    rbx                                                            ; +0x0, 0x140250fb0\npush    rbp                                                            ; +0x2, 0x140250fb2\npush    rsi                                                            ; +0x3, 0x140250fb3\npush    rdi                                                            ; +0x4, 0x140250fb4\npush    r14                                                            ; +0x5, 0x140250fb5\nsub     rsp, 70h                                                       ; +0x7, 0x140250fb7\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x140250fbb\nxor     rax, rsp                                                       ; +0x12, 0x140250fc2\nmov     [rsp+98h+var_30], rax                                          ; +0x15, 0x140250fc5\nmovzx   r14d, r9b                                                      ; +0x1a, 0x140250fca\nmov     rbx, r8                                                        ; +0x1e, 0x140250fce\nmov     rsi, rdx                                                       ; +0x21, 0x140250fd1\nmov     rdi, rcx                                                       ; +0x24, 0x140250fd4\nmov     [rsp+98h+var_60], rdx                                          ; +0x27, 0x140250fd7\nmov     [rsp+98h+var_58], rbx                                          ; +0x2c, 0x140250fdc\nmov     rdx, r8                                                        ; +0x31, 0x140250fe1\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x34, 0x140250fe4\njbe     short loc_140250FEE                                            ; +0x39, 0x140250fe9\nmov     rdx, [r8]                                                      ; +0x3b, 0x140250feb\ncall    GameLevelManager__removeDLFromActive                           ; +0x3e, 0x140250fee\nxorps   xmm0, xmm0                                                     ; +0x43, 0x140250ff3\nmovups  xmmword ptr [rsp+98h+String], xmm0                             ; +0x46, 0x140250ff6\nxorps   xmm1, xmm1                                                     ; +0x4b, 0x140250ffb\nmovdqu  [rsp+98h+var_40], xmm1                                         ; +0x4e, 0x140250ffe\nmov     rax, [rbx+10h]                                                 ; +0x54, 0x140251004\ncmp     rax, 7                                                         ; +0x58, 0x140251008\njb      loc_140251204                                                  ; +0x5c, 0x14025100c\nadd     rax, 0FFFFFFFFFFFFFFF9h                                        ; +0x62, 0x140251012\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x66, 0x140251016\ncmp     rax, r8                                                        ; +0x6d, 0x14025101d\ncmovb   r8, rax                                                        ; +0x70, 0x140251020\nmov     rdx, rbx                                                       ; +0x74, 0x140251024\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x77, 0x140251027\njbe     short loc_140251031                                            ; +0x7c, 0x14025102c\nmov     rdx, [rbx]                                                     ; +0x7e, 0x14025102e\nadd     rdx, 7                                                         ; +0x81, 0x140251031\nlea     rcx, [rsp+98h+String]                                          ; +0x85, 0x140251035\ncall    sub_14003D230                                                  ; +0x8a, 0x14025103a\nlea     rcx, [rsp+98h+String]                                          ; +0x8f, 0x14025103f\ncmp     qword ptr [rsp+98h+var_40+8], 0Fh                              ; +0x94, 0x140251044\ncmova   rcx, [rsp+98h+String]; String                                  ; +0x9a, 0x14025104a\ncall    cs:atoi                                                        ; +0xa0, 0x140251050\nmov     ebp, eax                                                       ; +0xa6, 0x140251056\nmov     rdx, qword ptr [rsp+98h+var_40+8]                              ; +0xa8, 0x140251058\ncmp     rdx, 0Fh                                                       ; +0xad, 0x14025105d\njbe     short loc_1402510AE                                            ; +0xb1, 0x140251061\ninc     rdx                                                            ; +0xb3, 0x140251063\nmov     r8, [rsp+98h+String]                                           ; +0xb6, 0x140251066\nmov     rcx, r8                                                        ; +0xbb, 0x14025106b\ncmp     rdx, 1000h                                                     ; +0xbe, 0x14025106e\njb      short loc_1402510A6                                            ; +0xc5, 0x140251075\nadd     rdx, 27h ; '''                                                 ; +0xc7, 0x140251077\nmov     r8, [r8-8]                                                     ; +0xcb, 0x14025107b\nsub     rcx, r8                                                        ; +0xcf, 0x14025107f\nsub     rcx, 8                                                         ; +0xd2, 0x140251082\ncmp     rcx, 1Fh                                                       ; +0xd6, 0x140251086\njbe     short loc_1402510A6                                            ; +0xda, 0x14025108a\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0xdc, 0x14025108c\nxor     r9d, r9d; LineNo                                               ; +0xe5, 0x140251095\nxor     r8d, r8d; FileName                                             ; +0xe8, 0x140251098\nxor     edx, edx; FunctionName                                         ; +0xeb, 0x14025109b\nxor     ecx, ecx; Expression                                           ; +0xed, 0x14025109d\ncall    cs:_invoke_watson                                              ; +0xef, 0x14025109f\nalign 2                                                                ; +0xf5, 0x1402510a5\nmov     rcx, r8; Block                                                 ; +0xf6, 0x1402510a6\ncall    j_j_free                                                       ; +0xf9, 0x1402510a9\nmov     rcx, rsi                                                       ; +0xfe, 0x1402510ae\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x101, 0x1402510b1\njbe     short loc_1402510BB                                            ; +0x106, 0x1402510b6\nmov     rcx, [rsi]; String                                             ; +0x108, 0x1402510b8\ncall    cs:atoi                                                        ; +0x10b, 0x1402510bb\ntest    eax, eax                                                       ; +0x111, 0x1402510c1\njns     short loc_1402510E6                                            ; +0x113, 0x1402510c3\nmov     rcx, [rdi+218h]                                                ; +0x115, 0x1402510c5\ntest    rcx, rcx                                                       ; +0x11c, 0x1402510cc\njz      loc_1402511DB                                                  ; +0x11f, 0x1402510cf\nmov     rax, [rcx]                                                     ; +0x125, 0x1402510d5\nmovzx   r8d, r14b                                                      ; +0x128, 0x1402510d8\nmov     edx, ebp                                                       ; +0x12c, 0x1402510dc\ncall    qword ptr [rax+8]                                              ; +0x12e, 0x1402510de\njmp     loc_1402511DB                                                  ; +0x131, 0x1402510e1\nmov     edx, ebp                                                       ; +0x136, 0x1402510e6\nmov     rcx, rdi                                                       ; +0x138, 0x1402510e8\ntest    r14b, r14b                                                     ; +0x13b, 0x1402510eb\njz      short loc_1402510F7                                            ; +0x13e, 0x1402510ee\ncall    GameLevelManager__followUser                                   ; +0x140, 0x1402510f0\njmp     short loc_1402510FC                                            ; +0x145, 0x1402510f5\ncall    GameLevelManager__unfollowUser                                 ; +0x147, 0x1402510f7\nmov     edx, 3                                                         ; +0x14c, 0x1402510fc\nmov     rcx, rdi                                                       ; +0x151, 0x140251101\ncall    GameLevelManager__resetStoredUserList                          ; +0x154, 0x140251104\nmov     rcx, [rdi+5D8h]                                                ; +0x159, 0x140251109\ntest    rcx, rcx                                                       ; +0x160, 0x140251110\njz      short loc_140251120                                            ; +0x163, 0x140251113\nmov     rax, [rcx]                                                     ; +0x165, 0x140251115\nmov     edx, 3                                                         ; +0x168, 0x140251118\ncall    qword ptr [rax+18h]                                            ; +0x16d, 0x14025111d\ntest    r14b, r14b                                                     ; +0x170, 0x140251120\njnz     loc_1402511C3                                                  ; +0x173, 0x140251123\nxorps   xmm0, xmm0                                                     ; +0x179, 0x140251129\nmovups  xmmword ptr [rsp+98h+String], xmm0                             ; +0x17c, 0x14025112c\nmovdqa  xmm1, cs:xmmword_1408365A0                                     ; +0x181, 0x140251131\nmovdqu  [rsp+98h+var_40], xmm1                                         ; +0x189, 0x140251139\nmovsd   xmm0, cs:qword_14075A4F8                                       ; +0x18f, 0x14025113f\nmovsd   [rsp+98h+String], xmm0                                         ; +0x197, 0x140251147\nmovzx   eax, cs:byte_14075A500                                         ; +0x19d, 0x14025114d\nmov     byte ptr [rsp+98h+String+8], al                                ; +0x1a4, 0x140251154\nmov     byte ptr [rsp+98h+String+9], r14b                              ; +0x1a8, 0x140251158\nlea     rdx, [rsp+98h+String]                                          ; +0x1ad, 0x14025115d\nmov     rcx, [rdi+480h]                                                ; +0x1b2, 0x140251162\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x1b9, 0x140251169\nnop                                                                    ; +0x1bf, 0x14025116f\nmov     rdx, qword ptr [rsp+98h+var_40+8]                              ; +0x1c0, 0x140251170\ncmp     rdx, 0Fh                                                       ; +0x1c5, 0x140251175\njbe     short loc_1402511C3                                            ; +0x1c9, 0x140251179\ninc     rdx                                                            ; +0x1cb, 0x14025117b\nmov     rcx, [rsp+98h+String]; Block                                   ; +0x1ce, 0x14025117e\nmov     rax, rcx                                                       ; +0x1d3, 0x140251183\ncmp     rdx, 1000h                                                     ; +0x1d6, 0x140251186\njb      short loc_1402511BE                                            ; +0x1dd, 0x14025118d\nadd     rdx, 27h ; '''                                                 ; +0x1df, 0x14025118f\nmov     rcx, [rcx-8]                                                   ; +0x1e3, 0x140251193\nsub     rax, rcx                                                       ; +0x1e7, 0x140251197\nsub     rax, 8                                                         ; +0x1ea, 0x14025119a\ncmp     rax, 1Fh                                                       ; +0x1ee, 0x14025119e\njbe     short loc_1402511BE                                            ; +0x1f2, 0x1402511a2\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0x1f4, 0x1402511a4\nxor     r9d, r9d; LineNo                                               ; +0x1fd, 0x1402511ad\nxor     r8d, r8d; FileName                                             ; +0x200, 0x1402511b0\nxor     edx, edx; FunctionName                                         ; +0x203, 0x1402511b3\nxor     ecx, ecx; Expression                                           ; +0x205, 0x1402511b5\ncall    cs:_invoke_watson                                              ; +0x207, 0x1402511b7\nalign 2                                                                ; +0x20d, 0x1402511bd\ncall    j_j_free                                                       ; +0x20e, 0x1402511be\nmov     rcx, [rdi+218h]                                                ; +0x213, 0x1402511c3\ntest    rcx, rcx                                                       ; +0x21a, 0x1402511ca\njz      short loc_1402511DB                                            ; +0x21d, 0x1402511cd\nmov     rax, [rcx]                                                     ; +0x21f, 0x1402511cf\nmovzx   r8d, r14b                                                      ; +0x222, 0x1402511d2\nmov     edx, ebp                                                       ; +0x226, 0x1402511d6\ncall    qword ptr [rax]                                                ; +0x228, 0x1402511d8\nnop                                                                    ; +0x22a, 0x1402511da\nmov     rcx, rsi                                                       ; +0x22b, 0x1402511db\ncall    sub_14003D310                                                  ; +0x22e, 0x1402511de\nnop                                                                    ; +0x233, 0x1402511e3\nmov     rcx, rbx                                                       ; +0x234, 0x1402511e4\ncall    sub_14003D310                                                  ; +0x237, 0x1402511e7\nmov     rcx, [rsp+98h+var_30]                                          ; +0x23c, 0x1402511ec\nxor     rcx, rsp; StackCookie                                          ; +0x241, 0x1402511f1\ncall    __security_check_cookie                                        ; +0x244, 0x1402511f4\nadd     rsp, 70h                                                       ; +0x249, 0x1402511f9\npop     r14                                                            ; +0x24d, 0x1402511fd\npop     rdi                                                            ; +0x24f, 0x1402511ff\npop     rsi                                                            ; +0x250, 0x140251200\npop     rbp                                                            ; +0x251, 0x140251201\npop     rbx                                                            ; +0x252, 0x140251202\nretn                                                                   ; +0x253, 0x140251203\ncall    sub_14003F4D0                                                  ; +0x254, 0x140251204\nalign 2                                                                ; +0x259, 0x140251209", "xrefs": ["GameLevelManager::handleIt @ 0x14021b3f3", "GameLevelManager::handleIt @ 0x14021b431", "<???> @ 0x14091c490"], "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"}