{"type": "func", "start": 5371746112, "end": 5371746349, "name": "GameStatsManager::storeQueuedChallenge", "pseudocode": "// \n// GameStatsManager::storeQueuedChallenge from 0x1402e5740 to 0x1402e582d (237 bytes)\n// \n// 4 xrefs:\n// > GameLevelManager::onGetGJChallengesCompleted @ 0x14025f362\n// > GameStatsManager::processChallengeQueue @ 0x1402e65ec\n// > <???> @ 0x14091dfa8\n// > <???> @ 0x14091dfb4\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:50 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameStatsManager::storeQueuedChallenge(__int64 a1, int a2, __int64 a3)\n{\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  size_t v7; // r8\n  void *v8; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v10; // [rsp+40h] [rbp-28h]\n\n  *(_DWORD *)(a3 + 104) = a2;\n  v5 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);\n  CString = cocos2d::CCString::getCString(v5);\n  *(_OWORD *)Block = 0;\n  v10 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( CString[v7] );\n  sub_14003D230(Block, CString, v7);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 560), a3, Block);\n  if ( *((_QWORD *)&v10 + 1) > 0xFu )\n  {\n    v8 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v10 + 1) + 1LL) >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n}", "assembly": "; \n; GameStatsManager::storeQueuedChallenge from 0x1402e5740 to 0x1402e582d (237 bytes)\n; \n; 4 xrefs:\n; > GameLevelManager::onGetGJChallengesCompleted @ 0x14025f362\n; > GameStatsManager::processChallengeQueue @ 0x1402e65ec\n; > <???> @ 0x14091dfa8\n; > <???> @ 0x14091dfb4\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:50 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1402e5740\npush    rdi                                                            ; +0x5, 0x1402e5745\nsub     rsp, 60h                                                       ; +0x6, 0x1402e5746\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402e574a\nxor     rax, rsp                                                       ; +0x11, 0x1402e5751\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1402e5754\nmov     rbx, r8                                                        ; +0x19, 0x1402e5759\nmov     rdi, rcx                                                       ; +0x1c, 0x1402e575c\nmov     [r8+68h], edx                                                  ; +0x1f, 0x1402e575f\nlea     rcx, word_1406ED6F8                                            ; +0x23, 0x1402e5763\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2a, 0x1402e576a\nmov     rcx, rax                                                       ; +0x30, 0x1402e5770\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x33, 0x1402e5773\nxorps   xmm0, xmm0                                                     ; +0x39, 0x1402e5779\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x3c, 0x1402e577c\nxorps   xmm1, xmm1                                                     ; +0x41, 0x1402e5781\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x44, 0x1402e5784\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4a, 0x1402e578a\ninc     r8                                                             ; +0x51, 0x1402e5791\ncmp     byte ptr [rax+r8], 0                                           ; +0x54, 0x1402e5794\njnz     short loc_1402E5791                                            ; +0x59, 0x1402e5799\nmov     rdx, rax                                                       ; +0x5b, 0x1402e579b\nlea     rcx, [rsp+68h+Block]                                           ; +0x5e, 0x1402e579e\ncall    sub_14003D230                                                  ; +0x63, 0x1402e57a3\nnop                                                                    ; +0x68, 0x1402e57a8\nlea     r8, [rsp+68h+Block]                                            ; +0x69, 0x1402e57a9\nmov     rdx, rbx                                                       ; +0x6e, 0x1402e57ae\nmov     rcx, [rdi+230h]                                                ; +0x71, 0x1402e57b1\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 &) ; +0x78, 0x1402e57b8\nnop                                                                    ; +0x7e, 0x1402e57be\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x7f, 0x1402e57bf\ncmp     rdx, 0Fh                                                       ; +0x84, 0x1402e57c4\njbe     short loc_1402E5812                                            ; +0x88, 0x1402e57c8\ninc     rdx                                                            ; +0x8a, 0x1402e57ca\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x8d, 0x1402e57cd\nmov     rax, rcx                                                       ; +0x92, 0x1402e57d2\ncmp     rdx, 1000h                                                     ; +0x95, 0x1402e57d5\njb      short loc_1402E580D                                            ; +0x9c, 0x1402e57dc\nadd     rdx, 27h ; '''                                                 ; +0x9e, 0x1402e57de\nmov     rcx, [rcx-8]                                                   ; +0xa2, 0x1402e57e2\nsub     rax, rcx                                                       ; +0xa6, 0x1402e57e6\nsub     rax, 8                                                         ; +0xa9, 0x1402e57e9\ncmp     rax, 1Fh                                                       ; +0xad, 0x1402e57ed\njbe     short loc_1402E580D                                            ; +0xb1, 0x1402e57f1\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xb3, 0x1402e57f3\nxor     r9d, r9d; LineNo                                               ; +0xbc, 0x1402e57fc\nxor     r8d, r8d; FileName                                             ; +0xbf, 0x1402e57ff\nxor     edx, edx; FunctionName                                         ; +0xc2, 0x1402e5802\nxor     ecx, ecx; Expression                                           ; +0xc4, 0x1402e5804\ncall    cs:_invoke_watson                                              ; +0xc6, 0x1402e5806\ndb 0CCh                                                                ; +0xcc, 0x1402e580c\ncall    j_j_free                                                       ; +0xcd, 0x1402e580d\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd2, 0x1402e5812\nxor     rcx, rsp; StackCookie                                          ; +0xd7, 0x1402e5817\ncall    __security_check_cookie                                        ; +0xda, 0x1402e581a\nmov     rbx, [rsp+68h+arg_18]                                          ; +0xdf, 0x1402e581f\nadd     rsp, 60h                                                       ; +0xe7, 0x1402e5827\npop     rdi                                                            ; +0xeb, 0x1402e582b\nretn                                                                   ; +0xec, 0x1402e582c", "xrefs": ["GameLevelManager::onGetGJChallengesCompleted @ 0x14025f362", "GameStatsManager::processChallengeQueue @ 0x1402e65ec", "<???> @ 0x14091dfa8", "<???> @ 0x14091dfb4"], "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"}