{"type": "func", "start": 5370087264, "end": 5370087909, "name": "GameLevelManager::getLevelLists", "pseudocode": "// \n// GameLevelManager::getLevelLists from 0x140150760 to 0x1401509e5 (645 bytes)\n// \n// 3 xrefs:\n// > LevelBrowserLayer::loadPage @ 0x1402cac0a\n// > LevelListLayer::onRefreshLevelList @ 0x1403068cb\n// > <???> @ 0x1406ca83c\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 GameLevelManager::getLevelLists(GameLevelManager *a1, GJSearchObject *a2)\n{\n  const char *Key; // r14\n  __int64 v5; // rcx\n  int m_page; // ebx\n  SearchType m_searchType; // edi\n  const char *v8; // rsi\n  cocos2d::CCString *v9; // rax\n  const char *CString; // rax\n  cocos2d::CCString *v11; // rax\n  char *v12; // rax\n  size_t v13; // rbx\n  size_t v14; // r8\n  __int64 v15; // rcx\n  _QWORD *v16; // rax\n  size_t v17; // r8\n  size_t v18; // r8\n  _QWORD *v19; // rdx\n  int v20; // [rsp+20h] [rbp-99h]\n  int v21; // [rsp+28h] [rbp-91h]\n  __int128 v22; // [rsp+48h] [rbp-71h] BYREF\n  __int64 v23; // [rsp+58h] [rbp-61h]\n  __int64 v24; // [rsp+60h] [rbp-59h]\n  __int128 v25; // [rsp+68h] [rbp-51h] BYREF\n  __int64 v26; // [rsp+78h] [rbp-41h]\n  __int64 v27; // [rsp+80h] [rbp-39h]\n  __int128 *v28; // [rsp+88h] [rbp-31h]\n  __int128 v29; // [rsp+98h] [rbp-21h] BYREF\n  __int64 v30; // [rsp+A8h] [rbp-11h]\n  unsigned __int64 v31; // [rsp+B0h] [rbp-9h]\n  _QWORD Src[4]; // [rsp+B8h] [rbp-1h] BYREF\n\n  Key = GJSearchObject::getKey(a2);\n  if ( !GameLevelManager::isDLActive(a1, Key) )\n  {\n    GameLevelManager::addDLToActive(a1, Key);\n    GameLevelManager::getBasePostString(v5, Src);\n    sub_14003BDB0((__int64)&v29, (__int64)&a2->m_searchQuery);\n    m_page = a2->m_page;\n    m_searchType = a2->m_searchType;\n    v8 = (const char *)&v29;\n    if ( v31 > 0xF )\n      v8 = (const char *)v29;\n    v21 = 98;\n    v20 = 103;\n    v9 = cocos2d::CCString::createWithFormat(\"%c%s%s%c%c%s\", 87, \"mfd\", \"2893\", v20, v21, (const char *)&word_140531E88);\n    CString = cocos2d::CCString::getCString(v9);\n    v11 = cocos2d::CCString::createWithFormat(\"&str=%s&type=%i&page=%i&secret=%s\", v8, m_searchType, m_page, CString);\n    v12 = (char *)cocos2d::CCString::getCString(v11);\n    v13 = -1;\n    v14 = -1;\n    do\n      ++v14;\n    while ( v12[v14] );\n    sub_140041270(Src, v12, v14);\n    sub_14003A830((__int64)&v29);\n    v16 = GameLevelManager::writeSpecialFilters(v15, &v29, (__int64)a2);\n    if ( v16[3] > 0xFu )\n      v16 = (_QWORD *)*v16;\n    v17 = -1;\n    do\n      ++v17;\n    while ( *((_BYTE *)v16 + v17) );\n    sub_140041270(Src, v16, v17);\n    sub_14003A830((__int64)&v29);\n    v28 = &v29;\n    v25 = 0;\n    v26 = 0;\n    v27 = 0;\n    v18 = -1;\n    do\n      ++v18;\n    while ( Key[v18] );\n    sub_14003A930(&v25, Key, v18);\n    v19 = Src;\n    if ( Src[3] > 0xFu )\n      v19 = (_QWORD *)Src[0];\n    v29 = 0;\n    v30 = 0;\n    v31 = 0;\n    do\n      ++v13;\n    while ( *((_BYTE *)v19 + v13) );\n    sub_14003A930(&v29, v19, v13);\n    v22 = 0;\n    *(_QWORD *)&v22 = sub_14003AA10(0x40u);\n    v23 = 54;\n    v24 = 63;\n    strcpy((char *)v22, \"https://www.boomlings.com/database/getGJLevelLists.php\");\n    GameLevelManager::ProcessHttpRequest(a1, (__int64)&v22, (const char *)&v29, (const char *)&v25, 60);\n    sub_14003A830((__int64)Src);\n  }\n}", "assembly": "; \n; GameLevelManager::getLevelLists from 0x140150760 to 0x1401509e5 (645 bytes)\n; \n; 3 xrefs:\n; > LevelBrowserLayer::loadPage @ 0x1402cac0a\n; > LevelListLayer::onRefreshLevelList @ 0x1403068cb\n; > <???> @ 0x1406ca83c\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\nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x140150760\npush    rbp                                                            ; +0x5, 0x140150765\npush    rsi                                                            ; +0x6, 0x140150766\npush    rdi                                                            ; +0x7, 0x140150767\npush    r12                                                            ; +0x8, 0x140150768\npush    r13                                                            ; +0xa, 0x14015076a\npush    r14                                                            ; +0xc, 0x14015076c\npush    r15                                                            ; +0xe, 0x14015076e\nlea     rbp, [rsp-27h]                                                 ; +0x10, 0x140150770\nsub     rsp, 0E0h                                                      ; +0x15, 0x140150775\nmov     rax, cs:__security_cookie                                      ; +0x1c, 0x14015077c\nxor     rax, rsp                                                       ; +0x23, 0x140150783\nmov     [rbp+57h+var_38], rax                                          ; +0x26, 0x140150786\nmov     r15, rdx                                                       ; +0x2a, 0x14015078a\nmov     r12, rcx                                                       ; +0x2d, 0x14015078d\nxor     r13d, r13d                                                     ; +0x30, 0x140150790\nmov     rcx, rdx                                                       ; +0x33, 0x140150793\ncall    GJSearchObject__getKey                                         ; +0x36, 0x140150796\nmov     r14, rax                                                       ; +0x3b, 0x14015079b\nmov     rdx, rax                                                       ; +0x3e, 0x14015079e\nmov     rcx, r12                                                       ; +0x41, 0x1401507a1\ncall    GameLevelManager__isDLActive                                   ; +0x44, 0x1401507a4\ntest    al, al                                                         ; +0x49, 0x1401507a9\njnz     loc_1401509BE                                                  ; +0x4b, 0x1401507ab\nmov     rdx, r14                                                       ; +0x51, 0x1401507b1\nmov     rcx, r12                                                       ; +0x54, 0x1401507b4\ncall    GameLevelManager__addDLToActive                                ; +0x57, 0x1401507b7\nlea     rdx, [rbp+57h+Src]                                             ; +0x5c, 0x1401507bc\ncall    GameLevelManager__getBasePostString                            ; +0x60, 0x1401507c0\nnop                                                                    ; +0x65, 0x1401507c5\nlea     rdx, [r15+148h]                                                ; +0x66, 0x1401507c6\nlea     rcx, [rbp+57h+var_78]                                          ; +0x6d, 0x1401507cd\ncall    sub_14003BDB0                                                  ; +0x71, 0x1401507d1\nnop                                                                    ; +0x76, 0x1401507d6\nmov     ebx, [r15+1A8h]                                                ; +0x77, 0x1401507d7\nmov     edi, [r15+140h]                                                ; +0x7e, 0x1401507de\nlea     rsi, [rbp+57h+var_78]                                          ; +0x85, 0x1401507e5\ncmp     [rbp+57h+var_60], 0Fh                                          ; +0x89, 0x1401507e9\ncmova   rsi, qword ptr [rbp+57h+var_78]                                ; +0x8e, 0x1401507ee\nlea     rax, word_140531E88                                            ; +0x93, 0x1401507f3\nmov     [rsp+110h+var_E0], rax                                         ; +0x9a, 0x1401507fa\nmov     [rsp+110h+var_E8], 62h ; 'b'                                   ; +0x9f, 0x1401507ff\nmov     dword ptr [rsp+110h+var_F0], 67h ; 'g'                         ; +0xa7, 0x140150807\nlea     r9, a2893; \"2893\"                                              ; +0xaf, 0x14015080f\nlea     r8, aMfd; \"mfd\"                                                ; +0xb6, 0x140150816\nlea     edx, [r13+57h]                                                 ; +0xbd, 0x14015081d\nlea     rcx, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0xc1, 0x140150821\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xc8, 0x140150828\nmov     rcx, rax                                                       ; +0xce, 0x14015082e\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd1, 0x140150831\nmov     [rsp+110h+var_F0], rax                                         ; +0xd7, 0x140150837\nmov     r9d, ebx                                                       ; +0xdc, 0x14015083c\nmov     r8d, edi                                                       ; +0xdf, 0x14015083f\nmov     rdx, rsi                                                       ; +0xe2, 0x140150842\nlea     rcx, aStrSTypeIPageI; \"&str=%s&type=%i&page=%i&secret=%s\"      ; +0xe5, 0x140150845\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xec, 0x14015084c\nmov     rcx, rax                                                       ; +0xf2, 0x140150852\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xf5, 0x140150855\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0xfb, 0x14015085b\nmov     r8, rbx                                                        ; +0x102, 0x140150862\ninc     r8; Size                                                       ; +0x105, 0x140150865\ncmp     byte ptr [rax+r8], 0                                           ; +0x108, 0x140150868\njnz     short loc_140150865                                            ; +0x10d, 0x14015086d\nmov     rdx, rax; void *                                               ; +0x10f, 0x14015086f\nlea     rcx, [rbp+57h+Src]; Src                                        ; +0x112, 0x140150872\ncall    sub_140041270                                                  ; +0x116, 0x140150876\nnop                                                                    ; +0x11b, 0x14015087b\nlea     rcx, [rbp+57h+var_78]                                          ; +0x11c, 0x14015087c\ncall    sub_14003A830                                                  ; +0x120, 0x140150880\nmov     r8, r15                                                        ; +0x125, 0x140150885\nlea     rdx, [rbp+57h+var_78]                                          ; +0x128, 0x140150888\ncall    GameLevelManager__writeSpecialFilters                          ; +0x12c, 0x14015088c\nnop                                                                    ; +0x131, 0x140150891\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x132, 0x140150892\njbe     short loc_14015089C                                            ; +0x137, 0x140150897\nmov     rax, [rax]                                                     ; +0x139, 0x140150899\nmov     r8, rbx                                                        ; +0x13c, 0x14015089c\nnop                                                                    ; +0x13f, 0x14015089f\ninc     r8; Size                                                       ; +0x140, 0x1401508a0\ncmp     byte ptr [rax+r8], 0                                           ; +0x143, 0x1401508a3\njnz     short loc_1401508A0                                            ; +0x148, 0x1401508a8\nmov     rdx, rax; void *                                               ; +0x14a, 0x1401508aa\nlea     rcx, [rbp+57h+Src]; Src                                        ; +0x14d, 0x1401508ad\ncall    sub_140041270                                                  ; +0x151, 0x1401508b1\nnop                                                                    ; +0x156, 0x1401508b6\nlea     rcx, [rbp+57h+var_78]                                          ; +0x157, 0x1401508b7\ncall    sub_14003A830                                                  ; +0x15b, 0x1401508bb\nlea     rax, [rbp+57h+var_A8]                                          ; +0x160, 0x1401508c0\nmov     [rbp+57h+var_D0], rax                                          ; +0x164, 0x1401508c4\nlea     rax, [rbp+57h+var_78]                                          ; +0x168, 0x1401508c8\nmov     [rbp+57h+var_88], rax                                          ; +0x16c, 0x1401508cc\nxorps   xmm0, xmm0                                                     ; +0x170, 0x1401508d0\nmovups  [rbp+57h+var_A8], xmm0                                         ; +0x173, 0x1401508d3\nmov     [rbp+57h+var_98], r13                                          ; +0x177, 0x1401508d7\nmov     [rbp+57h+var_90], r13                                          ; +0x17b, 0x1401508db\nmov     r8, rbx                                                        ; +0x17f, 0x1401508df\ninc     r8                                                             ; +0x182, 0x1401508e2\ncmp     byte ptr [r14+r8], 0                                           ; +0x185, 0x1401508e5\njnz     short loc_1401508E2                                            ; +0x18a, 0x1401508ea\nmov     rdx, r14                                                       ; +0x18c, 0x1401508ec\nlea     rcx, [rbp+57h+var_A8]                                          ; +0x18f, 0x1401508ef\ncall    sub_14003A930                                                  ; +0x193, 0x1401508f3\nnop                                                                    ; +0x198, 0x1401508f8\nlea     rdx, [rbp+57h+Src]                                             ; +0x199, 0x1401508f9\ncmp     [rbp+57h+var_40], 0Fh                                          ; +0x19d, 0x1401508fd\ncmova   rdx, [rbp+57h+Src]                                             ; +0x1a2, 0x140150902\nxorps   xmm0, xmm0                                                     ; +0x1a7, 0x140150907\nmovups  [rbp+57h+var_78], xmm0                                         ; +0x1aa, 0x14015090a\nmov     [rbp+57h+var_68], r13                                          ; +0x1ae, 0x14015090e\nmov     [rbp+57h+var_60], r13                                          ; +0x1b2, 0x140150912\ninc     rbx                                                            ; +0x1b6, 0x140150916\ncmp     byte ptr [rdx+rbx], 0                                          ; +0x1b9, 0x140150919\njnz     short loc_140150916                                            ; +0x1bd, 0x14015091d\nmov     r8, rbx                                                        ; +0x1bf, 0x14015091f\nlea     rcx, [rbp+57h+var_78]                                          ; +0x1c2, 0x140150922\ncall    sub_14003A930                                                  ; +0x1c6, 0x140150926\nnop                                                                    ; +0x1cb, 0x14015092b\nxorps   xmm0, xmm0                                                     ; +0x1cc, 0x14015092c\nmovups  [rbp+57h+var_C8], xmm0                                         ; +0x1cf, 0x14015092f\nmov     [rbp+57h+var_B8], r13                                          ; +0x1d3, 0x140150933\nmov     [rbp+57h+var_B0], 0Fh                                          ; +0x1d7, 0x140150937\nmov     ecx, 40h ; '@'                                                 ; +0x1df, 0x14015093f\ncall    sub_14003AA10                                                  ; +0x1e4, 0x140150944\nmov     rdx, rax                                                       ; +0x1e9, 0x140150949\nmov     qword ptr [rbp+57h+var_C8], rax                                ; +0x1ec, 0x14015094c\nmov     [rbp+57h+var_B8], 36h ; '6'                                    ; +0x1f0, 0x140150950\nmov     [rbp+57h+var_B0], 3Fh ; '?'                                    ; +0x1f8, 0x140150958\nmovups  xmm0, cs:xmmword_140558D78                                     ; +0x200, 0x140150960\nmovups  xmmword ptr [rax], xmm0                                        ; +0x207, 0x140150967\nmovups  xmm1, cs:xmmword_140558D88                                     ; +0x20a, 0x14015096a\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x211, 0x140150971\nmovups  xmm0, cs:xmmword_140558D98                                     ; +0x215, 0x140150975\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x21c, 0x14015097c\nmov     eax, cs:dword_140558DA8                                        ; +0x220, 0x140150980\nmov     [rdx+30h], eax                                                 ; +0x226, 0x140150986\nmovzx   eax, cs:word_140558DAC                                         ; +0x229, 0x140150989\nmov     [rdx+34h], ax                                                  ; +0x230, 0x140150990\nmov     byte ptr [rdx+36h], 0                                          ; +0x234, 0x140150994\nmov     dword ptr [rsp+110h+var_F0], 3Ch ; '<'                         ; +0x238, 0x140150998\nlea     r9, [rbp+57h+var_A8]                                           ; +0x240, 0x1401509a0\nlea     r8, [rbp+57h+var_78]                                           ; +0x244, 0x1401509a4\nlea     rdx, [rbp+57h+var_C8]                                          ; +0x248, 0x1401509a8\nmov     rcx, r12                                                       ; +0x24c, 0x1401509ac\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x24f, 0x1401509af\nnop                                                                    ; +0x254, 0x1401509b4\nlea     rcx, [rbp+57h+Src]                                             ; +0x255, 0x1401509b5\ncall    sub_14003A830                                                  ; +0x259, 0x1401509b9\nmov     rcx, [rbp+57h+var_38]                                          ; +0x25e, 0x1401509be\nxor     rcx, rsp; StackCookie                                          ; +0x262, 0x1401509c2\ncall    __security_check_cookie                                        ; +0x265, 0x1401509c5\nmov     rbx, [rsp+110h+arg_10]                                         ; +0x26a, 0x1401509ca\nadd     rsp, 0E0h                                                      ; +0x272, 0x1401509d2\npop     r15                                                            ; +0x279, 0x1401509d9\npop     r14                                                            ; +0x27b, 0x1401509db\npop     r13                                                            ; +0x27d, 0x1401509dd\npop     r12                                                            ; +0x27f, 0x1401509df\npop     rdi                                                            ; +0x281, 0x1401509e1\npop     rsi                                                            ; +0x282, 0x1401509e2\npop     rbp                                                            ; +0x283, 0x1401509e3\nretn                                                                   ; +0x284, 0x1401509e4", "xrefs": ["LevelBrowserLayer::loadPage @ 0x1402cac0a", "LevelListLayer::onRefreshLevelList @ 0x1403068cb", "<???> @ 0x1406ca83c"], "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"}