{"type": "func", "start": 5370674592, "end": 5370674770, "name": "GameStatsManager::storeUserCoin", "pseudocode": "// \n// GameStatsManager::storeUserCoin from 0x1401dfda0 to 0x1401dfe52 (178 bytes)\n// \n// 4 xrefs:\n// > GameLevelManager::updateLevelRewards @ 0x1401465a7\n// > GameStatsManager::dataLoaded @ 0x1401f2a9c\n// > GJBaseGameLayer::processItems @ 0x140216469\n// > <???> @ 0x1406cc498\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid GameStatsManager::storeUserCoin(GameStatsManager *a1, const char *a2)\n{\n  size_t v3; // r8\n  void *v4; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v6; // [rsp+30h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v6 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003A930(Block, a2, v3);\n  cocos2d::CCDictionary::setObject(a1->m_verifiedUserCoins, a1->m_trueString, 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        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v4);\n  }\n}", "assembly": "; \n; GameStatsManager::storeUserCoin from 0x1401dfda0 to 0x1401dfe52 (178 bytes)\n; \n; 4 xrefs:\n; > GameLevelManager::updateLevelRewards @ 0x1401465a7\n; > GameStatsManager::dataLoaded @ 0x1401f2a9c\n; > GJBaseGameLayer::processItems @ 0x140216469\n; > <???> @ 0x1406cc498\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1401dfda0\nsub     rsp, 50h                                                       ; +0x2, 0x1401dfda2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1401dfda6\nxor     rax, rsp                                                       ; +0xd, 0x1401dfdad\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x1401dfdb0\nmov     rbx, rcx                                                       ; +0x15, 0x1401dfdb5\nxorps   xmm0, xmm0                                                     ; +0x18, 0x1401dfdb8\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x1b, 0x1401dfdbb\nxorps   xmm1, xmm1                                                     ; +0x20, 0x1401dfdc0\nmovdqu  [rsp+58h+var_28], xmm1                                         ; +0x23, 0x1401dfdc3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x1401dfdc9\ninc     r8                                                             ; +0x30, 0x1401dfdd0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x1401dfdd3\njnz     short loc_1401DFDD0                                            ; +0x38, 0x1401dfdd8\nlea     rcx, [rsp+58h+Block]                                           ; +0x3a, 0x1401dfdda\ncall    sub_14003A930                                                  ; +0x3f, 0x1401dfddf\nnop                                                                    ; +0x44, 0x1401dfde4\nlea     r8, [rsp+58h+Block]                                            ; +0x45, 0x1401dfde5\nmov     rdx, [rbx+148h]                                                ; +0x4a, 0x1401dfdea\nmov     rcx, [rbx+2D0h]                                                ; +0x51, 0x1401dfdf1\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, 0x1401dfdf8\nnop                                                                    ; +0x5e, 0x1401dfdfe\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0x5f, 0x1401dfdff\ncmp     rdx, 0Fh                                                       ; +0x64, 0x1401dfe04\njbe     short loc_1401DFE3F                                            ; +0x68, 0x1401dfe08\ninc     rdx                                                            ; +0x6a, 0x1401dfe0a\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x6d, 0x1401dfe0d\nmov     rax, rcx                                                       ; +0x72, 0x1401dfe12\ncmp     rdx, 1000h                                                     ; +0x75, 0x1401dfe15\njb      short loc_1401DFE3A                                            ; +0x7c, 0x1401dfe1c\nadd     rdx, 27h ; '''                                                 ; +0x7e, 0x1401dfe1e\nmov     rcx, [rcx-8]                                                   ; +0x82, 0x1401dfe22\nsub     rax, rcx                                                       ; +0x86, 0x1401dfe26\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x89, 0x1401dfe29\ncmp     rax, 1Fh                                                       ; +0x8d, 0x1401dfe2d\njbe     short loc_1401DFE3A                                            ; +0x91, 0x1401dfe31\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x93, 0x1401dfe33\nalign 2                                                                ; +0x99, 0x1401dfe39\ncall    j_j_free                                                       ; +0x9a, 0x1401dfe3a\nmov     rcx, [rsp+58h+var_18]                                          ; +0x9f, 0x1401dfe3f\nxor     rcx, rsp; StackCookie                                          ; +0xa4, 0x1401dfe44\ncall    __security_check_cookie                                        ; +0xa7, 0x1401dfe47\nadd     rsp, 50h                                                       ; +0xac, 0x1401dfe4c\npop     rbx                                                            ; +0xb0, 0x1401dfe50\nretn                                                                   ; +0xb1, 0x1401dfe51", "xrefs": ["GameLevelManager::updateLevelRewards @ 0x1401465a7", "GameStatsManager::dataLoaded @ 0x1401f2a9c", "GJBaseGameLayer::processItems @ 0x140216469", "<???> @ 0x1406cc498"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}