{"type": "func", "start": 5370058352, "end": 5370058876, "name": "GameLevelManager::storeSearchResult", "pseudocode": "// \n// GameLevelManager::storeSearchResult from 0x140149670 to 0x14014987c (524 bytes)\n// \n// 9 xrefs:\n// > GameLevelManager::onGetOnlineLevelsCompleted @ 0x14014ed09\n// > GameLevelManager::onGetMapPacksCompleted @ 0x14014fd67\n// > GameLevelManager::onGetLevelListsCompleted @ 0x140150e50\n// > GameLevelManager::onGetGauntletsCompleted @ 0x140151a21\n// > GameLevelManager::onGetLeaderboardScoresCompleted @ 0x140157fe8\n// > GameLevelManager::onGetLevelLeaderboardCompleted @ 0x140158f4b\n// > GameLevelManager::onGetTopArtistsCompleted @ 0x1401596cb\n// > GameLevelManager::onGetUsersCompleted @ 0x140159d28\n// > <???> @ 0x1406ca6a4\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=4\nvoid __fastcall GameLevelManager::storeSearchResult(GameLevelManager *a1, __int64 a2, _QWORD *a3, const char *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; // rax\n  void *v14; // rcx\n  void *v15; // rcx\n  void *Block[2]; // [rsp+28h] [rbp-70h] BYREF\n  __m128i si128; // [rsp+38h] [rbp-60h]\n  void *v18[2]; // [rsp+48h] [rbp-50h] BYREF\n  __int128 v19; // [rsp+58h] [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_14003A930(Block, a4, v9);\n    cocos2d::CCDictionary::setObject(a1->m_storedLevels, 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          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v10);\n    }\n    *(_OWORD *)v18 = 0;\n    v19 = 0;\n    v11 = -1;\n    do\n      ++v11;\n    while ( a4[v11] );\n    sub_14003A930(v18, 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_14003A930(Block, v12, v8);\n    v13 = cocos2d::CCString::create(Block);\n    cocos2d::CCDictionary::setObject(a1->m_pageInfo, v13, v18);\n    if ( si128.m128i_i64[1] > 0xFuLL )\n    {\n      v14 = Block[0];\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v14 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v14);\n    }\n    si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30);\n    LOBYTE(Block[0]) = 0;\n    if ( *((_QWORD *)&v19 + 1) > 0xFu )\n    {\n      v15 = v18[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v19 + 1) + 1LL) >= 0x1000 )\n      {\n        v15 = *((void **)v18[0] - 1);\n        if ( (unsigned __int64)((char *)v18[0] - (char *)v15 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v15);\n    }\n  }\n  sub_14003A830((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::storeSearchResult from 0x140149670 to 0x14014987c (524 bytes)\n; \n; 9 xrefs:\n; > GameLevelManager::onGetOnlineLevelsCompleted @ 0x14014ed09\n; > GameLevelManager::onGetMapPacksCompleted @ 0x14014fd67\n; > GameLevelManager::onGetLevelListsCompleted @ 0x140150e50\n; > GameLevelManager::onGetGauntletsCompleted @ 0x140151a21\n; > GameLevelManager::onGetLeaderboardScoresCompleted @ 0x140157fe8\n; > GameLevelManager::onGetLevelLeaderboardCompleted @ 0x140158f4b\n; > GameLevelManager::onGetTopArtistsCompleted @ 0x1401596cb\n; > GameLevelManager::onGetUsersCompleted @ 0x140159d28\n; > <???> @ 0x1406ca6a4\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, 0x140149670\npush    rbp                                                            ; +0x2, 0x140149672\npush    rsi                                                            ; +0x3, 0x140149673\npush    rdi                                                            ; +0x4, 0x140149674\npush    r14                                                            ; +0x5, 0x140149675\nsub     rsp, 70h                                                       ; +0x7, 0x140149677\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x14014967b\nxor     rax, rsp                                                       ; +0x12, 0x140149682\nmov     [rsp+98h+var_30], rax                                          ; +0x15, 0x140149685\nmov     rdi, r9                                                        ; +0x1a, 0x14014968a\nmov     rsi, r8                                                        ; +0x1d, 0x14014968d\nmov     rbp, rdx                                                       ; +0x20, 0x140149690\nmov     r14, rcx                                                       ; +0x23, 0x140149693\nmov     [rsp+98h+var_78], r8                                           ; +0x26, 0x140149696\ntest    rdx, rdx                                                       ; +0x2b, 0x14014969b\njz      loc_14014985C                                                  ; +0x2e, 0x14014969e\nmov     rdx, r9                                                        ; +0x34, 0x1401496a4\ncall    GameLevelManager__makeTimeStamp                                ; +0x37, 0x1401496a7\nxorps   xmm0, xmm0                                                     ; +0x3c, 0x1401496ac\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x3f, 0x1401496af\nxorps   xmm1, xmm1                                                     ; +0x44, 0x1401496b4\nmovdqu  [rsp+98h+var_60], xmm1                                         ; +0x47, 0x1401496b7\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x4d, 0x1401496bd\nmov     r8, rbx                                                        ; +0x54, 0x1401496c4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x1401496c7\ninc     r8                                                             ; +0x60, 0x1401496d0\ncmp     byte ptr [rdi+r8], 0                                           ; +0x63, 0x1401496d3\njnz     short loc_1401496D0                                            ; +0x68, 0x1401496d8\nmov     rdx, rdi                                                       ; +0x6a, 0x1401496da\nlea     rcx, [rsp+98h+Block]                                           ; +0x6d, 0x1401496dd\ncall    sub_14003A930                                                  ; +0x72, 0x1401496e2\nnop                                                                    ; +0x77, 0x1401496e7\nlea     r8, [rsp+98h+Block]                                            ; +0x78, 0x1401496e8\nmov     rdx, rbp                                                       ; +0x7d, 0x1401496ed\nmov     rcx, [r14+220h]                                                ; +0x80, 0x1401496f0\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, 0x1401496f7\nnop                                                                    ; +0x8d, 0x1401496fd\nmov     rdx, qword ptr [rsp+98h+var_60+8]                              ; +0x8e, 0x1401496fe\ncmp     rdx, 0Fh                                                       ; +0x93, 0x140149703\njbe     short loc_14014973E                                            ; +0x97, 0x140149707\ninc     rdx                                                            ; +0x99, 0x140149709\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x9c, 0x14014970c\nmov     rax, rcx                                                       ; +0xa1, 0x140149711\ncmp     rdx, 1000h                                                     ; +0xa4, 0x140149714\njb      short loc_140149739                                            ; +0xab, 0x14014971b\nadd     rdx, 27h ; '''                                                 ; +0xad, 0x14014971d\nmov     rcx, [rcx-8]                                                   ; +0xb1, 0x140149721\nsub     rax, rcx                                                       ; +0xb5, 0x140149725\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xb8, 0x140149728\ncmp     rax, 1Fh                                                       ; +0xbc, 0x14014972c\njbe     short loc_140149739                                            ; +0xc0, 0x140149730\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xc2, 0x140149732\ndb 0CCh                                                                ; +0xc8, 0x140149738\ncall    j_j_free                                                       ; +0xc9, 0x140149739\nxorps   xmm0, xmm0                                                     ; +0xce, 0x14014973e\nmovups  xmmword ptr [rsp+98h+var_50], xmm0                             ; +0xd1, 0x140149741\nxorps   xmm1, xmm1                                                     ; +0xd6, 0x140149746\nmovdqu  [rsp+98h+var_40], xmm1                                         ; +0xd9, 0x140149749\nmov     r8, rbx                                                        ; +0xdf, 0x14014974f\ninc     r8                                                             ; +0xe2, 0x140149752\ncmp     byte ptr [rdi+r8], 0                                           ; +0xe5, 0x140149755\njnz     short loc_140149752                                            ; +0xea, 0x14014975a\nmov     rdx, rdi                                                       ; +0xec, 0x14014975c\nlea     rcx, [rsp+98h+var_50]                                          ; +0xef, 0x14014975f\ncall    sub_14003A930                                                  ; +0xf4, 0x140149764\nnop                                                                    ; +0xf9, 0x140149769\nmov     rdx, rsi                                                       ; +0xfa, 0x14014976a\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0xfd, 0x14014976d\njbe     short loc_140149777                                            ; +0x102, 0x140149772\nmov     rdx, [rsi]                                                     ; +0x104, 0x140149774\nxorps   xmm0, xmm0                                                     ; +0x107, 0x140149777\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x10a, 0x14014977a\nxorps   xmm1, xmm1                                                     ; +0x10f, 0x14014977f\nmovdqu  [rsp+98h+var_60], xmm1                                         ; +0x112, 0x140149782\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x118, 0x140149788\ninc     rbx                                                            ; +0x120, 0x140149790\ncmp     byte ptr [rdx+rbx], 0                                          ; +0x123, 0x140149793\njnz     short loc_140149790                                            ; +0x127, 0x140149797\nmov     r8, rbx                                                        ; +0x129, 0x140149799\nlea     rcx, [rsp+98h+Block]                                           ; +0x12c, 0x14014979c\ncall    sub_14003A930                                                  ; +0x131, 0x1401497a1\nnop                                                                    ; +0x136, 0x1401497a6\nlea     rcx, [rsp+98h+Block]                                           ; +0x137, 0x1401497a7\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 &) ; +0x13c, 0x1401497ac\nmov     rdx, rax                                                       ; +0x142, 0x1401497b2\nlea     r8, [rsp+98h+var_50]                                           ; +0x145, 0x1401497b5\nmov     rcx, [r14+228h]                                                ; +0x14a, 0x1401497ba\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 &) ; +0x151, 0x1401497c1\nnop                                                                    ; +0x157, 0x1401497c7\nmov     rdx, qword ptr [rsp+98h+var_60+8]                              ; +0x158, 0x1401497c8\ncmp     rdx, 0Fh                                                       ; +0x15d, 0x1401497cd\njbe     short loc_140149808                                            ; +0x161, 0x1401497d1\ninc     rdx                                                            ; +0x163, 0x1401497d3\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x166, 0x1401497d6\nmov     rax, rcx                                                       ; +0x16b, 0x1401497db\ncmp     rdx, 1000h                                                     ; +0x16e, 0x1401497de\njb      short loc_140149803                                            ; +0x175, 0x1401497e5\nadd     rdx, 27h ; '''                                                 ; +0x177, 0x1401497e7\nmov     rcx, [rcx-8]                                                   ; +0x17b, 0x1401497eb\nsub     rax, rcx                                                       ; +0x17f, 0x1401497ef\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x182, 0x1401497f2\ncmp     rax, 1Fh                                                       ; +0x186, 0x1401497f6\njbe     short loc_140149803                                            ; +0x18a, 0x1401497fa\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x18c, 0x1401497fc\ndb 0CCh                                                                ; +0x192, 0x140149802\ncall    j_j_free                                                       ; +0x193, 0x140149803\nmovdqa  xmm0, cs:xmmword_140623F30                                     ; +0x198, 0x140149808\nmovdqu  [rsp+98h+var_60], xmm0                                         ; +0x1a0, 0x140149810\nmov     byte ptr [rsp+98h+Block], 0                                    ; +0x1a6, 0x140149816\nmov     rdx, qword ptr [rsp+98h+var_40+8]                              ; +0x1ab, 0x14014981b\ncmp     rdx, 0Fh                                                       ; +0x1b0, 0x140149820\njbe     short loc_14014985C                                            ; +0x1b4, 0x140149824\ninc     rdx                                                            ; +0x1b6, 0x140149826\nmov     rcx, [rsp+98h+var_50]; Block                                   ; +0x1b9, 0x140149829\nmov     rax, rcx                                                       ; +0x1be, 0x14014982e\ncmp     rdx, 1000h                                                     ; +0x1c1, 0x140149831\njb      short loc_140149856                                            ; +0x1c8, 0x140149838\nadd     rdx, 27h ; '''                                                 ; +0x1ca, 0x14014983a\nmov     rcx, [rcx-8]                                                   ; +0x1ce, 0x14014983e\nsub     rax, rcx                                                       ; +0x1d2, 0x140149842\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x1d5, 0x140149845\ncmp     rax, 1Fh                                                       ; +0x1d9, 0x140149849\njbe     short loc_140149856                                            ; +0x1dd, 0x14014984d\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x1df, 0x14014984f\nalign 2                                                                ; +0x1e5, 0x140149855\ncall    j_j_free                                                       ; +0x1e6, 0x140149856\nnop                                                                    ; +0x1eb, 0x14014985b\nmov     rcx, rsi                                                       ; +0x1ec, 0x14014985c\ncall    sub_14003A830                                                  ; +0x1ef, 0x14014985f\nmov     rcx, [rsp+98h+var_30]                                          ; +0x1f4, 0x140149864\nxor     rcx, rsp; StackCookie                                          ; +0x1f9, 0x140149869\ncall    __security_check_cookie                                        ; +0x1fc, 0x14014986c\nadd     rsp, 70h                                                       ; +0x201, 0x140149871\npop     r14                                                            ; +0x205, 0x140149875\npop     rdi                                                            ; +0x207, 0x140149877\npop     rsi                                                            ; +0x208, 0x140149878\npop     rbp                                                            ; +0x209, 0x140149879\npop     rbx                                                            ; +0x20a, 0x14014987a\nretn                                                                   ; +0x20b, 0x14014987b", "xrefs": ["GameLevelManager::onGetOnlineLevelsCompleted @ 0x14014ed09", "GameLevelManager::onGetMapPacksCompleted @ 0x14014fd67", "GameLevelManager::onGetLevelListsCompleted @ 0x140150e50", "GameLevelManager::onGetGauntletsCompleted @ 0x140151a21", "GameLevelManager::onGetLeaderboardScoresCompleted @ 0x140157fe8", "GameLevelManager::onGetLevelLeaderboardCompleted @ 0x140158f4b", "GameLevelManager::onGetTopArtistsCompleted @ 0x1401596cb", "GameLevelManager::onGetUsersCompleted @ 0x140159d28", "<???> @ 0x1406ca6a4"], "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"}