{"type": "func", "start": 4300485232, "end": 4300485788, "name": "GameLevelManager::getGauntlets", "pseudocode": "// \n// GameLevelManager::getGauntlets from 0x100543270 to 0x10054349c (556 bytes)\n// \n// 2 xrefs:\n// > GauntletSelectLayer::init @ 0x100571dda\n// > GauntletSelectLayer::onRefresh @ 0x100572063\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\nvoid __fastcall GameLevelManager::getGauntlets(GameLevelManager *a1)\n{\n  __m128 v1; // xmm0\n  cocos2d::CCString *v2; // rax\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  const char *data; // r14\n  size_t v6; // rax\n  size_t v7; // r15\n  char *v8; // r12\n  size_t v9; // r13\n  char v10; // [rsp+0h] [rbp-90h]\n  std::string v11; // [rsp+8h] [rbp-88h] BYREF\n  std::string v12; // [rsp+20h] [rbp-70h] BYREF\n  char v13; // [rsp+38h] [rbp-58h] BYREF\n  _BYTE v14[23]; // [rsp+39h] [rbp-57h] BYREF\n  _QWORD __dst[2]; // [rsp+50h] [rbp-40h] BYREF\n  void *v16; // [rsp+60h] [rbp-30h]\n\n  if ( GameLevelManager::isDLActive(a1, \"get_gauntlets\") )\n    return;\n  GameLevelManager::addDLToActive(a1, \"get_gauntlets\");\n  GameLevelManager::getBasePostString(&v12, v1);\n  v2 = (cocos2d::CCString *)sub_1007AB580(\"%c%s%s%c%c%s\", (char)\"7\");\n  cocos2d::CCString::getCString(v2);\n  v3 = (cocos2d::CCString *)sub_1007AB580(\"&secret=%s&special=1&vkey=%i\", v10);\n  CString = cocos2d::CCString::getCString(v3);\n  std::string::append(&v12, CString);\n  v11.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u);\n  v11.__r_.__value_.__r.__words[0] = 57;\n  v11.__r_.__value_.__l.__size_ = 55;\n  strcpy(v11.__r_.__value_.__l.__data_, \"https://www.boomlings.com/database/getGJGauntlets21.php\");\n  if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )\n    data = v12.__r_.__value_.__l.__data_;\n  else\n    data = v12.__r_.__value_.__s.__data_;\n  v6 = strlen(data);\n  if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(2.057594829120962e-81);\n  v7 = v6;\n  if ( v6 >= 0x17 )\n  {\n    v9 = 26;\n    if ( (v6 | 7) != 0x17 )\n      v9 = (v6 | 7) + 1;\n    v8 = (char *)operator new(v9);\n    v16 = v8;\n    __dst[0] = v9 | 1;\n    __dst[1] = v7;\n    goto LABEL_12;\n  }\n  LOBYTE(__dst[0]) = 2 * v6;\n  v8 = (char *)__dst + 1;\n  if ( v6 )\nLABEL_12:\n    memmove(v8, data, v7);\n  v8[v7] = 0;\n  v13 = 26;\n  strcpy(v14, \"get_gauntlets\");\n  GameLevelManager::ProcessHttpRequest(a1, &v11, (__int64)__dst, (__int64)&v13, 52);\n  if ( (v13 & 1) == 0 )\n  {\n    if ( (__dst[0] & 1) == 0 )\n      goto LABEL_15;\nLABEL_20:\n    operator delete(v16);\n    if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) == 0 )\n    {\nLABEL_16:\n      if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) == 0 )\n        return;\n      goto LABEL_17;\n    }\n    goto LABEL_21;\n  }\n  operator delete(*(void **)&v14[15]);\n  if ( (__dst[0] & 1) != 0 )\n    goto LABEL_20;\nLABEL_15:\n  if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) == 0 )\n    goto LABEL_16;\nLABEL_21:\n  operator delete(v11.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )\nLABEL_17:\n    operator delete(v12.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; GameLevelManager::getGauntlets from 0x100543270 to 0x10054349c (556 bytes)\n; \n; 2 xrefs:\n; > GauntletSelectLayer::init @ 0x100571dda\n; > GauntletSelectLayer::onRefresh @ 0x100572063\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    rbp                                                            ; +0x0, 0x100543270\nmov     rbp, rsp                                                       ; +0x1, 0x100543271\npush    r15                                                            ; +0x4, 0x100543274\npush    r14                                                            ; +0x6, 0x100543276\npush    r13                                                            ; +0x8, 0x100543278\npush    r12                                                            ; +0xa, 0x10054327a\npush    rbx                                                            ; +0xc, 0x10054327c\nsub     rsp, 68h                                                       ; +0xd, 0x10054327d\nmov     rbx, rdi                                                       ; +0x11, 0x100543281\nlea     rsi, aGetGauntlets; \"get_gauntlets\"                            ; +0x14, 0x100543284\ncall    GameLevelManager__isDLActive                                   ; +0x1b, 0x10054328b\ntest    al, al                                                         ; +0x20, 0x100543290\njnz     loc_100543456                                                  ; +0x22, 0x100543292\nlea     rsi, aGetGauntlets; \"get_gauntlets\"                            ; +0x28, 0x100543298\nmov     rdi, rbx                                                       ; +0x2f, 0x10054329f\ncall    GameLevelManager__addDLToActive                                ; +0x32, 0x1005432a2\nlea     rdi, [rbp+var_70]; this                                        ; +0x37, 0x1005432a7\ncall    GameLevelManager__getBasePostString                            ; +0x3b, 0x1005432ab\nlea     rax, a7; \"7\"                                                   ; +0x40, 0x1005432b0\nmov     qword ptr [rsp+90h+var_90], rax; char                          ; +0x47, 0x1005432b7\nlea     rdi, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0x4b, 0x1005432bb\nlea     rdx, aMfd; \"mfd\"                                               ; +0x52, 0x1005432c2\nlea     rcx, a2893; \"2893\"                                             ; +0x59, 0x1005432c9\nmov     esi, 57h ; 'W'                                                 ; +0x60, 0x1005432d0\nmov     r8d, 67h ; 'g'                                                 ; +0x65, 0x1005432d5\nmov     r9d, 62h ; 'b'                                                 ; +0x6b, 0x1005432db\nxor     eax, eax                                                       ; +0x71, 0x1005432e1\ncall    sub_1007AB580                                                  ; +0x73, 0x1005432e3\nmov     rdi, rax                                                       ; +0x78, 0x1005432e8\ncall    cocos2d__CCString__getCString                                  ; +0x7b, 0x1005432eb\nlea     rdi, aSecretSSpecial; \"&secret=%s&special=1&vkey=%i\"           ; +0x80, 0x1005432f0\nmov     rsi, rax                                                       ; +0x87, 0x1005432f7\nmov     edx, 2Fh ; '/'                                                 ; +0x8a, 0x1005432fa\nxor     eax, eax                                                       ; +0x8f, 0x1005432ff\ncall    sub_1007AB580                                                  ; +0x91, 0x100543301\nmov     rdi, rax                                                       ; +0x96, 0x100543306\ncall    cocos2d__CCString__getCString                                  ; +0x99, 0x100543309\nlea     rdi, [rbp+var_70]; this                                        ; +0x9e, 0x10054330e\nmov     rsi, rax; __s                                                  ; +0xa2, 0x100543312\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xa5, 0x100543315\nmov     edi, 38h ; '8'; __sz                                           ; +0xaa, 0x10054331a\ncall    __Znwm; operator new(ulong)                                    ; +0xaf, 0x10054331f\nmov     [rbp+var_78], rax                                              ; +0xb4, 0x100543324\nmov     [rbp+var_88], 39h ; '9'                                        ; +0xb8, 0x100543328\nmov     [rbp+var_80], 37h ; '7'                                        ; +0xc3, 0x100543333\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_24+20h; \"se/getGJGauntlets21.php\" ; +0xcb, 0x10054333b\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xd2, 0x100543342\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_24+10h; \"lings.com/database/getGJGauntlets21.php\" ; +0xd6, 0x100543346\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0xdd, 0x10054334d\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_24; \"https://www.boomlings.com/database/getG\"... ; +0xe1, 0x100543351\nmovups  xmmword ptr [rax], xmm0                                        ; +0xe8, 0x100543358\nmov     rcx, 7068702E31327374h                                         ; +0xeb, 0x10054335b\nmov     [rax+2Fh], rcx                                                 ; +0xf5, 0x100543365\nmov     byte ptr [rax+37h], 0                                          ; +0xf9, 0x100543369\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0xfd, 0x10054336d\njz      short loc_100543379                                            ; +0x101, 0x100543371\nmov     r14, qword ptr [rbp+var_70.__r_.__value_+10h]                  ; +0x103, 0x100543373\njmp     short loc_10054337D                                            ; +0x107, 0x100543377\nlea     r14, [rbp+var_70.__r_.__value_+1]                              ; +0x109, 0x100543379\nmov     rdi, r14; __s                                                  ; +0x10d, 0x10054337d\ncall    _strlen                                                        ; +0x110, 0x100543380\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x115, 0x100543385\njnb     loc_100543497                                                  ; +0x119, 0x100543389\nmov     r15, rax                                                       ; +0x11f, 0x10054338f\ncmp     rax, 17h                                                       ; +0x122, 0x100543392\njnb     short loc_1005433AA                                            ; +0x126, 0x100543396\nlea     eax, [r15+r15]                                                 ; +0x128, 0x100543398\nmov     byte ptr [rbp+__dst], al                                       ; +0x12c, 0x10054339c\nlea     r12, [rbp+__dst+1]                                             ; +0x12f, 0x10054339f\ntest    r15, r15                                                       ; +0x133, 0x1005433a3\njnz     short loc_1005433DE                                            ; +0x136, 0x1005433a6\njmp     short loc_1005433EC                                            ; +0x138, 0x1005433a8\nmov     rax, r15                                                       ; +0x13a, 0x1005433aa\nor      rax, 7                                                         ; +0x13d, 0x1005433ad\nlea     rcx, [rax+1]                                                   ; +0x141, 0x1005433b1\ncmp     rax, 17h                                                       ; +0x145, 0x1005433b5\nmov     r13d, 1Ah                                                      ; +0x149, 0x1005433b9\ncmovnz  r13, rcx                                                       ; +0x14f, 0x1005433bf\nmov     rdi, r13; __sz                                                 ; +0x153, 0x1005433c3\ncall    __Znwm; operator new(ulong)                                    ; +0x156, 0x1005433c6\nmov     r12, rax                                                       ; +0x15b, 0x1005433cb\nmov     [rbp+var_30], rax                                              ; +0x15e, 0x1005433ce\nor      r13, 1                                                         ; +0x162, 0x1005433d2\nmov     [rbp+__dst], r13                                               ; +0x166, 0x1005433d6\nmov     [rbp+var_38], r15                                              ; +0x16a, 0x1005433da\nmov     rdi, r12; __dst                                                ; +0x16e, 0x1005433de\nmov     rsi, r14; __src                                                ; +0x171, 0x1005433e1\nmov     rdx, r15; __len                                                ; +0x174, 0x1005433e4\ncall    _memmove                                                       ; +0x177, 0x1005433e7\nmov     byte ptr [r12+r15], 0                                          ; +0x17c, 0x1005433ec\nmov     [rbp+var_58], 1Ah                                              ; +0x181, 0x1005433f1\nmov     rax, 6E7561675F746567h                                         ; +0x185, 0x1005433f5\nmov     [rbp+var_57], rax                                              ; +0x18f, 0x1005433ff\nmov     rax, 7374656C746E7561h                                         ; +0x193, 0x100543403\nmov     [rbp+var_57+5], rax                                            ; +0x19d, 0x10054340d\nmov     byte ptr [rbp-4Ah], 0                                          ; +0x1a1, 0x100543411\nlea     rsi, [rbp+var_88]                                              ; +0x1a5, 0x100543415\nlea     rdx, [rbp+__dst]                                               ; +0x1ac, 0x10054341c\nlea     rcx, [rbp+var_58]                                              ; +0x1b0, 0x100543420\nmov     rdi, rbx                                                       ; +0x1b4, 0x100543424\nmov     r8d, 34h ; '4'                                                 ; +0x1b7, 0x100543427\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x1bd, 0x10054342d\ntest    [rbp+var_58], 1                                                ; +0x1c2, 0x100543432\njnz     short loc_100543465                                            ; +0x1c6, 0x100543436\ntest    byte ptr [rbp+__dst], 1                                        ; +0x1c8, 0x100543438\njnz     short loc_100543474                                            ; +0x1cc, 0x10054343c\ntest    byte ptr [rbp+var_88], 1                                       ; +0x1ce, 0x10054343e\njnz     short loc_100543486                                            ; +0x1d5, 0x100543445\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x1d7, 0x100543447\njz      short loc_100543456                                            ; +0x1db, 0x10054344b\nmov     rdi, qword ptr [rbp+var_70.__r_.__value_+10h]; __p             ; +0x1dd, 0x10054344d\ncall    __ZdlPv; operator delete(void *)                               ; +0x1e1, 0x100543451\nadd     rsp, 68h                                                       ; +0x1e6, 0x100543456\npop     rbx                                                            ; +0x1ea, 0x10054345a\npop     r12                                                            ; +0x1eb, 0x10054345b\npop     r13                                                            ; +0x1ed, 0x10054345d\npop     r14                                                            ; +0x1ef, 0x10054345f\npop     r15                                                            ; +0x1f1, 0x100543461\npop     rbp                                                            ; +0x1f3, 0x100543463\nretn                                                                   ; +0x1f4, 0x100543464\nmov     rdi, [rbp+__p]; __p                                            ; +0x1f5, 0x100543465\ncall    __ZdlPv; operator delete(void *)                               ; +0x1f9, 0x100543469\ntest    byte ptr [rbp+__dst], 1                                        ; +0x1fe, 0x10054346e\njz      short loc_10054343E                                            ; +0x202, 0x100543472\nmov     rdi, [rbp+var_30]; __p                                         ; +0x204, 0x100543474\ncall    __ZdlPv; operator delete(void *)                               ; +0x208, 0x100543478\ntest    byte ptr [rbp+var_88], 1                                       ; +0x20d, 0x10054347d\njz      short loc_100543447                                            ; +0x214, 0x100543484\nmov     rdi, [rbp+var_78]; __p                                         ; +0x216, 0x100543486\ncall    __ZdlPv; operator delete(void *)                               ; +0x21a, 0x10054348a\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x21f, 0x10054348f\njnz     short loc_10054344D                                            ; +0x223, 0x100543493\njmp     short loc_100543456                                            ; +0x225, 0x100543495\ncall    sub_100006BF0                                                  ; +0x227, 0x100543497", "xrefs": ["GauntletSelectLayer::init @ 0x100571dda", "GauntletSelectLayer::onRefresh @ 0x100572063"], "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"}