{"type": "func", "start": 5371203440, "end": 5371203825, "name": "GameLevelManager::onReportLevelCompleted", "pseudocode": "// \n// GameLevelManager::onReportLevelCompleted from 0x140260f70 to 0x1402610f1 (385 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x140219de6\n// > <???> @ 0x14091c7d8\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:47 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::onReportLevelCompleted(__int64 a1, const void **a2, const char *a3)\n{\n  const char *v6; // rcx\n  unsigned int v7; // ebp\n  const void *v8; // rcx\n  size_t v9; // r8\n  cocos2d::CCString *v10; // rax\n  const char *CString; // rax\n  size_t v12; // r8\n  void *v13; // rcx\n  __int128 Buf2; // [rsp+40h] [rbp-48h] BYREF\n  __int128 v15; // [rsp+50h] [rbp-38h]\n\n  v6 = a3;\n  if ( *((_QWORD *)a3 + 3) > 0xFu )\n    v6 = *(const char **)a3;\n  v7 = atoi(v6);\n  Buf2 = 0;\n  *(_QWORD *)&v15 = 2;\n  *((_QWORD *)&v15 + 1) = 15;\n  strcpy((char *)&Buf2, \"-1\");\n  v8 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v8 = *a2;\n  v9 = (size_t)a2[2];\n  if ( v9 > 2 )\n    v9 = 2;\n  if ( !memcmp(v8, &Buf2, v9) && a2[2] == (const void *)2 )\n  {\n    v10 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v7);\n    CString = cocos2d::CCString::getCString(v10);\n    Buf2 = 0;\n    v15 = 0;\n    v12 = -1;\n    do\n      ++v12;\n    while ( CString[v12] );\n    sub_14003D230(&Buf2, CString, v12);\n    cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 920), &Buf2);\n    if ( *((_QWORD *)&v15 + 1) > 0xFu )\n    {\n      v13 = (void *)Buf2;\n      if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )\n      {\n        v13 = *(void **)(Buf2 - 8);\n        if ( (unsigned __int64)(Buf2 - (_QWORD)v13 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v13);\n    }\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onReportLevelCompleted from 0x140260f70 to 0x1402610f1 (385 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x140219de6\n; > <???> @ 0x14091c7d8\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:47 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140260f70\npush    rbp                                                            ; +0x5, 0x140260f75\npush    rdi                                                            ; +0x6, 0x140260f76\npush    r14                                                            ; +0x7, 0x140260f77\nsub     rsp, 70h                                                       ; +0x9, 0x140260f79\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x140260f7d\nxor     rax, rsp                                                       ; +0x14, 0x140260f84\nmov     [rsp+88h+var_28], rax                                          ; +0x17, 0x140260f87\nmov     rdi, r8                                                        ; +0x1c, 0x140260f8c\nmov     rbx, rdx                                                       ; +0x1f, 0x140260f8f\nmov     r14, rcx                                                       ; +0x22, 0x140260f92\nmov     [rsp+88h+var_58], rdx                                          ; +0x25, 0x140260f95\nmov     [rsp+88h+var_50], r8                                           ; +0x2a, 0x140260f9a\nmov     rcx, r8                                                        ; +0x2f, 0x140260f9f\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x32, 0x140260fa2\njbe     short loc_140260FAC                                            ; +0x37, 0x140260fa7\nmov     rcx, [r8]; String                                              ; +0x39, 0x140260fa9\ncall    cs:atoi                                                        ; +0x3c, 0x140260fac\nmov     ebp, eax                                                       ; +0x42, 0x140260fb2\nxorps   xmm0, xmm0                                                     ; +0x44, 0x140260fb4\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0x47, 0x140260fb7\nmov     edx, 2                                                         ; +0x4c, 0x140260fbc\nmov     qword ptr [rsp+88h+var_38], rdx                                ; +0x51, 0x140260fc1\nmov     qword ptr [rsp+88h+var_38+8], 0Fh                              ; +0x56, 0x140260fc6\nmov     eax, 312Dh                                                     ; +0x5f, 0x140260fcf\nmov     word ptr [rsp+88h+Buf2], ax                                    ; +0x64, 0x140260fd4\nmov     byte ptr [rsp+88h+Buf2+2], 0                                   ; +0x69, 0x140260fd9\nmov     rcx, rbx                                                       ; +0x6e, 0x140260fde\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x71, 0x140260fe1\njbe     short loc_140260FEB                                            ; +0x76, 0x140260fe6\nmov     rcx, [rbx]; Buf1                                               ; +0x78, 0x140260fe8\nmov     r8, [rbx+10h]                                                  ; +0x7b, 0x140260feb\ncmp     r8, rdx                                                        ; +0x7f, 0x140260fef\ncmova   r8, rdx; Size                                                  ; +0x82, 0x140260ff2\nlea     rdx, [rsp+88h+Buf2]; Buf2                                      ; +0x86, 0x140260ff6\ncall    memcmp                                                         ; +0x8b, 0x140260ffb\ntest    eax, eax                                                       ; +0x90, 0x140261000\njnz     loc_1402610C2                                                  ; +0x92, 0x140261002\ncmp     qword ptr [rbx+10h], 2                                         ; +0x98, 0x140261008\njnz     loc_1402610C2                                                  ; +0x9d, 0x14026100d\nmov     edx, ebp                                                       ; +0xa3, 0x140261013\nlea     rcx, word_1406ED6F8                                            ; +0xa5, 0x140261015\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xac, 0x14026101c\nmov     rcx, rax                                                       ; +0xb2, 0x140261022\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xb5, 0x140261025\nxorps   xmm0, xmm0                                                     ; +0xbb, 0x14026102b\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0xbe, 0x14026102e\nxorps   xmm1, xmm1                                                     ; +0xc3, 0x140261033\nmovdqu  [rsp+88h+var_38], xmm1                                         ; +0xc6, 0x140261036\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xcc, 0x14026103c\ninc     r8                                                             ; +0xd3, 0x140261043\ncmp     byte ptr [rax+r8], 0                                           ; +0xd6, 0x140261046\njnz     short loc_140261043                                            ; +0xdb, 0x14026104b\nmov     rdx, rax                                                       ; +0xdd, 0x14026104d\nlea     rcx, [rsp+88h+Buf2]                                            ; +0xe0, 0x140261050\ncall    sub_14003D230                                                  ; +0xe5, 0x140261055\nnop                                                                    ; +0xea, 0x14026105a\nlea     rdx, [rsp+88h+Buf2]                                            ; +0xeb, 0x14026105b\nmov     rcx, [r14+398h]                                                ; +0xf0, 0x140261060\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 &) ; +0xf7, 0x140261067\nnop                                                                    ; +0xfd, 0x14026106d\nmov     rdx, qword ptr [rsp+88h+var_38+8]                              ; +0xfe, 0x14026106e\ncmp     rdx, 0Fh                                                       ; +0x103, 0x140261073\njbe     short loc_1402610C2                                            ; +0x107, 0x140261077\ninc     rdx                                                            ; +0x109, 0x140261079\nmov     rcx, qword ptr [rsp+88h+Buf2]; Block                           ; +0x10c, 0x14026107c\nmov     rax, rcx                                                       ; +0x111, 0x140261081\ncmp     rdx, 1000h                                                     ; +0x114, 0x140261084\njb      short loc_1402610BC                                            ; +0x11b, 0x14026108b\nadd     rdx, 27h ; '''                                                 ; +0x11d, 0x14026108d\nmov     rcx, [rcx-8]                                                   ; +0x121, 0x140261091\nsub     rax, rcx                                                       ; +0x125, 0x140261095\nsub     rax, 8                                                         ; +0x128, 0x140261098\ncmp     rax, 1Fh                                                       ; +0x12c, 0x14026109c\njbe     short loc_1402610BC                                            ; +0x130, 0x1402610a0\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0x132, 0x1402610a2\nxor     r9d, r9d; LineNo                                               ; +0x13b, 0x1402610ab\nxor     r8d, r8d; FileName                                             ; +0x13e, 0x1402610ae\nxor     edx, edx; FunctionName                                         ; +0x141, 0x1402610b1\nxor     ecx, ecx; Expression                                           ; +0x143, 0x1402610b3\ncall    cs:_invoke_watson                                              ; +0x145, 0x1402610b5\nalign 4                                                                ; +0x14b, 0x1402610bb\ncall    j_j_free                                                       ; +0x14c, 0x1402610bc\nnop                                                                    ; +0x151, 0x1402610c1\nmov     rcx, rbx                                                       ; +0x152, 0x1402610c2\ncall    sub_14003D310                                                  ; +0x155, 0x1402610c5\nnop                                                                    ; +0x15a, 0x1402610ca\nmov     rcx, rdi                                                       ; +0x15b, 0x1402610cb\ncall    sub_14003D310                                                  ; +0x15e, 0x1402610ce\nmov     rcx, [rsp+88h+var_28]                                          ; +0x163, 0x1402610d3\nxor     rcx, rsp; StackCookie                                          ; +0x168, 0x1402610d8\ncall    __security_check_cookie                                        ; +0x16b, 0x1402610db\nmov     rbx, [rsp+88h+arg_18]                                          ; +0x170, 0x1402610e0\nadd     rsp, 70h                                                       ; +0x178, 0x1402610e8\npop     r14                                                            ; +0x17c, 0x1402610ec\npop     rdi                                                            ; +0x17e, 0x1402610ee\npop     rbp                                                            ; +0x17f, 0x1402610ef\nretn                                                                   ; +0x180, 0x1402610f0", "xrefs": ["GameLevelManager::handleIt @ 0x140219de6", "<???> @ 0x14091c7d8"], "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"}