{"type": "func", "start": 5371104064, "end": 5371104452, "name": "GameLevelManager::onAdminUnfreezeCompleted", "pseudocode": "// \n// GameLevelManager::onAdminUnfreezeCompleted from 0x140248b40 to 0x140248cc4 (388 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021afd8\n// > <???> @ 0x14091c340\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\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::onAdminUnfreezeCompleted(__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 + 136LL))(v13);\n  }\n  else\n  {\n    v12 = *(_QWORD *)(a1 + 1384);\n    if ( v12 )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 128LL))(v12);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onAdminUnfreezeCompleted from 0x140248b40 to 0x140248cc4 (388 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021afd8\n; > <???> @ 0x14091c340\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, 0x140248b40\npush    rbp                                                            ; +0x5, 0x140248b45\npush    rsi                                                            ; +0x6, 0x140248b46\npush    rdi                                                            ; +0x7, 0x140248b47\nsub     rsp, 70h                                                       ; +0x8, 0x140248b48\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x140248b4c\nxor     rax, rsp                                                       ; +0x13, 0x140248b53\nmov     [rsp+88h+var_28], rax                                          ; +0x16, 0x140248b56\nmov     rsi, r8                                                        ; +0x1b, 0x140248b5b\nmov     rbx, rdx                                                       ; +0x1e, 0x140248b5e\nmov     rdi, rcx                                                       ; +0x21, 0x140248b61\nmov     [rsp+88h+var_58], rdx                                          ; +0x24, 0x140248b64\nmov     [rsp+88h+var_50], r8                                           ; +0x29, 0x140248b69\nmov     rdx, r8                                                        ; +0x2e, 0x140248b6e\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x31, 0x140248b71\njbe     short loc_140248B7B                                            ; +0x36, 0x140248b76\nmov     rdx, [r8]                                                      ; +0x38, 0x140248b78\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x140248b7b\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x3e, 0x140248b7e\nxorps   xmm1, xmm1                                                     ; +0x43, 0x140248b83\nmovdqu  [rsp+88h+var_38], xmm1                                         ; +0x46, 0x140248b86\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4c, 0x140248b8c\ninc     r8                                                             ; +0x53, 0x140248b93\ncmp     byte ptr [rdx+r8], 0                                           ; +0x56, 0x140248b96\njnz     short loc_140248B93                                            ; +0x5b, 0x140248b9b\nlea     rcx, [rsp+88h+Block]                                           ; +0x5d, 0x140248b9d\ncall    sub_14003D230                                                  ; +0x62, 0x140248ba2\nnop                                                                    ; +0x67, 0x140248ba7\nlea     rdx, [rsp+88h+Block]                                           ; +0x68, 0x140248ba8\nmov     rcx, [rdi+4B0h]                                                ; +0x6d, 0x140248bad\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, 0x140248bb4\nnop                                                                    ; +0x7a, 0x140248bba\nmov     rdx, qword ptr [rsp+88h+var_38+8]                              ; +0x7b, 0x140248bbb\ncmp     rdx, 0Fh                                                       ; +0x80, 0x140248bc0\njbe     short loc_140248C0E                                            ; +0x84, 0x140248bc4\ninc     rdx                                                            ; +0x86, 0x140248bc6\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x89, 0x140248bc9\nmov     rax, rcx                                                       ; +0x8e, 0x140248bce\ncmp     rdx, 1000h                                                     ; +0x91, 0x140248bd1\njb      short loc_140248C09                                            ; +0x98, 0x140248bd8\nadd     rdx, 27h ; '''                                                 ; +0x9a, 0x140248bda\nmov     rcx, [rcx-8]                                                   ; +0x9e, 0x140248bde\nsub     rax, rcx                                                       ; +0xa2, 0x140248be2\nsub     rax, 8                                                         ; +0xa5, 0x140248be5\ncmp     rax, 1Fh                                                       ; +0xa9, 0x140248be9\njbe     short loc_140248C09                                            ; +0xad, 0x140248bed\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0xaf, 0x140248bef\nxor     r9d, r9d; LineNo                                               ; +0xb8, 0x140248bf8\nxor     r8d, r8d; FileName                                             ; +0xbb, 0x140248bfb\nxor     edx, edx; FunctionName                                         ; +0xbe, 0x140248bfe\nxor     ecx, ecx; Expression                                           ; +0xc0, 0x140248c00\ncall    cs:_invoke_watson                                              ; +0xc2, 0x140248c02\ndb 0CCh                                                                ; +0xc8, 0x140248c08\ncall    j_j_free                                                       ; +0xc9, 0x140248c09\nxorps   xmm0, xmm0                                                     ; +0xce, 0x140248c0e\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0xd1, 0x140248c11\nmov     edx, 2                                                         ; +0xd6, 0x140248c16\nmov     qword ptr [rsp+88h+var_38], rdx                                ; +0xdb, 0x140248c1b\nmov     qword ptr [rsp+88h+var_38+8], 0Fh                              ; +0xe0, 0x140248c20\nmov     eax, 312Dh                                                     ; +0xe9, 0x140248c29\nmov     word ptr [rsp+88h+Block], ax                                   ; +0xee, 0x140248c2e\nmov     byte ptr [rsp+88h+Block+2], 0                                  ; +0xf3, 0x140248c33\nmov     rcx, rbx                                                       ; +0xf8, 0x140248c38\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xfb, 0x140248c3b\njbe     short loc_140248C45                                            ; +0x100, 0x140248c40\nmov     rcx, [rbx]; Buf1                                               ; +0x102, 0x140248c42\nmov     rbp, [rbx+10h]                                                 ; +0x105, 0x140248c45\nmov     r8, rbp                                                        ; +0x109, 0x140248c49\ncmp     rbp, rdx                                                       ; +0x10c, 0x140248c4c\ncmova   r8, rdx; Size                                                  ; +0x10f, 0x140248c4f\nlea     rdx, [rsp+88h+Block]; Buf2                                     ; +0x113, 0x140248c53\ncall    memcmp                                                         ; +0x118, 0x140248c58\ntest    eax, eax                                                       ; +0x11d, 0x140248c5d\njnz     short loc_140248C69                                            ; +0x11f, 0x140248c5f\ncmp     rbp, 2                                                         ; +0x121, 0x140248c61\njb      short loc_140248C69                                            ; +0x125, 0x140248c65\njbe     short loc_140248C80                                            ; +0x127, 0x140248c67\nmov     rcx, [rdi+568h]                                                ; +0x129, 0x140248c69\ntest    rcx, rcx                                                       ; +0x130, 0x140248c70\njz      short loc_140248C96                                            ; +0x133, 0x140248c73\nmov     rax, [rcx]                                                     ; +0x135, 0x140248c75\ncall    qword ptr [rax+80h]                                            ; +0x138, 0x140248c78\njmp     short loc_140248C96                                            ; +0x13e, 0x140248c7e\nmov     rcx, [rdi+568h]                                                ; +0x140, 0x140248c80\ntest    rcx, rcx                                                       ; +0x147, 0x140248c87\njz      short loc_140248C96                                            ; +0x14a, 0x140248c8a\nmov     rax, [rcx]                                                     ; +0x14c, 0x140248c8c\ncall    qword ptr [rax+88h]                                            ; +0x14f, 0x140248c8f\nnop                                                                    ; +0x155, 0x140248c95\nmov     rcx, rbx                                                       ; +0x156, 0x140248c96\ncall    sub_14003D310                                                  ; +0x159, 0x140248c99\nnop                                                                    ; +0x15e, 0x140248c9e\nmov     rcx, rsi                                                       ; +0x15f, 0x140248c9f\ncall    sub_14003D310                                                  ; +0x162, 0x140248ca2\nmov     rcx, [rsp+88h+var_28]                                          ; +0x167, 0x140248ca7\nxor     rcx, rsp; StackCookie                                          ; +0x16c, 0x140248cac\ncall    __security_check_cookie                                        ; +0x16f, 0x140248caf\nmov     rbx, [rsp+88h+arg_18]                                          ; +0x174, 0x140248cb4\nadd     rsp, 70h                                                       ; +0x17c, 0x140248cbc\npop     rdi                                                            ; +0x180, 0x140248cc0\npop     rsi                                                            ; +0x181, 0x140248cc1\npop     rbp                                                            ; +0x182, 0x140248cc2\nretn                                                                   ; +0x183, 0x140248cc3", "xrefs": ["GameLevelManager::handleIt @ 0x14021afd8", "<???> @ 0x14091c340"], "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"}