{"type": "func", "start": 5371103680, "end": 5371104062, "name": "GameLevelManager::onAdminFreezeCompleted", "pseudocode": "// \n// GameLevelManager::onAdminFreezeCompleted from 0x1402489c0 to 0x140248b3e (382 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021af9d\n// > <???> @ 0x14091c334\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:39 +0000\n// \n\nvoid __fastcall GameLevelManager::onAdminFreezeCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rdx\n  size_t v7; // r8\n  void *v8; // rcx\n  const void *v9; // rcx\n  unsigned __int64 v10; // rbp\n  size_t v11; // r8\n  __int64 v12; // rcx\n  __int64 v13; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-48h] BYREF\n  __int128 v15; // [rsp+50h] [rbp-38h]\n\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  *(_OWORD *)Block = 0;\n  v15 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( v6[v7] );\n  sub_14003D230(Block, v6, v7);\n  cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block);\n  if ( *((_QWORD *)&v15 + 1) > 0xFu )\n  {\n    v8 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v15 = 2;\n  *((_QWORD *)&v15 + 1) = 15;\n  strcpy((char *)Block, \"-1\");\n  v9 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v9 = *a2;\n  v10 = (unsigned __int64)a2[2];\n  v11 = v10;\n  if ( v10 > 2 )\n    v11 = 2;\n  if ( !memcmp(v9, Block, v11) && v10 == 2 )\n  {\n    v13 = *(_QWORD *)(a1 + 1384);\n    if ( v13 )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 120LL))(v13);\n  }\n  else\n  {\n    v12 = *(_QWORD *)(a1 + 1384);\n    if ( v12 )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 112LL))(v12);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onAdminFreezeCompleted from 0x1402489c0 to 0x140248b3e (382 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021af9d\n; > <???> @ 0x14091c334\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:39 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1402489c0\npush    rbp                                                            ; +0x5, 0x1402489c5\npush    rsi                                                            ; +0x6, 0x1402489c6\npush    rdi                                                            ; +0x7, 0x1402489c7\nsub     rsp, 70h                                                       ; +0x8, 0x1402489c8\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x1402489cc\nxor     rax, rsp                                                       ; +0x13, 0x1402489d3\nmov     [rsp+88h+var_28], rax                                          ; +0x16, 0x1402489d6\nmov     rsi, r8                                                        ; +0x1b, 0x1402489db\nmov     rbx, rdx                                                       ; +0x1e, 0x1402489de\nmov     rdi, rcx                                                       ; +0x21, 0x1402489e1\nmov     [rsp+88h+var_58], rdx                                          ; +0x24, 0x1402489e4\nmov     [rsp+88h+var_50], r8                                           ; +0x29, 0x1402489e9\nmov     rdx, r8                                                        ; +0x2e, 0x1402489ee\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x31, 0x1402489f1\njbe     short loc_1402489FB                                            ; +0x36, 0x1402489f6\nmov     rdx, [r8]                                                      ; +0x38, 0x1402489f8\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x1402489fb\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x3e, 0x1402489fe\nxorps   xmm1, xmm1                                                     ; +0x43, 0x140248a03\nmovdqu  [rsp+88h+var_38], xmm1                                         ; +0x46, 0x140248a06\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4c, 0x140248a0c\ninc     r8                                                             ; +0x53, 0x140248a13\ncmp     byte ptr [rdx+r8], 0                                           ; +0x56, 0x140248a16\njnz     short loc_140248A13                                            ; +0x5b, 0x140248a1b\nlea     rcx, [rsp+88h+Block]                                           ; +0x5d, 0x140248a1d\ncall    sub_14003D230                                                  ; +0x62, 0x140248a22\nnop                                                                    ; +0x67, 0x140248a27\nlea     rdx, [rsp+88h+Block]                                           ; +0x68, 0x140248a28\nmov     rcx, [rdi+4B0h]                                                ; +0x6d, 0x140248a2d\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 &) ; +0x74, 0x140248a34\nnop                                                                    ; +0x7a, 0x140248a3a\nmov     rdx, qword ptr [rsp+88h+var_38+8]                              ; +0x7b, 0x140248a3b\ncmp     rdx, 0Fh                                                       ; +0x80, 0x140248a40\njbe     short loc_140248A8E                                            ; +0x84, 0x140248a44\ninc     rdx                                                            ; +0x86, 0x140248a46\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x89, 0x140248a49\nmov     rax, rcx                                                       ; +0x8e, 0x140248a4e\ncmp     rdx, 1000h                                                     ; +0x91, 0x140248a51\njb      short loc_140248A89                                            ; +0x98, 0x140248a58\nadd     rdx, 27h ; '''                                                 ; +0x9a, 0x140248a5a\nmov     rcx, [rcx-8]                                                   ; +0x9e, 0x140248a5e\nsub     rax, rcx                                                       ; +0xa2, 0x140248a62\nsub     rax, 8                                                         ; +0xa5, 0x140248a65\ncmp     rax, 1Fh                                                       ; +0xa9, 0x140248a69\njbe     short loc_140248A89                                            ; +0xad, 0x140248a6d\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0xaf, 0x140248a6f\nxor     r9d, r9d; LineNo                                               ; +0xb8, 0x140248a78\nxor     r8d, r8d; FileName                                             ; +0xbb, 0x140248a7b\nxor     edx, edx; FunctionName                                         ; +0xbe, 0x140248a7e\nxor     ecx, ecx; Expression                                           ; +0xc0, 0x140248a80\ncall    cs:_invoke_watson                                              ; +0xc2, 0x140248a82\ndb 0CCh                                                                ; +0xc8, 0x140248a88\ncall    j_j_free                                                       ; +0xc9, 0x140248a89\nxorps   xmm0, xmm0                                                     ; +0xce, 0x140248a8e\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0xd1, 0x140248a91\nmov     edx, 2                                                         ; +0xd6, 0x140248a96\nmov     qword ptr [rsp+88h+var_38], rdx                                ; +0xdb, 0x140248a9b\nmov     qword ptr [rsp+88h+var_38+8], 0Fh                              ; +0xe0, 0x140248aa0\nmov     eax, 312Dh                                                     ; +0xe9, 0x140248aa9\nmov     word ptr [rsp+88h+Block], ax                                   ; +0xee, 0x140248aae\nmov     byte ptr [rsp+88h+Block+2], 0                                  ; +0xf3, 0x140248ab3\nmov     rcx, rbx                                                       ; +0xf8, 0x140248ab8\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xfb, 0x140248abb\njbe     short loc_140248AC5                                            ; +0x100, 0x140248ac0\nmov     rcx, [rbx]; Buf1                                               ; +0x102, 0x140248ac2\nmov     rbp, [rbx+10h]                                                 ; +0x105, 0x140248ac5\nmov     r8, rbp                                                        ; +0x109, 0x140248ac9\ncmp     rbp, rdx                                                       ; +0x10c, 0x140248acc\ncmova   r8, rdx; Size                                                  ; +0x10f, 0x140248acf\nlea     rdx, [rsp+88h+Block]; Buf2                                     ; +0x113, 0x140248ad3\ncall    memcmp                                                         ; +0x118, 0x140248ad8\ntest    eax, eax                                                       ; +0x11d, 0x140248add\njnz     short loc_140248AE9                                            ; +0x11f, 0x140248adf\ncmp     rbp, 2                                                         ; +0x121, 0x140248ae1\njb      short loc_140248AE9                                            ; +0x125, 0x140248ae5\njbe     short loc_140248AFD                                            ; +0x127, 0x140248ae7\nmov     rcx, [rdi+568h]                                                ; +0x129, 0x140248ae9\ntest    rcx, rcx                                                       ; +0x130, 0x140248af0\njz      short loc_140248B10                                            ; +0x133, 0x140248af3\nmov     rax, [rcx]                                                     ; +0x135, 0x140248af5\ncall    qword ptr [rax+70h]                                            ; +0x138, 0x140248af8\njmp     short loc_140248B10                                            ; +0x13b, 0x140248afb\nmov     rcx, [rdi+568h]                                                ; +0x13d, 0x140248afd\ntest    rcx, rcx                                                       ; +0x144, 0x140248b04\njz      short loc_140248B10                                            ; +0x147, 0x140248b07\nmov     rax, [rcx]                                                     ; +0x149, 0x140248b09\ncall    qword ptr [rax+78h]                                            ; +0x14c, 0x140248b0c\nnop                                                                    ; +0x14f, 0x140248b0f\nmov     rcx, rbx                                                       ; +0x150, 0x140248b10\ncall    sub_14003D310                                                  ; +0x153, 0x140248b13\nnop                                                                    ; +0x158, 0x140248b18\nmov     rcx, rsi                                                       ; +0x159, 0x140248b19\ncall    sub_14003D310                                                  ; +0x15c, 0x140248b1c\nmov     rcx, [rsp+88h+var_28]                                          ; +0x161, 0x140248b21\nxor     rcx, rsp; StackCookie                                          ; +0x166, 0x140248b26\ncall    __security_check_cookie                                        ; +0x169, 0x140248b29\nmov     rbx, [rsp+88h+arg_18]                                          ; +0x16e, 0x140248b2e\nadd     rsp, 70h                                                       ; +0x176, 0x140248b36\npop     rdi                                                            ; +0x17a, 0x140248b3a\npop     rsi                                                            ; +0x17b, 0x140248b3b\npop     rbp                                                            ; +0x17c, 0x140248b3c\nretn                                                                   ; +0x17d, 0x140248b3d", "xrefs": ["GameLevelManager::handleIt @ 0x14021af9d", "<???> @ 0x14091c334"], "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"}