{"type": "func", "start": 5371140320, "end": 5371140535, "name": "GameLevelManager::onGetFollowingCompleted", "pseudocode": "// \n// GameLevelManager::onGetFollowingCompleted from 0x1402518e0 to 0x1402519b7 (215 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021b46c\n// > <???> @ 0x14091c4b4\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=3\nvoid __fastcall GameLevelManager::onGetFollowingCompleted(__int64 a1, __int64 a2, _QWORD *a3)\n{\n  _BYTE *v6; // rdx\n  __int64 v7; // r8\n  __int64 v8; // rcx\n  void *v9; // [rsp+20h] [rbp-38h]\n\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  GameLevelManager::removeDLFromActive(a1, v6);\n  if ( *(_QWORD *)(a2 + 16) && sub_140100380((unsigned __int8 *)a2, \"0123456789,\", 0) == -1 )\n  {\n    GameLevelManager::replaceFollowedUsers(a1, a2);\n    v8 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v9 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v8 = qword_14090BFD0;\n    }\n    LOBYTE(v7) = 1;\n    GameManager::setGameVariable(v8, \"0241\", v7);\n  }\n  sub_14003D310(a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onGetFollowingCompleted from 0x1402518e0 to 0x1402519b7 (215 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021b46c\n; > <???> @ 0x14091c4b4\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, 0x1402518e0\npush    rsi                                                            ; +0x2, 0x1402518e2\npush    rdi                                                            ; +0x3, 0x1402518e3\nsub     rsp, 40h                                                       ; +0x4, 0x1402518e4\nmov     rax, cs:__security_cookie                                      ; +0x8, 0x1402518e8\nxor     rax, rsp                                                       ; +0xf, 0x1402518ef\nmov     [rsp+58h+var_20], rax                                          ; +0x12, 0x1402518f2\nmov     rdi, r8                                                        ; +0x17, 0x1402518f7\nmov     rbx, rdx                                                       ; +0x1a, 0x1402518fa\nmov     rsi, rcx                                                       ; +0x1d, 0x1402518fd\nmov     [rsp+58h+var_30], rdx                                          ; +0x20, 0x140251900\nmov     [rsp+58h+var_28], r8                                           ; +0x25, 0x140251905\nmov     rdx, r8                                                        ; +0x2a, 0x14025190a\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x2d, 0x14025190d\njbe     short loc_140251917                                            ; +0x32, 0x140251912\nmov     rdx, [r8]                                                      ; +0x34, 0x140251914\ncall    GameLevelManager__removeDLFromActive                           ; +0x37, 0x140251917\ncmp     qword ptr [rbx+10h], 0                                         ; +0x3c, 0x14025191c\njz      short loc_140251991                                            ; +0x41, 0x140251921\nxor     r8d, r8d                                                       ; +0x43, 0x140251923\nlea     rdx, a0123456789_0; \"0123456789,\"                              ; +0x46, 0x140251926\nmov     rcx, rbx                                                       ; +0x4d, 0x14025192d\ncall    sub_140100380                                                  ; +0x50, 0x140251930\ncmp     rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x55, 0x140251935\njnz     short loc_140251991                                            ; +0x59, 0x140251939\nmov     rdx, rbx                                                       ; +0x5b, 0x14025193b\nmov     rcx, rsi                                                       ; +0x5e, 0x14025193e\ncall    GameLevelManager__replaceFollowedUsers                         ; +0x61, 0x140251941\nmov     rcx, cs:qword_14090BFD0                                        ; +0x66, 0x140251946\ntest    rcx, rcx                                                       ; +0x6d, 0x14025194d\njnz     short loc_140251981                                            ; +0x70, 0x140251950\nmov     ecx, 6E8h; Size                                                ; +0x72, 0x140251952\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x77, 0x140251957\nmov     [rsp+58h+var_38], rax                                          ; +0x7c, 0x14025195c\nmov     rcx, rax                                                       ; +0x81, 0x140251961\ncall    GameManager__GameManager                                       ; +0x84, 0x140251964\nnop                                                                    ; +0x89, 0x140251969\nmov     cs:qword_14090BFD0, rax                                        ; +0x8a, 0x14025196a\nmov     rdx, [rax]                                                     ; +0x91, 0x140251971\nmov     rcx, rax                                                       ; +0x94, 0x140251974\ncall    qword ptr [rdx+48h]                                            ; +0x97, 0x140251977\nmov     rcx, cs:qword_14090BFD0                                        ; +0x9a, 0x14025197a\nmov     r8b, 1                                                         ; +0xa1, 0x140251981\nlea     rdx, a0241; \"0241\"                                             ; +0xa4, 0x140251984\ncall    GameManager__setGameVariable                                   ; +0xab, 0x14025198b\nnop                                                                    ; +0xb0, 0x140251990\nmov     rcx, rbx                                                       ; +0xb1, 0x140251991\ncall    sub_14003D310                                                  ; +0xb4, 0x140251994\nnop                                                                    ; +0xb9, 0x140251999\nmov     rcx, rdi                                                       ; +0xba, 0x14025199a\ncall    sub_14003D310                                                  ; +0xbd, 0x14025199d\nmov     rcx, [rsp+58h+var_20]                                          ; +0xc2, 0x1402519a2\nxor     rcx, rsp; StackCookie                                          ; +0xc7, 0x1402519a7\ncall    __security_check_cookie                                        ; +0xca, 0x1402519aa\nadd     rsp, 40h                                                       ; +0xcf, 0x1402519af\npop     rdi                                                            ; +0xd3, 0x1402519b3\npop     rsi                                                            ; +0xd4, 0x1402519b4\npop     rbx                                                            ; +0xd5, 0x1402519b5\nretn                                                                   ; +0xd6, 0x1402519b6", "xrefs": ["GameLevelManager::handleIt @ 0x14021b46c", "<???> @ 0x14091c4b4"], "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"}