{"type": "func", "start": 5371342272, "end": 5371342443, "name": "GJMultiplayerManager::removeDLFromActive", "pseudocode": "// \n// GJMultiplayerManager::removeDLFromActive from 0x140282dc0 to 0x140282e6b (171 bytes)\n// \n// 4 xrefs:\n// > GJMultiplayerManager::handleIt @ 0x140282b47\n// > GJMultiplayerManager::handleIt @ 0x140282c72\n// > GJMultiplayerManager::onJoinLobbyCompleted @ 0x140282ed0\n// > <???> @ 0x1406d14a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJMultiplayerManager::removeDLFromActive(GJMultiplayerManager *a1, const char *a2)\n{\n  size_t v3; // r8\n  void *v4; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v6; // [rsp+30h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v6 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003A930(Block, a2, v3);\n  cocos2d::CCDictionary::removeObjectForKey(a1->m_activeDownloads, Block);\n  if ( *((_QWORD *)&v6 + 1) > 0xFu )\n  {\n    v4 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v6 + 1) + 1LL) >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v4);\n  }\n}", "assembly": "; \n; GJMultiplayerManager::removeDLFromActive from 0x140282dc0 to 0x140282e6b (171 bytes)\n; \n; 4 xrefs:\n; > GJMultiplayerManager::handleIt @ 0x140282b47\n; > GJMultiplayerManager::handleIt @ 0x140282c72\n; > GJMultiplayerManager::onJoinLobbyCompleted @ 0x140282ed0\n; > <???> @ 0x1406d14a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140282dc0\nsub     rsp, 50h                                                       ; +0x2, 0x140282dc2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140282dc6\nxor     rax, rsp                                                       ; +0xd, 0x140282dcd\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x140282dd0\nmov     rbx, rcx                                                       ; +0x15, 0x140282dd5\nxorps   xmm0, xmm0                                                     ; +0x18, 0x140282dd8\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x1b, 0x140282ddb\nxorps   xmm1, xmm1                                                     ; +0x20, 0x140282de0\nmovdqu  [rsp+58h+var_28], xmm1                                         ; +0x23, 0x140282de3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x140282de9\ninc     r8                                                             ; +0x30, 0x140282df0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x140282df3\njnz     short loc_140282DF0                                            ; +0x38, 0x140282df8\nlea     rcx, [rsp+58h+Block]                                           ; +0x3a, 0x140282dfa\ncall    sub_14003A930                                                  ; +0x3f, 0x140282dff\nnop                                                                    ; +0x44, 0x140282e04\nlea     rdx, [rsp+58h+Block]                                           ; +0x45, 0x140282e05\nmov     rcx, [rbx+140h]                                                ; +0x4a, 0x140282e0a\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 &) ; +0x51, 0x140282e11\nnop                                                                    ; +0x57, 0x140282e17\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0x58, 0x140282e18\ncmp     rdx, 0Fh                                                       ; +0x5d, 0x140282e1d\njbe     short loc_140282E58                                            ; +0x61, 0x140282e21\ninc     rdx                                                            ; +0x63, 0x140282e23\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x66, 0x140282e26\nmov     rax, rcx                                                       ; +0x6b, 0x140282e2b\ncmp     rdx, 1000h                                                     ; +0x6e, 0x140282e2e\njb      short loc_140282E53                                            ; +0x75, 0x140282e35\nadd     rdx, 27h ; '''                                                 ; +0x77, 0x140282e37\nmov     rcx, [rcx-8]                                                   ; +0x7b, 0x140282e3b\nsub     rax, rcx                                                       ; +0x7f, 0x140282e3f\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x82, 0x140282e42\ncmp     rax, 1Fh                                                       ; +0x86, 0x140282e46\njbe     short loc_140282E53                                            ; +0x8a, 0x140282e4a\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x8c, 0x140282e4c\ndb 0CCh                                                                ; +0x92, 0x140282e52\ncall    j_j_free                                                       ; +0x93, 0x140282e53\nmov     rcx, [rsp+58h+var_18]                                          ; +0x98, 0x140282e58\nxor     rcx, rsp; StackCookie                                          ; +0x9d, 0x140282e5d\ncall    __security_check_cookie                                        ; +0xa0, 0x140282e60\nadd     rsp, 50h                                                       ; +0xa5, 0x140282e65\npop     rbx                                                            ; +0xa9, 0x140282e69\nretn                                                                   ; +0xaa, 0x140282e6a", "xrefs": ["GJMultiplayerManager::handleIt @ 0x140282b47", "GJMultiplayerManager::handleIt @ 0x140282c72", "GJMultiplayerManager::onJoinLobbyCompleted @ 0x140282ed0", "<???> @ 0x1406d14a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}