{"type": "func", "start": 5370942848, "end": 5370943432, "name": "GameLevelManager::storeSearchResult", "pseudocode": "// \n// GameLevelManager::storeSearchResult from 0x140221580 to 0x1402217c8 (584 bytes)\n// \n// 10 xrefs:\n// > GameLevelManager::onGetOnlineLevelsCompleted @ 0x14022bee2\n// > GameLevelManager::onGetMapPacksCompleted @ 0x14022cf89\n// > GameLevelManager::onGetLevelListsCompleted @ 0x14022e1fa\n// > GameLevelManager::onGetEditorSoundsCompleted @ 0x14022f290\n// > GameLevelManager::onGetGauntletsCompleted @ 0x140231342\n// > GameLevelManager::onGetLeaderboardScoresCompleted @ 0x14023873c\n// > GameLevelManager::onGetLevelLeaderboardCompleted @ 0x1402396da\n// > GameLevelManager::onGetTopArtistsCompleted @ 0x140239e83\n// > GameLevelManager::onGetUsersCompleted @ 0x14023a509\n// > <???> @ 0x14091bbb4\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:24 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall GameLevelManager::storeSearchResult(__int64 a1, __int64 a2, _QWORD *a3, _BYTE *a4)\n{\n  size_t v8; // rbx\n  size_t v9; // r8\n  void *v10; // rcx\n  size_t v11; // r8\n  _BYTE *v12; // rdx\n  __int64 v13; // rbx\n  __int64 v14; // rax\n  void *v15; // rcx\n  void *v16; // rcx\n  void *Block[2]; // [rsp+38h] [rbp-70h] BYREF\n  __m128i si128; // [rsp+48h] [rbp-60h]\n  void *v19[2]; // [rsp+58h] [rbp-50h] BYREF\n  __int128 v20; // [rsp+68h] [rbp-40h]\n\n  if ( a2 )\n  {\n    GameLevelManager::makeTimeStamp(a1, a4);\n    *(_OWORD *)Block = 0;\n    si128 = 0;\n    v8 = -1;\n    v9 = -1;\n    do\n      ++v9;\n    while ( a4[v9] );\n    sub_14003D230(Block, a4, v9);\n    cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 1152), a2, Block);\n    if ( si128.m128i_i64[1] > 0xFuLL )\n    {\n      v10 = Block[0];\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v10 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v10);\n    }\n    *(_OWORD *)v19 = 0;\n    v20 = 0;\n    v11 = -1;\n    do\n      ++v11;\n    while ( a4[v11] );\n    sub_14003D230(v19, a4, v11);\n    v12 = a3;\n    if ( a3[3] > 0xFu )\n      v12 = (_BYTE *)*a3;\n    *(_OWORD *)Block = 0;\n    si128 = 0;\n    do\n      ++v8;\n    while ( v12[v8] );\n    sub_14003D230(Block, v12, v8);\n    v13 = *(_QWORD *)(a1 + 1160);\n    v14 = cocos2d::CCString::create(Block);\n    cocos2d::CCDictionary::setObject(v13, v14, v19);\n    if ( si128.m128i_i64[1] > 0xFuLL )\n    {\n      v15 = Block[0];\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v15 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v15);\n    }\n    si128 = _mm_load_si128((const __m128i *)&Size);\n    LOBYTE(Block[0]) = 0;\n    if ( *((_QWORD *)&v20 + 1) > 0xFu )\n    {\n      v16 = v19[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v20 + 1) + 1LL) >= 0x1000 )\n      {\n        v16 = *((void **)v19[0] - 1);\n        if ( (unsigned __int64)((char *)v19[0] - (char *)v16 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v16);\n    }\n  }\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::storeSearchResult from 0x140221580 to 0x1402217c8 (584 bytes)\n; \n; 10 xrefs:\n; > GameLevelManager::onGetOnlineLevelsCompleted @ 0x14022bee2\n; > GameLevelManager::onGetMapPacksCompleted @ 0x14022cf89\n; > GameLevelManager::onGetLevelListsCompleted @ 0x14022e1fa\n; > GameLevelManager::onGetEditorSoundsCompleted @ 0x14022f290\n; > GameLevelManager::onGetGauntletsCompleted @ 0x140231342\n; > GameLevelManager::onGetLeaderboardScoresCompleted @ 0x14023873c\n; > GameLevelManager::onGetLevelLeaderboardCompleted @ 0x1402396da\n; > GameLevelManager::onGetTopArtistsCompleted @ 0x140239e83\n; > GameLevelManager::onGetUsersCompleted @ 0x14023a509\n; > <???> @ 0x14091bbb4\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:24 +0000\n; \npush    rbx                                                            ; +0x0, 0x140221580\npush    rbp                                                            ; +0x2, 0x140221582\npush    rsi                                                            ; +0x3, 0x140221583\npush    rdi                                                            ; +0x4, 0x140221584\npush    r14                                                            ; +0x5, 0x140221585\nsub     rsp, 80h                                                       ; +0x7, 0x140221587\nmov     rax, cs:__security_cookie                                      ; +0xe, 0x14022158e\nxor     rax, rsp                                                       ; +0x15, 0x140221595\nmov     [rsp+0A8h+var_30], rax                                         ; +0x18, 0x140221598\nmov     rdi, r9                                                        ; +0x1d, 0x14022159d\nmov     rsi, r8                                                        ; +0x20, 0x1402215a0\nmov     rbp, rdx                                                       ; +0x23, 0x1402215a3\nmov     r14, rcx                                                       ; +0x26, 0x1402215a6\nmov     [rsp+0A8h+var_78], r8                                          ; +0x29, 0x1402215a9\ntest    rdx, rdx                                                       ; +0x2e, 0x1402215ae\njz      loc_1402217A5                                                  ; +0x31, 0x1402215b1\nmov     rdx, r9                                                        ; +0x37, 0x1402215b7\ncall    GameLevelManager__makeTimeStamp                                ; +0x3a, 0x1402215ba\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x1402215bf\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x42, 0x1402215c2\nxorps   xmm1, xmm1                                                     ; +0x47, 0x1402215c7\nmovdqu  [rsp+0A8h+var_60], xmm1                                        ; +0x4a, 0x1402215ca\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x50, 0x1402215d0\nmov     r8, rbx                                                        ; +0x57, 0x1402215d7\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x1402215da\ninc     r8                                                             ; +0x60, 0x1402215e0\ncmp     byte ptr [rdi+r8], 0                                           ; +0x63, 0x1402215e3\njnz     short loc_1402215E0                                            ; +0x68, 0x1402215e8\nmov     rdx, rdi                                                       ; +0x6a, 0x1402215ea\nlea     rcx, [rsp+0A8h+Block]                                          ; +0x6d, 0x1402215ed\ncall    sub_14003D230                                                  ; +0x72, 0x1402215f2\nnop                                                                    ; +0x77, 0x1402215f7\nlea     r8, [rsp+0A8h+Block]                                           ; +0x78, 0x1402215f8\nmov     rdx, rbp                                                       ; +0x7d, 0x1402215fd\nmov     rcx, [r14+480h]                                                ; +0x80, 0x140221600\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 &) ; +0x87, 0x140221607\nnop                                                                    ; +0x8d, 0x14022160d\nmov     rdx, qword ptr [rsp+0A8h+var_60+8]                             ; +0x8e, 0x14022160e\ncmp     rdx, 0Fh                                                       ; +0x93, 0x140221613\njbe     short loc_140221661                                            ; +0x97, 0x140221617\ninc     rdx                                                            ; +0x99, 0x140221619\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0x9c, 0x14022161c\nmov     rax, rcx                                                       ; +0xa1, 0x140221621\ncmp     rdx, 1000h                                                     ; +0xa4, 0x140221624\njb      short loc_14022165C                                            ; +0xab, 0x14022162b\nadd     rdx, 27h ; '''                                                 ; +0xad, 0x14022162d\nmov     rcx, [rcx-8]                                                   ; +0xb1, 0x140221631\nsub     rax, rcx                                                       ; +0xb5, 0x140221635\nsub     rax, 8                                                         ; +0xb8, 0x140221638\ncmp     rax, 1Fh                                                       ; +0xbc, 0x14022163c\njbe     short loc_14022165C                                            ; +0xc0, 0x140221640\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0xc2, 0x140221642\nxor     r9d, r9d; LineNo                                               ; +0xcb, 0x14022164b\nxor     r8d, r8d; FileName                                             ; +0xce, 0x14022164e\nxor     edx, edx; FunctionName                                         ; +0xd1, 0x140221651\nxor     ecx, ecx; Expression                                           ; +0xd3, 0x140221653\ncall    cs:_invoke_watson                                              ; +0xd5, 0x140221655\nalign 4                                                                ; +0xdb, 0x14022165b\ncall    j_j_free                                                       ; +0xdc, 0x14022165c\nxorps   xmm0, xmm0                                                     ; +0xe1, 0x140221661\nmovups  xmmword ptr [rsp+0A8h+var_50], xmm0                            ; +0xe4, 0x140221664\nxorps   xmm1, xmm1                                                     ; +0xe9, 0x140221669\nmovdqu  [rsp+0A8h+var_40], xmm1                                        ; +0xec, 0x14022166c\nmov     r8, rbx                                                        ; +0xf2, 0x140221672\ninc     r8                                                             ; +0xf5, 0x140221675\ncmp     byte ptr [rdi+r8], 0                                           ; +0xf8, 0x140221678\njnz     short loc_140221675                                            ; +0xfd, 0x14022167d\nmov     rdx, rdi                                                       ; +0xff, 0x14022167f\nlea     rcx, [rsp+0A8h+var_50]                                         ; +0x102, 0x140221682\ncall    sub_14003D230                                                  ; +0x107, 0x140221687\nnop                                                                    ; +0x10c, 0x14022168c\nmov     rdx, rsi                                                       ; +0x10d, 0x14022168d\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x110, 0x140221690\njbe     short loc_14022169A                                            ; +0x115, 0x140221695\nmov     rdx, [rsi]                                                     ; +0x117, 0x140221697\nxorps   xmm0, xmm0                                                     ; +0x11a, 0x14022169a\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x11d, 0x14022169d\nxorps   xmm1, xmm1                                                     ; +0x122, 0x1402216a2\nmovdqu  [rsp+0A8h+var_60], xmm1                                        ; +0x125, 0x1402216a5\nnop     dword ptr [rax+rax+00h]                                        ; +0x12b, 0x1402216ab\ninc     rbx                                                            ; +0x130, 0x1402216b0\ncmp     byte ptr [rdx+rbx], 0                                          ; +0x133, 0x1402216b3\njnz     short loc_1402216B0                                            ; +0x137, 0x1402216b7\nmov     r8, rbx                                                        ; +0x139, 0x1402216b9\nlea     rcx, [rsp+0A8h+Block]                                          ; +0x13c, 0x1402216bc\ncall    sub_14003D230                                                  ; +0x141, 0x1402216c1\nnop                                                                    ; +0x146, 0x1402216c6\nmov     rbx, [r14+488h]                                                ; +0x147, 0x1402216c7\nlea     rcx, [rsp+0A8h+Block]                                          ; +0x14e, 0x1402216ce\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x153, 0x1402216d3\nmov     rdx, rax                                                       ; +0x159, 0x1402216d9\nlea     r8, [rsp+0A8h+var_50]                                          ; +0x15c, 0x1402216dc\nmov     rcx, rbx                                                       ; +0x161, 0x1402216e1\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 &) ; +0x164, 0x1402216e4\nnop                                                                    ; +0x16a, 0x1402216ea\nmov     rdx, qword ptr [rsp+0A8h+var_60+8]                             ; +0x16b, 0x1402216eb\ncmp     rdx, 0Fh                                                       ; +0x170, 0x1402216f0\njbe     short loc_14022173E                                            ; +0x174, 0x1402216f4\ninc     rdx                                                            ; +0x176, 0x1402216f6\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0x179, 0x1402216f9\nmov     rax, rcx                                                       ; +0x17e, 0x1402216fe\ncmp     rdx, 1000h                                                     ; +0x181, 0x140221701\njb      short loc_140221739                                            ; +0x188, 0x140221708\nadd     rdx, 27h ; '''                                                 ; +0x18a, 0x14022170a\nmov     rcx, [rcx-8]                                                   ; +0x18e, 0x14022170e\nsub     rax, rcx                                                       ; +0x192, 0x140221712\nsub     rax, 8                                                         ; +0x195, 0x140221715\ncmp     rax, 1Fh                                                       ; +0x199, 0x140221719\njbe     short loc_140221739                                            ; +0x19d, 0x14022171d\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0x19f, 0x14022171f\nxor     r9d, r9d; LineNo                                               ; +0x1a8, 0x140221728\nxor     r8d, r8d; FileName                                             ; +0x1ab, 0x14022172b\nxor     edx, edx; FunctionName                                         ; +0x1ae, 0x14022172e\nxor     ecx, ecx; Expression                                           ; +0x1b0, 0x140221730\ncall    cs:_invoke_watson                                              ; +0x1b2, 0x140221732\ndb 0CCh                                                                ; +0x1b8, 0x140221738\ncall    j_j_free                                                       ; +0x1b9, 0x140221739\nmovdqa  xmm0, cs:Size                                                  ; +0x1be, 0x14022173e\nmovdqu  [rsp+0A8h+var_60], xmm0                                        ; +0x1c6, 0x140221746\nmov     byte ptr [rsp+0A8h+Block], 0                                   ; +0x1cc, 0x14022174c\nmov     rdx, qword ptr [rsp+0A8h+var_40+8]                             ; +0x1d1, 0x140221751\ncmp     rdx, 0Fh                                                       ; +0x1d6, 0x140221756\njbe     short loc_1402217A5                                            ; +0x1da, 0x14022175a\ninc     rdx                                                            ; +0x1dc, 0x14022175c\nmov     rcx, [rsp+0A8h+var_50]; Block                                  ; +0x1df, 0x14022175f\nmov     rax, rcx                                                       ; +0x1e4, 0x140221764\ncmp     rdx, 1000h                                                     ; +0x1e7, 0x140221767\njb      short loc_14022179F                                            ; +0x1ee, 0x14022176e\nadd     rdx, 27h ; '''                                                 ; +0x1f0, 0x140221770\nmov     rcx, [rcx-8]                                                   ; +0x1f4, 0x140221774\nsub     rax, rcx                                                       ; +0x1f8, 0x140221778\nsub     rax, 8                                                         ; +0x1fb, 0x14022177b\ncmp     rax, 1Fh                                                       ; +0x1ff, 0x14022177f\njbe     short loc_14022179F                                            ; +0x203, 0x140221783\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0x205, 0x140221785\nxor     r9d, r9d; LineNo                                               ; +0x20e, 0x14022178e\nxor     r8d, r8d; FileName                                             ; +0x211, 0x140221791\nxor     edx, edx; FunctionName                                         ; +0x214, 0x140221794\nxor     ecx, ecx; Expression                                           ; +0x216, 0x140221796\ncall    cs:_invoke_watson                                              ; +0x218, 0x140221798\ndb 0CCh                                                                ; +0x21e, 0x14022179e\ncall    j_j_free                                                       ; +0x21f, 0x14022179f\nnop                                                                    ; +0x224, 0x1402217a4\nmov     rcx, rsi                                                       ; +0x225, 0x1402217a5\ncall    sub_14003D310                                                  ; +0x228, 0x1402217a8\nmov     rcx, [rsp+0A8h+var_30]                                         ; +0x22d, 0x1402217ad\nxor     rcx, rsp; StackCookie                                          ; +0x232, 0x1402217b2\ncall    __security_check_cookie                                        ; +0x235, 0x1402217b5\nadd     rsp, 80h                                                       ; +0x23a, 0x1402217ba\npop     r14                                                            ; +0x241, 0x1402217c1\npop     rdi                                                            ; +0x243, 0x1402217c3\npop     rsi                                                            ; +0x244, 0x1402217c4\npop     rbp                                                            ; +0x245, 0x1402217c5\npop     rbx                                                            ; +0x246, 0x1402217c6\nretn                                                                   ; +0x247, 0x1402217c7", "xrefs": ["GameLevelManager::onGetOnlineLevelsCompleted @ 0x14022bee2", "GameLevelManager::onGetMapPacksCompleted @ 0x14022cf89", "GameLevelManager::onGetLevelListsCompleted @ 0x14022e1fa", "GameLevelManager::onGetEditorSoundsCompleted @ 0x14022f290", "GameLevelManager::onGetGauntletsCompleted @ 0x140231342", "GameLevelManager::onGetLeaderboardScoresCompleted @ 0x14023873c", "GameLevelManager::onGetLevelLeaderboardCompleted @ 0x1402396da", "GameLevelManager::onGetTopArtistsCompleted @ 0x140239e83", "GameLevelManager::onGetUsersCompleted @ 0x14023a509", "<???> @ 0x14091bbb4"], "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"}