{"type": "func", "start": 5371169872, "end": 5371170499, "name": "GameLevelManager::onUpdateDescriptionCompleted", "pseudocode": "// \n// GameLevelManager::onUpdateDescriptionCompleted from 0x140258c50 to 0x140258ec3 (627 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x140219ea4\n// > <???> @ 0x14091c694\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:45 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::onUpdateDescriptionCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rdi\n  size_t v7; // rbx\n  size_t v8; // r8\n  void *v9; // rcx\n  unsigned int v10; // esi\n  cocos2d::CCArray *v11; // rbx\n  void *v12; // rcx\n  cocos2d::CCString *v13; // rax\n  const char *CString; // rax\n  const void *v15; // rcx\n  unsigned __int64 v16; // rbx\n  size_t v17; // r8\n  void (__fastcall ***v18)(_QWORD, _QWORD, __int64); // rcx\n  __int64 v19; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-58h] BYREF\n  __m128i si128; // [rsp+50h] [rbp-48h]\n\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  *(_OWORD *)Block = 0;\n  si128 = 0;\n  v7 = -1;\n  v8 = -1;\n  do\n    ++v8;\n  while ( v6[v8] );\n  sub_14003D230(Block, v6, v8);\n  cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n  v10 = 0;\n  *(_OWORD *)Block = 0;\n  si128 = 0;\n  do\n    ++v7;\n  while ( v6[v7] );\n  sub_14003D230(Block, v6, v7);\n  v11 = sub_1400D2840((__int64 *)Block, \"_\");\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v12 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v12 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v12);\n  }\n  si128 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(Block[0]) = 0;\n  if ( cocos2d::CCArray::count(v11) >= 2 )\n  {\n    v13 = cocos2d::CCArray::objectAtIndex(v11, 1u);\n    CString = cocos2d::CCString::getCString(v13);\n    v10 = atoi(CString);\n  }\n  *(_OWORD *)Block = 0;\n  si128.m128i_i64[0] = 2;\n  si128.m128i_i64[1] = 15;\n  strcpy((char *)Block, \"-1\");\n  v15 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v15 = *a2;\n  v16 = (unsigned __int64)a2[2];\n  v17 = v16;\n  if ( v16 > 2 )\n    v17 = 2;\n  if ( !memcmp(v15, Block, v17) && v16 == 2 )\n  {\n    v19 = *(_QWORD *)(a1 + 1488);\n    if ( v19 )\n      (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v19 + 8LL))(v19, v10, 27);\n  }\n  else\n  {\n    v18 = *(void (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 1488);\n    if ( v18 )\n      (**v18)(v18, v10, 27);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onUpdateDescriptionCompleted from 0x140258c50 to 0x140258ec3 (627 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x140219ea4\n; > <???> @ 0x14091c694\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:45 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140258c50\npush    rbp                                                            ; +0x5, 0x140258c55\npush    rsi                                                            ; +0x6, 0x140258c56\npush    rdi                                                            ; +0x7, 0x140258c57\npush    r14                                                            ; +0x8, 0x140258c58\npush    r15                                                            ; +0xa, 0x140258c5a\nsub     rsp, 70h                                                       ; +0xc, 0x140258c5c\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x140258c60\nxor     rax, rsp                                                       ; +0x17, 0x140258c67\nmov     [rsp+98h+var_38], rax                                          ; +0x1a, 0x140258c6a\nmov     r15, r8                                                        ; +0x1f, 0x140258c6f\nmov     r14, rdx                                                       ; +0x22, 0x140258c72\nmov     rbp, rcx                                                       ; +0x25, 0x140258c75\nmov     [rsp+98h+var_68], rdx                                          ; +0x28, 0x140258c78\nmov     [rsp+98h+var_60], r8                                           ; +0x2d, 0x140258c7d\nmov     rdi, r8                                                        ; +0x32, 0x140258c82\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x35, 0x140258c85\njbe     short loc_140258C8F                                            ; +0x3a, 0x140258c8a\nmov     rdi, [r8]                                                      ; +0x3c, 0x140258c8c\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x140258c8f\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x42, 0x140258c92\nxorps   xmm1, xmm1                                                     ; +0x47, 0x140258c97\nmovdqu  [rsp+98h+var_48], xmm1                                         ; +0x4a, 0x140258c9a\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x50, 0x140258ca0\nmov     r8, rbx                                                        ; +0x57, 0x140258ca7\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x140258caa\ninc     r8                                                             ; +0x60, 0x140258cb0\ncmp     byte ptr [rdi+r8], 0                                           ; +0x63, 0x140258cb3\njnz     short loc_140258CB0                                            ; +0x68, 0x140258cb8\nmov     rdx, rdi                                                       ; +0x6a, 0x140258cba\nlea     rcx, [rsp+98h+Block]                                           ; +0x6d, 0x140258cbd\ncall    sub_14003D230                                                  ; +0x72, 0x140258cc2\nnop                                                                    ; +0x77, 0x140258cc7\nlea     rdx, [rsp+98h+Block]                                           ; +0x78, 0x140258cc8\nmov     rcx, [rbp+4B0h]                                                ; +0x7d, 0x140258ccd\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 &) ; +0x84, 0x140258cd4\nnop                                                                    ; +0x8a, 0x140258cda\nmov     rdx, qword ptr [rsp+98h+var_48+8]                              ; +0x8b, 0x140258cdb\ncmp     rdx, 0Fh                                                       ; +0x90, 0x140258ce0\njbe     short loc_140258D2C                                            ; +0x94, 0x140258ce4\ninc     rdx                                                            ; +0x96, 0x140258ce6\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x99, 0x140258ce9\nmov     rax, rcx                                                       ; +0x9e, 0x140258cee\ncmp     rdx, 1000h                                                     ; +0xa1, 0x140258cf1\njb      short loc_140258D27                                            ; +0xa8, 0x140258cf8\nadd     rdx, 27h ; '''                                                 ; +0xaa, 0x140258cfa\nmov     rcx, [rcx-8]                                                   ; +0xae, 0x140258cfe\nsub     rax, rcx                                                       ; +0xb2, 0x140258d02\nsub     rax, 8                                                         ; +0xb5, 0x140258d05\ncmp     rax, 1Fh                                                       ; +0xb9, 0x140258d09\njbe     short loc_140258D27                                            ; +0xbd, 0x140258d0d\nxor     esi, esi                                                       ; +0xbf, 0x140258d0f\nmov     [rsp+98h+Reserved], rsi; Reserved                              ; +0xc1, 0x140258d11\nxor     r9d, r9d; LineNo                                               ; +0xc6, 0x140258d16\nxor     r8d, r8d; FileName                                             ; +0xc9, 0x140258d19\nxor     edx, edx; FunctionName                                         ; +0xcc, 0x140258d1c\nxor     ecx, ecx; Expression                                           ; +0xce, 0x140258d1e\ncall    cs:_invoke_watson                                              ; +0xd0, 0x140258d20\ndb 0CCh                                                                ; +0xd6, 0x140258d26\ncall    j_j_free                                                       ; +0xd7, 0x140258d27\nxor     esi, esi                                                       ; +0xdc, 0x140258d2c\nxorps   xmm0, xmm0                                                     ; +0xde, 0x140258d2e\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0xe1, 0x140258d31\nxorps   xmm1, xmm1                                                     ; +0xe6, 0x140258d36\nmovdqu  [rsp+98h+var_48], xmm1                                         ; +0xe9, 0x140258d39\nnop                                                                    ; +0xef, 0x140258d3f\ninc     rbx                                                            ; +0xf0, 0x140258d40\ncmp     [rdi+rbx], sil                                                 ; +0xf3, 0x140258d43\njnz     short loc_140258D40                                            ; +0xf7, 0x140258d47\nmov     r8, rbx                                                        ; +0xf9, 0x140258d49\nmov     rdx, rdi                                                       ; +0xfc, 0x140258d4c\nlea     rcx, [rsp+98h+Block]                                           ; +0xff, 0x140258d4f\ncall    sub_14003D230                                                  ; +0x104, 0x140258d54\nnop                                                                    ; +0x109, 0x140258d59\nlea     rdx, asc_14071413C; \"_\"                                        ; +0x10a, 0x140258d5a\nlea     rcx, [rsp+98h+Block]                                           ; +0x111, 0x140258d61\ncall    sub_1400D2840                                                  ; +0x116, 0x140258d66\nmov     rbx, rax                                                       ; +0x11b, 0x140258d6b\nmov     rdx, qword ptr [rsp+98h+var_48+8]                              ; +0x11e, 0x140258d6e\ncmp     rdx, 0Fh                                                       ; +0x123, 0x140258d73\njbe     short loc_140258DBD                                            ; +0x127, 0x140258d77\ninc     rdx                                                            ; +0x129, 0x140258d79\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x12c, 0x140258d7c\nmov     rax, rcx                                                       ; +0x131, 0x140258d81\ncmp     rdx, 1000h                                                     ; +0x134, 0x140258d84\njb      short loc_140258DB8                                            ; +0x13b, 0x140258d8b\nadd     rdx, 27h ; '''                                                 ; +0x13d, 0x140258d8d\nmov     rcx, [rcx-8]                                                   ; +0x141, 0x140258d91\nsub     rax, rcx                                                       ; +0x145, 0x140258d95\nsub     rax, 8                                                         ; +0x148, 0x140258d98\ncmp     rax, 1Fh                                                       ; +0x14c, 0x140258d9c\njbe     short loc_140258DB8                                            ; +0x150, 0x140258da0\nmov     [rsp+98h+Reserved], rsi; Reserved                              ; +0x152, 0x140258da2\nxor     r9d, r9d; LineNo                                               ; +0x157, 0x140258da7\nxor     r8d, r8d; FileName                                             ; +0x15a, 0x140258daa\nxor     edx, edx; FunctionName                                         ; +0x15d, 0x140258dad\nxor     ecx, ecx; Expression                                           ; +0x15f, 0x140258daf\ncall    cs:_invoke_watson                                              ; +0x161, 0x140258db1\nalign 8                                                                ; +0x167, 0x140258db7\ncall    j_j_free                                                       ; +0x168, 0x140258db8\nmovdqa  xmm0, cs:Size                                                  ; +0x16d, 0x140258dbd\nmovdqu  [rsp+98h+var_48], xmm0                                         ; +0x175, 0x140258dc5\nmov     byte ptr [rsp+98h+Block], 0                                    ; +0x17b, 0x140258dcb\nmov     rcx, rbx                                                       ; +0x180, 0x140258dd0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x183, 0x140258dd3\ncmp     eax, 2                                                         ; +0x189, 0x140258dd9\njb      short loc_140258E00                                            ; +0x18c, 0x140258ddc\nmov     edx, 1                                                         ; +0x18e, 0x140258dde\nmov     rcx, rbx                                                       ; +0x193, 0x140258de3\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x196, 0x140258de6\nmov     rcx, rax                                                       ; +0x19c, 0x140258dec\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x19f, 0x140258def\nmov     rcx, rax; String                                               ; +0x1a5, 0x140258df5\ncall    cs:atoi                                                        ; +0x1a8, 0x140258df8\nmov     esi, eax                                                       ; +0x1ae, 0x140258dfe\nxorps   xmm0, xmm0                                                     ; +0x1b0, 0x140258e00\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x1b3, 0x140258e03\nmov     edx, 2                                                         ; +0x1b8, 0x140258e08\nmov     qword ptr [rsp+98h+var_48], rdx                                ; +0x1bd, 0x140258e0d\nmov     qword ptr [rsp+98h+var_48+8], 0Fh                              ; +0x1c2, 0x140258e12\nmov     eax, 312Dh                                                     ; +0x1cb, 0x140258e1b\nmov     word ptr [rsp+98h+Block], ax                                   ; +0x1d0, 0x140258e20\nmov     byte ptr [rsp+98h+Block+2], 0                                  ; +0x1d5, 0x140258e25\nmov     rcx, r14                                                       ; +0x1da, 0x140258e2a\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x1dd, 0x140258e2d\njbe     short loc_140258E37                                            ; +0x1e2, 0x140258e32\nmov     rcx, [r14]; Buf1                                               ; +0x1e4, 0x140258e34\nmov     rbx, [r14+10h]                                                 ; +0x1e7, 0x140258e37\nmov     r8, rbx                                                        ; +0x1eb, 0x140258e3b\ncmp     rbx, rdx                                                       ; +0x1ee, 0x140258e3e\ncmova   r8, rdx; Size                                                  ; +0x1f1, 0x140258e41\nlea     rdx, [rsp+98h+Block]; Buf2                                     ; +0x1f5, 0x140258e45\ncall    memcmp                                                         ; +0x1fa, 0x140258e4a\ntest    eax, eax                                                       ; +0x1ff, 0x140258e4f\njnz     short loc_140258E5B                                            ; +0x201, 0x140258e51\ncmp     rbx, 2                                                         ; +0x203, 0x140258e53\njb      short loc_140258E5B                                            ; +0x207, 0x140258e57\njbe     short loc_140258E76                                            ; +0x209, 0x140258e59\nmov     rcx, [rbp+5D0h]                                                ; +0x20b, 0x140258e5b\ntest    rcx, rcx                                                       ; +0x212, 0x140258e62\njz      short loc_140258E91                                            ; +0x215, 0x140258e65\nmov     rax, [rcx]                                                     ; +0x217, 0x140258e67\nmov     r8d, 1Bh                                                       ; +0x21a, 0x140258e6a\nmov     edx, esi                                                       ; +0x220, 0x140258e70\ncall    qword ptr [rax]                                                ; +0x222, 0x140258e72\njmp     short loc_140258E91                                            ; +0x224, 0x140258e74\nmov     rcx, [rbp+5D0h]                                                ; +0x226, 0x140258e76\ntest    rcx, rcx                                                       ; +0x22d, 0x140258e7d\njz      short loc_140258E91                                            ; +0x230, 0x140258e80\nmov     rax, [rcx]                                                     ; +0x232, 0x140258e82\nmov     r8d, 1Bh                                                       ; +0x235, 0x140258e85\nmov     edx, esi                                                       ; +0x23b, 0x140258e8b\ncall    qword ptr [rax+8]                                              ; +0x23d, 0x140258e8d\nnop                                                                    ; +0x240, 0x140258e90\nmov     rcx, r14                                                       ; +0x241, 0x140258e91\ncall    sub_14003D310                                                  ; +0x244, 0x140258e94\nnop                                                                    ; +0x249, 0x140258e99\nmov     rcx, r15                                                       ; +0x24a, 0x140258e9a\ncall    sub_14003D310                                                  ; +0x24d, 0x140258e9d\nmov     rcx, [rsp+98h+var_38]                                          ; +0x252, 0x140258ea2\nxor     rcx, rsp; StackCookie                                          ; +0x257, 0x140258ea7\ncall    __security_check_cookie                                        ; +0x25a, 0x140258eaa\nmov     rbx, [rsp+98h+arg_18]                                          ; +0x25f, 0x140258eaf\nadd     rsp, 70h                                                       ; +0x267, 0x140258eb7\npop     r15                                                            ; +0x26b, 0x140258ebb\npop     r14                                                            ; +0x26d, 0x140258ebd\npop     rdi                                                            ; +0x26f, 0x140258ebf\npop     rsi                                                            ; +0x270, 0x140258ec0\npop     rbp                                                            ; +0x271, 0x140258ec1\nretn                                                                   ; +0x272, 0x140258ec2", "xrefs": ["GameLevelManager::handleIt @ 0x140219ea4", "<???> @ 0x14091c694"], "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"}