{"type": "func", "start": 5370124112, "end": 5370124709, "name": "GameLevelManager::getUsers", "pseudocode": "// \n// GameLevelManager::getUsers from 0x140159750 to 0x1401599a5 (597 bytes)\n// \n// 2 xrefs:\n// > LevelBrowserLayer::loadPage @ 0x1402cabe6\n// > <???> @ 0x1406ca9bc\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::getUsers(GameLevelManager *a1, GJSearchObject *a2)\n{\n  const char *Key; // r14\n  __int64 v5; // rcx\n  int m_page; // ebx\n  int m_total; // 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  size_t v15; // r8\n  _QWORD *v16; // rdx\n  int v17; // [rsp+20h] [rbp-89h]\n  int v18; // [rsp+28h] [rbp-81h]\n  __int128 v19; // [rsp+48h] [rbp-61h] BYREF\n  __int64 v20; // [rsp+58h] [rbp-51h]\n  __int64 v21; // [rsp+60h] [rbp-49h]\n  __int128 v22; // [rsp+68h] [rbp-41h] BYREF\n  __int64 v23; // [rsp+78h] [rbp-31h]\n  __int64 v24; // [rsp+80h] [rbp-29h]\n  __int128 *v25; // [rsp+88h] [rbp-21h]\n  __int128 v26; // [rsp+98h] [rbp-11h] BYREF\n  __int64 v27; // [rsp+A8h] [rbp-1h]\n  unsigned __int64 v28; // [rsp+B0h] [rbp+7h]\n  _QWORD Src[4]; // [rsp+B8h] [rbp+Fh] 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)&v26, (__int64)&a2->m_searchQuery);\n    m_page = a2->m_page;\n    m_total = a2->m_total;\n    v8 = (const char *)&v26;\n    if ( v28 > 0xF )\n      v8 = (const char *)v26;\n    v18 = 98;\n    v17 = 103;\n    v9 = cocos2d::CCString::createWithFormat(\"%c%s%s%c%c%s\", 87, \"mfd\", \"2893\", v17, v18, (const char *)&word_140531E88);\n    CString = cocos2d::CCString::getCString(v9);\n    v11 = cocos2d::CCString::createWithFormat(\"&str=%s&total=%i&page=%i&secret=%s\", v8, m_total, 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)&v26);\n    v25 = &v26;\n    v22 = 0;\n    v23 = 0;\n    v24 = 0;\n    v15 = -1;\n    do\n      ++v15;\n    while ( Key[v15] );\n    sub_14003A930(&v22, Key, v15);\n    v16 = Src;\n    if ( Src[3] > 0xFu )\n      v16 = (_QWORD *)Src[0];\n    v26 = 0;\n    v27 = 0;\n    v28 = 0;\n    do\n      ++v13;\n    while ( *((_BYTE *)v16 + v13) );\n    sub_14003A930(&v26, v16, v13);\n    v19 = 0;\n    *(_QWORD *)&v19 = sub_14003AA10(0x40u);\n    v20 = 51;\n    v21 = 63;\n    strcpy((char *)v19, \"https://www.boomlings.com/database/getGJUsers20.php\");\n    GameLevelManager::ProcessHttpRequest(a1, (__int64)&v19, (const char *)&v26, (const char *)&v22, 41);\n    sub_14003A830((__int64)Src);\n  }\n}", "assembly": "; \n; GameLevelManager::getUsers from 0x140159750 to 0x1401599a5 (597 bytes)\n; \n; 2 xrefs:\n; > LevelBrowserLayer::loadPage @ 0x1402cabe6\n; > <???> @ 0x1406ca9bc\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, 0x140159750\nmov     [rsp-8+arg_18], rsi                                            ; +0x5, 0x140159755\npush    rbp                                                            ; +0xa, 0x14015975a\npush    rdi                                                            ; +0xb, 0x14015975b\npush    r12                                                            ; +0xc, 0x14015975c\npush    r14                                                            ; +0xe, 0x14015975e\npush    r15                                                            ; +0x10, 0x140159760\nlea     rbp, [rsp-37h]                                                 ; +0x12, 0x140159762\nsub     rsp, 0E0h                                                      ; +0x17, 0x140159767\nmov     rax, cs:__security_cookie                                      ; +0x1e, 0x14015976e\nxor     rax, rsp                                                       ; +0x25, 0x140159775\nmov     [rbp+57h+var_28], rax                                          ; +0x28, 0x140159778\nmov     rdi, rdx                                                       ; +0x2c, 0x14015977c\nmov     r15, rcx                                                       ; +0x2f, 0x14015977f\nxor     r12d, r12d                                                     ; +0x32, 0x140159782\nmov     rcx, rdx                                                       ; +0x35, 0x140159785\ncall    GJSearchObject__getKey                                         ; +0x38, 0x140159788\nmov     r14, rax                                                       ; +0x3d, 0x14015978d\nmov     rdx, rax                                                       ; +0x40, 0x140159790\nmov     rcx, r15                                                       ; +0x43, 0x140159793\ncall    GameLevelManager__isDLActive                                   ; +0x46, 0x140159796\ntest    al, al                                                         ; +0x4b, 0x14015979b\njnz     loc_14015997D                                                  ; +0x4d, 0x14015979d\nmov     rdx, r14                                                       ; +0x53, 0x1401597a3\nmov     rcx, r15                                                       ; +0x56, 0x1401597a6\ncall    GameLevelManager__addDLToActive                                ; +0x59, 0x1401597a9\nlea     rdx, [rbp+57h+Src]                                             ; +0x5e, 0x1401597ae\ncall    GameLevelManager__getBasePostString                            ; +0x62, 0x1401597b2\nnop                                                                    ; +0x67, 0x1401597b7\nlea     rdx, [rdi+148h]                                                ; +0x68, 0x1401597b8\nlea     rcx, [rbp+57h+var_68]                                          ; +0x6f, 0x1401597bf\ncall    sub_14003BDB0                                                  ; +0x73, 0x1401597c3\nnop                                                                    ; +0x78, 0x1401597c8\nmov     ebx, [rdi+1A8h]                                                ; +0x79, 0x1401597c9\nmov     edi, [rdi+1B0h]                                                ; +0x7f, 0x1401597cf\nlea     rsi, [rbp+57h+var_68]                                          ; +0x85, 0x1401597d5\ncmp     [rbp+57h+var_50], 0Fh                                          ; +0x89, 0x1401597d9\ncmova   rsi, qword ptr [rbp+57h+var_68]                                ; +0x8e, 0x1401597de\nlea     rax, word_140531E88                                            ; +0x93, 0x1401597e3\nmov     [rsp+100h+var_D0], rax                                         ; +0x9a, 0x1401597ea\nmov     [rsp+100h+var_D8], 62h ; 'b'                                   ; +0x9f, 0x1401597ef\nmov     dword ptr [rsp+100h+var_E0], 67h ; 'g'                         ; +0xa7, 0x1401597f7\nlea     r9, a2893; \"2893\"                                              ; +0xaf, 0x1401597ff\nlea     r8, aMfd; \"mfd\"                                                ; +0xb6, 0x140159806\nlea     edx, [r12+57h]                                                 ; +0xbd, 0x14015980d\nlea     rcx, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0xc2, 0x140159812\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xc9, 0x140159819\nmov     rcx, rax                                                       ; +0xcf, 0x14015981f\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd2, 0x140159822\nmov     [rsp+100h+var_E0], rax                                         ; +0xd8, 0x140159828\nmov     r9d, ebx                                                       ; +0xdd, 0x14015982d\nmov     r8d, edi                                                       ; +0xe0, 0x140159830\nmov     rdx, rsi                                                       ; +0xe3, 0x140159833\nlea     rcx, aStrSTotalIPage; \"&str=%s&total=%i&page=%i&secret=%s\"     ; +0xe6, 0x140159836\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xed, 0x14015983d\nmov     rcx, rax                                                       ; +0xf3, 0x140159843\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xf6, 0x140159846\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0xfc, 0x14015984c\nmov     r8, rbx                                                        ; +0x103, 0x140159853\ninc     r8; Size                                                       ; +0x106, 0x140159856\ncmp     byte ptr [rax+r8], 0                                           ; +0x109, 0x140159859\njnz     short loc_140159856                                            ; +0x10e, 0x14015985e\nmov     rdx, rax; void *                                               ; +0x110, 0x140159860\nlea     rcx, [rbp+57h+Src]; Src                                        ; +0x113, 0x140159863\ncall    sub_140041270                                                  ; +0x117, 0x140159867\nnop                                                                    ; +0x11c, 0x14015986c\nlea     rcx, [rbp+57h+var_68]                                          ; +0x11d, 0x14015986d\ncall    sub_14003A830                                                  ; +0x121, 0x140159871\nlea     rax, [rbp+57h+var_98]                                          ; +0x126, 0x140159876\nmov     [rbp+57h+var_C0], rax                                          ; +0x12a, 0x14015987a\nlea     rax, [rbp+57h+var_68]                                          ; +0x12e, 0x14015987e\nmov     [rbp+57h+var_78], rax                                          ; +0x132, 0x140159882\nxorps   xmm0, xmm0                                                     ; +0x136, 0x140159886\nmovups  [rbp+57h+var_98], xmm0                                         ; +0x139, 0x140159889\nmov     [rbp+57h+var_88], r12                                          ; +0x13d, 0x14015988d\nmov     [rbp+57h+var_80], r12                                          ; +0x141, 0x140159891\nmov     r8, rbx                                                        ; +0x145, 0x140159895\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x148, 0x140159898\ninc     r8                                                             ; +0x150, 0x1401598a0\ncmp     byte ptr [r14+r8], 0                                           ; +0x153, 0x1401598a3\njnz     short loc_1401598A0                                            ; +0x158, 0x1401598a8\nmov     rdx, r14                                                       ; +0x15a, 0x1401598aa\nlea     rcx, [rbp+57h+var_98]                                          ; +0x15d, 0x1401598ad\ncall    sub_14003A930                                                  ; +0x161, 0x1401598b1\nnop                                                                    ; +0x166, 0x1401598b6\nlea     rdx, [rbp+57h+Src]                                             ; +0x167, 0x1401598b7\ncmp     [rbp+57h+var_30], 0Fh                                          ; +0x16b, 0x1401598bb\ncmova   rdx, [rbp+57h+Src]                                             ; +0x170, 0x1401598c0\nxorps   xmm0, xmm0                                                     ; +0x175, 0x1401598c5\nmovups  [rbp+57h+var_68], xmm0                                         ; +0x178, 0x1401598c8\nmov     [rbp+57h+var_58], r12                                          ; +0x17c, 0x1401598cc\nmov     [rbp+57h+var_50], r12                                          ; +0x180, 0x1401598d0\ninc     rbx                                                            ; +0x184, 0x1401598d4\ncmp     byte ptr [rdx+rbx], 0                                          ; +0x187, 0x1401598d7\njnz     short loc_1401598D4                                            ; +0x18b, 0x1401598db\nmov     r8, rbx                                                        ; +0x18d, 0x1401598dd\nlea     rcx, [rbp+57h+var_68]                                          ; +0x190, 0x1401598e0\ncall    sub_14003A930                                                  ; +0x194, 0x1401598e4\nnop                                                                    ; +0x199, 0x1401598e9\nxorps   xmm0, xmm0                                                     ; +0x19a, 0x1401598ea\nmovups  [rbp+57h+var_B8], xmm0                                         ; +0x19d, 0x1401598ed\nmov     [rbp+57h+var_A8], r12                                          ; +0x1a1, 0x1401598f1\nmov     [rbp+57h+var_A0], 0Fh                                          ; +0x1a5, 0x1401598f5\nmov     ecx, 40h ; '@'                                                 ; +0x1ad, 0x1401598fd\ncall    sub_14003AA10                                                  ; +0x1b2, 0x140159902\nmov     rdx, rax                                                       ; +0x1b7, 0x140159907\nmov     qword ptr [rbp+57h+var_B8], rax                                ; +0x1ba, 0x14015990a\nmov     [rbp+57h+var_A8], 33h ; '3'                                    ; +0x1be, 0x14015990e\nmov     [rbp+57h+var_A0], 3Fh ; '?'                                    ; +0x1c6, 0x140159916\nmovups  xmm0, cs:xmmword_140559498                                     ; +0x1ce, 0x14015991e\nmovups  xmmword ptr [rax], xmm0                                        ; +0x1d5, 0x140159925\nmovups  xmm1, cs:xmmword_1405594A8                                     ; +0x1d8, 0x140159928\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x1df, 0x14015992f\nmovups  xmm0, cs:xmmword_1405594B8                                     ; +0x1e3, 0x140159933\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x1ea, 0x14015993a\nmovzx   eax, cs:word_1405594C8                                         ; +0x1ee, 0x14015993e\nmov     [rdx+30h], ax                                                  ; +0x1f5, 0x140159945\nmovzx   eax, cs:byte_1405594CA                                         ; +0x1f9, 0x140159949\nmov     [rdx+32h], al                                                  ; +0x200, 0x140159950\nmov     byte ptr [rdx+33h], 0                                          ; +0x203, 0x140159953\nmov     dword ptr [rsp+100h+var_E0], 29h ; ')'                         ; +0x207, 0x140159957\nlea     r9, [rbp+57h+var_98]                                           ; +0x20f, 0x14015995f\nlea     r8, [rbp+57h+var_68]                                           ; +0x213, 0x140159963\nlea     rdx, [rbp+57h+var_B8]                                          ; +0x217, 0x140159967\nmov     rcx, r15                                                       ; +0x21b, 0x14015996b\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x21e, 0x14015996e\nnop                                                                    ; +0x223, 0x140159973\nlea     rcx, [rbp+57h+Src]                                             ; +0x224, 0x140159974\ncall    sub_14003A830                                                  ; +0x228, 0x140159978\nmov     rcx, [rbp+57h+var_28]                                          ; +0x22d, 0x14015997d\nxor     rcx, rsp; StackCookie                                          ; +0x231, 0x140159981\ncall    __security_check_cookie                                        ; +0x234, 0x140159984\nlea     r11, [rsp+100h+var_20]                                         ; +0x239, 0x140159989\nmov     rbx, [r11+40h]                                                 ; +0x241, 0x140159991\nmov     rsi, [r11+48h]                                                 ; +0x245, 0x140159995\nmov     rsp, r11                                                       ; +0x249, 0x140159999\npop     r15                                                            ; +0x24c, 0x14015999c\npop     r14                                                            ; +0x24e, 0x14015999e\npop     r12                                                            ; +0x250, 0x1401599a0\npop     rdi                                                            ; +0x252, 0x1401599a2\npop     rbp                                                            ; +0x253, 0x1401599a3\nretn                                                                   ; +0x254, 0x1401599a4", "xrefs": ["LevelBrowserLayer::loadPage @ 0x1402cabe6", "<???> @ 0x1406ca9bc"], "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"}