{"type": "func", "start": 5371163040, "end": 5371163203, "name": "GameLevelManager::removeUserFromList", "pseudocode": "// \n// GameLevelManager::removeUserFromList from 0x1402571a0 to 0x140257243 (163 bytes)\n// \n// 5 xrefs:\n// > GameLevelManager::onBlockUserCompleted @ 0x140256b28\n// > GameLevelManager::onUnblockUserCompleted @ 0x140257150\n// > <???> @ 0x1408aab98\n// > <???> @ 0x1408aaba8\n// > <???> @ 0x14091c610\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:44 +0000\n// \n\nvoid __fastcall GameLevelManager::removeUserFromList(__int64 a1, int a2, unsigned int a3)\n{\n  cocos2d::CCArray *StoredUserList; // rax\n  cocos2d::CCArray *v7; // rdi\n  unsigned int v8; // ebx\n  __int64 v9; // rcx\n\n  StoredUserList = (cocos2d::CCArray *)GameLevelManager::getStoredUserList(a1, a3);\n  v7 = StoredUserList;\n  if ( StoredUserList )\n  {\n    v8 = 0;\n    if ( cocos2d::CCArray::count(StoredUserList) )\n    {\n      while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(v7, v8) + 98) != a2 )\n      {\n        if ( ++v8 >= cocos2d::CCArray::count(v7) )\n          return;\n      }\n      cocos2d::CCArray::removeObjectAtIndex(v7, v8, 1);\n      v9 = *(_QWORD *)(a1 + 1496);\n      if ( v9 )\n        (*(void (__fastcall **)(__int64, cocos2d::CCArray *, _QWORD))(*(_QWORD *)v9 + 16LL))(v9, v7, a3);\n    }\n  }\n}", "assembly": "; \n; GameLevelManager::removeUserFromList from 0x1402571a0 to 0x140257243 (163 bytes)\n; \n; 5 xrefs:\n; > GameLevelManager::onBlockUserCompleted @ 0x140256b28\n; > GameLevelManager::onUnblockUserCompleted @ 0x140257150\n; > <???> @ 0x1408aab98\n; > <???> @ 0x1408aaba8\n; > <???> @ 0x14091c610\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:44 +0000\n; \nmov     [rsp+arg_8], rbp                                               ; +0x0, 0x1402571a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1402571a5\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1402571aa\npush    r14                                                            ; +0xf, 0x1402571af\nsub     rsp, 20h                                                       ; +0x11, 0x1402571b1\nmov     esi, edx                                                       ; +0x15, 0x1402571b5\nmov     r14d, r8d                                                      ; +0x17, 0x1402571b7\nmov     edx, r8d                                                       ; +0x1a, 0x1402571ba\nmov     rbp, rcx                                                       ; +0x1d, 0x1402571bd\ncall    GameLevelManager__getStoredUserList                            ; +0x20, 0x1402571c0\nmov     rdi, rax                                                       ; +0x25, 0x1402571c5\ntest    rax, rax                                                       ; +0x28, 0x1402571c8\njz      short loc_14025722D                                            ; +0x2b, 0x1402571cb\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2d, 0x1402571cd\nmov     rcx, rax                                                       ; +0x32, 0x1402571d2\nxor     ebx, ebx                                                       ; +0x35, 0x1402571d5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x1402571d7\ntest    eax, eax                                                       ; +0x3d, 0x1402571dd\njz      short loc_140257228                                            ; +0x3f, 0x1402571df\nmov     edx, ebx                                                       ; +0x41, 0x1402571e1\nmov     rcx, rdi                                                       ; +0x43, 0x1402571e3\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x46, 0x1402571e6\nmov     rcx, rdi                                                       ; +0x4c, 0x1402571ec\ncmp     [rax+188h], esi                                                ; +0x4f, 0x1402571ef\njz      short loc_140257205                                            ; +0x55, 0x1402571f5\ninc     ebx                                                            ; +0x57, 0x1402571f7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x59, 0x1402571f9\ncmp     ebx, eax                                                       ; +0x5f, 0x1402571ff\njb      short loc_1402571E1                                            ; +0x61, 0x140257201\njmp     short loc_140257228                                            ; +0x63, 0x140257203\nmov     r8b, 1                                                         ; +0x65, 0x140257205\nmov     edx, ebx                                                       ; +0x68, 0x140257208\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x6a, 0x14025720a\nmov     rcx, [rbp+5D8h]                                                ; +0x70, 0x140257210\ntest    rcx, rcx                                                       ; +0x77, 0x140257217\njz      short loc_140257228                                            ; +0x7a, 0x14025721a\nmov     rax, [rcx]                                                     ; +0x7c, 0x14025721c\nmov     r8d, r14d                                                      ; +0x7f, 0x14025721f\nmov     rdx, rdi                                                       ; +0x82, 0x140257222\ncall    qword ptr [rax+10h]                                            ; +0x85, 0x140257225\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x88, 0x140257228\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x8d, 0x14025722d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x92, 0x140257232\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x97, 0x140257237\nadd     rsp, 20h                                                       ; +0x9c, 0x14025723c\npop     r14                                                            ; +0xa0, 0x140257240\nretn                                                                   ; +0xa2, 0x140257242", "xrefs": ["GameLevelManager::onBlockUserCompleted @ 0x140256b28", "GameLevelManager::onUnblockUserCompleted @ 0x140257150", "<???> @ 0x1408aab98", "<???> @ 0x1408aaba8", "<???> @ 0x14091c610"], "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"}