{"type": "func", "start": 5371737856, "end": 5371738053, "name": "GameStatsManager::storeUserCoin", "pseudocode": "// \n// GameStatsManager::storeUserCoin from 0x1402e3700 to 0x1402e37c5 (197 bytes)\n// \n// 4 xrefs:\n// > GameLevelManager::updateLevelRewards @ 0x14021dfe3\n// > GameStatsManager::dataLoaded @ 0x1402f772c\n// > GJBaseGameLayer::processItems @ 0x14031d94d\n// > <???> @ 0x14091df00\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::storeUserCoin(__int64 a1, _BYTE *a2)\n{\n  size_t v3; // r8\n  void *v4; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v6; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v6 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003D230(Block, a2, v3);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 720), *(_QWORD *)(a1 + 328), Block);\n  if ( *((_QWORD *)&v6 + 1) > 0xFu )\n  {\n    v4 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v6 + 1) + 1LL) >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v4);\n  }\n}", "assembly": "; \n; GameStatsManager::storeUserCoin from 0x1402e3700 to 0x1402e37c5 (197 bytes)\n; \n; 4 xrefs:\n; > GameLevelManager::updateLevelRewards @ 0x14021dfe3\n; > GameStatsManager::dataLoaded @ 0x1402f772c\n; > GJBaseGameLayer::processItems @ 0x14031d94d\n; > <???> @ 0x14091df00\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, 0x1402e3700\nsub     rsp, 60h                                                       ; +0x2, 0x1402e3702\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402e3706\nxor     rax, rsp                                                       ; +0xd, 0x1402e370d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x1402e3710\nmov     rbx, rcx                                                       ; +0x15, 0x1402e3715\nxorps   xmm0, xmm0                                                     ; +0x18, 0x1402e3718\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x1b, 0x1402e371b\nxorps   xmm1, xmm1                                                     ; +0x20, 0x1402e3720\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x23, 0x1402e3723\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x1402e3729\ninc     r8                                                             ; +0x30, 0x1402e3730\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x1402e3733\njnz     short loc_1402E3730                                            ; +0x38, 0x1402e3738\nlea     rcx, [rsp+68h+Block]                                           ; +0x3a, 0x1402e373a\ncall    sub_14003D230                                                  ; +0x3f, 0x1402e373f\nnop                                                                    ; +0x44, 0x1402e3744\nlea     r8, [rsp+68h+Block]                                            ; +0x45, 0x1402e3745\nmov     rdx, [rbx+148h]                                                ; +0x4a, 0x1402e374a\nmov     rcx, [rbx+2D0h]                                                ; +0x51, 0x1402e3751\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 &) ; +0x58, 0x1402e3758\nnop                                                                    ; +0x5e, 0x1402e375e\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x5f, 0x1402e375f\ncmp     rdx, 0Fh                                                       ; +0x64, 0x1402e3764\njbe     short loc_1402E37B2                                            ; +0x68, 0x1402e3768\ninc     rdx                                                            ; +0x6a, 0x1402e376a\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x6d, 0x1402e376d\nmov     rax, rcx                                                       ; +0x72, 0x1402e3772\ncmp     rdx, 1000h                                                     ; +0x75, 0x1402e3775\njb      short loc_1402E37AD                                            ; +0x7c, 0x1402e377c\nadd     rdx, 27h ; '''                                                 ; +0x7e, 0x1402e377e\nmov     rcx, [rcx-8]                                                   ; +0x82, 0x1402e3782\nsub     rax, rcx                                                       ; +0x86, 0x1402e3786\nsub     rax, 8                                                         ; +0x89, 0x1402e3789\ncmp     rax, 1Fh                                                       ; +0x8d, 0x1402e378d\njbe     short loc_1402E37AD                                            ; +0x91, 0x1402e3791\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x93, 0x1402e3793\nxor     r9d, r9d; LineNo                                               ; +0x9c, 0x1402e379c\nxor     r8d, r8d; FileName                                             ; +0x9f, 0x1402e379f\nxor     edx, edx; FunctionName                                         ; +0xa2, 0x1402e37a2\nxor     ecx, ecx; Expression                                           ; +0xa4, 0x1402e37a4\ncall    cs:_invoke_watson                                              ; +0xa6, 0x1402e37a6\ndb 0CCh                                                                ; +0xac, 0x1402e37ac\ncall    j_j_free                                                       ; +0xad, 0x1402e37ad\nmov     rcx, [rsp+68h+var_18]                                          ; +0xb2, 0x1402e37b2\nxor     rcx, rsp; StackCookie                                          ; +0xb7, 0x1402e37b7\ncall    __security_check_cookie                                        ; +0xba, 0x1402e37ba\nadd     rsp, 60h                                                       ; +0xbf, 0x1402e37bf\npop     rbx                                                            ; +0xc3, 0x1402e37c3\nretn                                                                   ; +0xc4, 0x1402e37c4", "xrefs": ["GameLevelManager::updateLevelRewards @ 0x14021dfe3", "GameStatsManager::dataLoaded @ 0x1402f772c", "GJBaseGameLayer::processItems @ 0x14031d94d", "<???> @ 0x14091df00"], "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"}