{"type": "func", "start": 5371022816, "end": 5371023209, "name": "GameLevelManager::onDeleteServerLevelCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteServerLevelCompleted from 0x140234de0 to 0x140234f69 (393 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x140219a57\n// > <???> @ 0x14091bf98\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:31 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::onDeleteServerLevelCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rbx\n  size_t v7; // r8\n  void *v8; // rcx\n  unsigned int v9; // ebp\n  const void *v10; // rcx\n  unsigned __int64 v11; // rbx\n  size_t v12; // r8\n  void (__fastcall ***v13)(_QWORD, _QWORD); // rcx\n  __int64 v14; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-58h] BYREF\n  __int128 v16; // [rsp+50h] [rbp-48h]\n\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  *(_OWORD *)Block = 0;\n  v16 = 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 *)&v16 + 1) > 0xFu )\n  {\n    v8 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v16 + 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  v9 = atoi(v6);\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v16 = 2;\n  *((_QWORD *)&v16 + 1) = 15;\n  strcpy((char *)Block, \"-1\");\n  v10 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v10 = *a2;\n  v11 = (unsigned __int64)a2[2];\n  v12 = v11;\n  if ( v11 > 2 )\n    v12 = 2;\n  if ( !memcmp(v10, Block, v12) && v11 == 2 )\n  {\n    v14 = *(_QWORD *)(a1 + 1432);\n    if ( v14 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 8LL))(v14, v9);\n  }\n  else\n  {\n    v13 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 1432);\n    if ( v13 )\n      (**v13)(v13, v9);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onDeleteServerLevelCompleted from 0x140234de0 to 0x140234f69 (393 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x140219a57\n; > <???> @ 0x14091bf98\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:31 +0000\n; \npush    rbx                                                            ; +0x0, 0x140234de0\npush    rbp                                                            ; +0x2, 0x140234de2\npush    rsi                                                            ; +0x3, 0x140234de3\npush    rdi                                                            ; +0x4, 0x140234de4\npush    r14                                                            ; +0x5, 0x140234de5\nsub     rsp, 70h                                                       ; +0x7, 0x140234de7\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x140234deb\nxor     rax, rsp                                                       ; +0x12, 0x140234df2\nmov     [rsp+98h+var_38], rax                                          ; +0x15, 0x140234df5\nmov     r14, r8                                                        ; +0x1a, 0x140234dfa\nmov     rdi, rdx                                                       ; +0x1d, 0x140234dfd\nmov     rsi, rcx                                                       ; +0x20, 0x140234e00\nmov     [rsp+98h+var_68], rdx                                          ; +0x23, 0x140234e03\nmov     [rsp+98h+var_60], r8                                           ; +0x28, 0x140234e08\nmov     rbx, r8                                                        ; +0x2d, 0x140234e0d\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x30, 0x140234e10\njbe     short loc_140234E1A                                            ; +0x35, 0x140234e15\nmov     rbx, [r8]                                                      ; +0x37, 0x140234e17\nxorps   xmm0, xmm0                                                     ; +0x3a, 0x140234e1a\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x3d, 0x140234e1d\nxorps   xmm1, xmm1                                                     ; +0x42, 0x140234e22\nmovdqu  [rsp+98h+var_48], xmm1                                         ; +0x45, 0x140234e25\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4b, 0x140234e2b\ninc     r8                                                             ; +0x52, 0x140234e32\ncmp     byte ptr [rbx+r8], 0                                           ; +0x55, 0x140234e35\njnz     short loc_140234E32                                            ; +0x5a, 0x140234e3a\nmov     rdx, rbx                                                       ; +0x5c, 0x140234e3c\nlea     rcx, [rsp+98h+Block]                                           ; +0x5f, 0x140234e3f\ncall    sub_14003D230                                                  ; +0x64, 0x140234e44\nnop                                                                    ; +0x69, 0x140234e49\nlea     rdx, [rsp+98h+Block]                                           ; +0x6a, 0x140234e4a\nmov     rcx, [rsi+4B0h]                                                ; +0x6f, 0x140234e4f\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 &) ; +0x76, 0x140234e56\nnop                                                                    ; +0x7c, 0x140234e5c\nmov     rdx, qword ptr [rsp+98h+var_48+8]                              ; +0x7d, 0x140234e5d\ncmp     rdx, 0Fh                                                       ; +0x82, 0x140234e62\njbe     short loc_140234EB0                                            ; +0x86, 0x140234e66\ninc     rdx                                                            ; +0x88, 0x140234e68\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x8b, 0x140234e6b\nmov     rax, rcx                                                       ; +0x90, 0x140234e70\ncmp     rdx, 1000h                                                     ; +0x93, 0x140234e73\njb      short loc_140234EAB                                            ; +0x9a, 0x140234e7a\nadd     rdx, 27h ; '''                                                 ; +0x9c, 0x140234e7c\nmov     rcx, [rcx-8]                                                   ; +0xa0, 0x140234e80\nsub     rax, rcx                                                       ; +0xa4, 0x140234e84\nsub     rax, 8                                                         ; +0xa7, 0x140234e87\ncmp     rax, 1Fh                                                       ; +0xab, 0x140234e8b\njbe     short loc_140234EAB                                            ; +0xaf, 0x140234e8f\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0xb1, 0x140234e91\nxor     r9d, r9d; LineNo                                               ; +0xba, 0x140234e9a\nxor     r8d, r8d; FileName                                             ; +0xbd, 0x140234e9d\nxor     edx, edx; FunctionName                                         ; +0xc0, 0x140234ea0\nxor     ecx, ecx; Expression                                           ; +0xc2, 0x140234ea2\ncall    cs:_invoke_watson                                              ; +0xc4, 0x140234ea4\ndb 0CCh                                                                ; +0xca, 0x140234eaa\ncall    j_j_free                                                       ; +0xcb, 0x140234eab\nmov     rcx, rbx; String                                               ; +0xd0, 0x140234eb0\ncall    cs:atoi                                                        ; +0xd3, 0x140234eb3\nmov     ebp, eax                                                       ; +0xd9, 0x140234eb9\nxorps   xmm0, xmm0                                                     ; +0xdb, 0x140234ebb\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0xde, 0x140234ebe\nmov     edx, 2                                                         ; +0xe3, 0x140234ec3\nmov     qword ptr [rsp+98h+var_48], rdx                                ; +0xe8, 0x140234ec8\nmov     qword ptr [rsp+98h+var_48+8], 0Fh                              ; +0xed, 0x140234ecd\nmov     eax, 312Dh                                                     ; +0xf6, 0x140234ed6\nmov     word ptr [rsp+98h+Block], ax                                   ; +0xfb, 0x140234edb\nmov     byte ptr [rsp+98h+Block+2], 0                                  ; +0x100, 0x140234ee0\nmov     rcx, rdi                                                       ; +0x105, 0x140234ee5\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x108, 0x140234ee8\njbe     short loc_140234EF2                                            ; +0x10d, 0x140234eed\nmov     rcx, [rdi]; Buf1                                               ; +0x10f, 0x140234eef\nmov     rbx, [rdi+10h]                                                 ; +0x112, 0x140234ef2\nmov     r8, rbx                                                        ; +0x116, 0x140234ef6\ncmp     rbx, rdx                                                       ; +0x119, 0x140234ef9\ncmova   r8, rdx; Size                                                  ; +0x11c, 0x140234efc\nlea     rdx, [rsp+98h+Block]; Buf2                                     ; +0x120, 0x140234f00\ncall    memcmp                                                         ; +0x125, 0x140234f05\ntest    eax, eax                                                       ; +0x12a, 0x140234f0a\njnz     short loc_140234F16                                            ; +0x12c, 0x140234f0c\ncmp     rbx, 2                                                         ; +0x12e, 0x140234f0e\njb      short loc_140234F16                                            ; +0x132, 0x140234f12\njbe     short loc_140234F2B                                            ; +0x134, 0x140234f14\nmov     rcx, [rsi+598h]                                                ; +0x136, 0x140234f16\ntest    rcx, rcx                                                       ; +0x13d, 0x140234f1d\njz      short loc_140234F40                                            ; +0x140, 0x140234f20\nmov     rax, [rcx]                                                     ; +0x142, 0x140234f22\nmov     edx, ebp                                                       ; +0x145, 0x140234f25\ncall    qword ptr [rax]                                                ; +0x147, 0x140234f27\njmp     short loc_140234F40                                            ; +0x149, 0x140234f29\nmov     rcx, [rsi+598h]                                                ; +0x14b, 0x140234f2b\ntest    rcx, rcx                                                       ; +0x152, 0x140234f32\njz      short loc_140234F40                                            ; +0x155, 0x140234f35\nmov     rax, [rcx]                                                     ; +0x157, 0x140234f37\nmov     edx, ebp                                                       ; +0x15a, 0x140234f3a\ncall    qword ptr [rax+8]                                              ; +0x15c, 0x140234f3c\nnop                                                                    ; +0x15f, 0x140234f3f\nmov     rcx, rdi                                                       ; +0x160, 0x140234f40\ncall    sub_14003D310                                                  ; +0x163, 0x140234f43\nnop                                                                    ; +0x168, 0x140234f48\nmov     rcx, r14                                                       ; +0x169, 0x140234f49\ncall    sub_14003D310                                                  ; +0x16c, 0x140234f4c\nmov     rcx, [rsp+98h+var_38]                                          ; +0x171, 0x140234f51\nxor     rcx, rsp; StackCookie                                          ; +0x176, 0x140234f56\ncall    __security_check_cookie                                        ; +0x179, 0x140234f59\nadd     rsp, 70h                                                       ; +0x17e, 0x140234f5e\npop     r14                                                            ; +0x182, 0x140234f62\npop     rdi                                                            ; +0x184, 0x140234f64\npop     rsi                                                            ; +0x185, 0x140234f65\npop     rbp                                                            ; +0x186, 0x140234f66\npop     rbx                                                            ; +0x187, 0x140234f67\nretn                                                                   ; +0x188, 0x140234f68", "xrefs": ["GameLevelManager::handleIt @ 0x140219a57", "<???> @ 0x14091bf98"], "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"}