{"type": "func", "start": 5371738496, "end": 5371738718, "name": "GameStatsManager::storeSecretCoin", "pseudocode": "// \n// GameStatsManager::storeSecretCoin from 0x1402e3980 to 0x1402e3a5e (222 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::processItems @ 0x14031db58\n// > LevelPage::ccTouchBegan @ 0x140447ac2\n// > SecretLayer::onSubmit @ 0x14057431b\n// > SecretLayer2::onSubmit @ 0x14057bb0a\n// > <???> @ 0x14091df24\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:29:49 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameStatsManager::storeSecretCoin(__int64 a1, const char *a2)\n{\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  size_t v5; // r8\n  void *v6; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+40h] [rbp-28h]\n\n  v3 = cocos2d::CCString::createWithFormat(\"unique_%s\", a2);\n  CString = cocos2d::CCString::getCString(v3);\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v5 = -1;\n  do\n    ++v5;\n  while ( CString[v5] );\n  sub_14003D230(Block, CString, v5);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 576), *(_QWORD *)(a1 + 328), Block);\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n}", "assembly": "; \n; GameStatsManager::storeSecretCoin from 0x1402e3980 to 0x1402e3a5e (222 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::processItems @ 0x14031db58\n; > LevelPage::ccTouchBegan @ 0x140447ac2\n; > SecretLayer::onSubmit @ 0x14057431b\n; > SecretLayer2::onSubmit @ 0x14057bb0a\n; > <???> @ 0x14091df24\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:29:49 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402e3980\nsub     rsp, 60h                                                       ; +0x2, 0x1402e3982\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402e3986\nxor     rax, rsp                                                       ; +0xd, 0x1402e398d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x1402e3990\nmov     rbx, rcx                                                       ; +0x15, 0x1402e3995\nlea     rcx, aUniqueS; \"unique_%s\"                                     ; +0x18, 0x1402e3998\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1f, 0x1402e399f\nmov     rcx, rax                                                       ; +0x25, 0x1402e39a5\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x28, 0x1402e39a8\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x1402e39ae\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x31, 0x1402e39b1\nxorps   xmm1, xmm1                                                     ; +0x36, 0x1402e39b6\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x39, 0x1402e39b9\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x3f, 0x1402e39bf\ninc     r8                                                             ; +0x46, 0x1402e39c6\ncmp     byte ptr [rax+r8], 0                                           ; +0x49, 0x1402e39c9\njnz     short loc_1402E39C6                                            ; +0x4e, 0x1402e39ce\nmov     rdx, rax                                                       ; +0x50, 0x1402e39d0\nlea     rcx, [rsp+68h+Block]                                           ; +0x53, 0x1402e39d3\ncall    sub_14003D230                                                  ; +0x58, 0x1402e39d8\nnop                                                                    ; +0x5d, 0x1402e39dd\nlea     r8, [rsp+68h+Block]                                            ; +0x5e, 0x1402e39de\nmov     rdx, [rbx+148h]                                                ; +0x63, 0x1402e39e3\nmov     rcx, [rbx+240h]                                                ; +0x6a, 0x1402e39ea\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x71, 0x1402e39f1\nnop                                                                    ; +0x77, 0x1402e39f7\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x78, 0x1402e39f8\ncmp     rdx, 0Fh                                                       ; +0x7d, 0x1402e39fd\njbe     short loc_1402E3A4B                                            ; +0x81, 0x1402e3a01\ninc     rdx                                                            ; +0x83, 0x1402e3a03\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x86, 0x1402e3a06\nmov     rax, rcx                                                       ; +0x8b, 0x1402e3a0b\ncmp     rdx, 1000h                                                     ; +0x8e, 0x1402e3a0e\njb      short loc_1402E3A46                                            ; +0x95, 0x1402e3a15\nadd     rdx, 27h ; '''                                                 ; +0x97, 0x1402e3a17\nmov     rcx, [rcx-8]                                                   ; +0x9b, 0x1402e3a1b\nsub     rax, rcx                                                       ; +0x9f, 0x1402e3a1f\nsub     rax, 8                                                         ; +0xa2, 0x1402e3a22\ncmp     rax, 1Fh                                                       ; +0xa6, 0x1402e3a26\njbe     short loc_1402E3A46                                            ; +0xaa, 0x1402e3a2a\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xac, 0x1402e3a2c\nxor     r9d, r9d; LineNo                                               ; +0xb5, 0x1402e3a35\nxor     r8d, r8d; FileName                                             ; +0xb8, 0x1402e3a38\nxor     edx, edx; FunctionName                                         ; +0xbb, 0x1402e3a3b\nxor     ecx, ecx; Expression                                           ; +0xbd, 0x1402e3a3d\ncall    cs:_invoke_watson                                              ; +0xbf, 0x1402e3a3f\nalign 2                                                                ; +0xc5, 0x1402e3a45\ncall    j_j_free                                                       ; +0xc6, 0x1402e3a46\nmov     rcx, [rsp+68h+var_18]                                          ; +0xcb, 0x1402e3a4b\nxor     rcx, rsp; StackCookie                                          ; +0xd0, 0x1402e3a50\ncall    __security_check_cookie                                        ; +0xd3, 0x1402e3a53\nadd     rsp, 60h                                                       ; +0xd8, 0x1402e3a58\npop     rbx                                                            ; +0xdc, 0x1402e3a5c\nretn                                                                   ; +0xdd, 0x1402e3a5d", "xrefs": ["GJBaseGameLayer::processItems @ 0x14031db58", "LevelPage::ccTouchBegan @ 0x140447ac2", "SecretLayer::onSubmit @ 0x14057431b", "SecretLayer2::onSubmit @ 0x14057bb0a", "<???> @ 0x14091df24"], "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"}