{"type": "func", "start": 5371006160, "end": 5371006950, "name": "GameLevelManager::getGauntlets", "pseudocode": "// \n// GameLevelManager::getGauntlets from 0x140230cd0 to 0x140230fe6 (790 bytes)\n// \n// 3 xrefs:\n// > GauntletSelectLayer::init @ 0x1402fe548\n// > GauntletSelectLayer::onRefresh @ 0x1402fe81e\n// > <???> @ 0x14091bee4\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:30 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall GameLevelManager::getGauntlets(__int64 a1)\n{\n  __int64 v2; // rbx\n  void *v3; // r8\n  __int64 v4; // rbx\n  __int64 v5; // rax\n  __int64 v6; // rcx\n  void *v7; // rcx\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  cocos2d::CCString *v10; // rax\n  char *v11; // rax\n  size_t v12; // rbx\n  size_t v13; // r8\n  _QWORD *v14; // rdx\n  int Reserved; // [rsp+20h] [rbp-69h]\n  int v16; // [rsp+28h] [rbp-61h]\n  __int128 v17; // [rsp+40h] [rbp-49h] BYREF\n  __int64 v18; // [rsp+50h] [rbp-39h]\n  __int64 v19; // [rsp+58h] [rbp-31h]\n  __int128 v20; // [rsp+60h] [rbp-29h] BYREF\n  __int64 v21; // [rsp+70h] [rbp-19h]\n  __int64 v22; // [rsp+78h] [rbp-11h]\n  __int128 *v23; // [rsp+80h] [rbp-9h]\n  __int128 *v24; // [rsp+88h] [rbp-1h]\n  void *Block[2]; // [rsp+98h] [rbp+Fh] BYREF\n  __int128 v26; // [rsp+A8h] [rbp+1Fh]\n  _QWORD Src[4]; // [rsp+B8h] [rbp+2Fh] BYREF\n\n  *(_OWORD *)Block = 0;\n  v26 = 0;\n  sub_14003D230(Block, \"get_gauntlets\", 0xDu);\n  v2 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1192), Block);\n  if ( *((_QWORD *)&v26 + 1) > 0xFu )\n  {\n    v3 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v26 + 1) + 1LL) >= 0x1000 )\n    {\n      v3 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v3);\n  }\n  if ( !v2 )\n  {\n    *(_OWORD *)Block = 0;\n    v26 = 0;\n    sub_14003D230(Block, \"get_gauntlets\", 0xDu);\n    v4 = *(_QWORD *)(a1 + 1192);\n    v5 = cocos2d::CCNode::create();\n    cocos2d::CCDictionary::setObject(v4, v5, Block);\n    if ( *((_QWORD *)&v26 + 1) > 0xFu )\n    {\n      v7 = Block[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v26 + 1) + 1LL) >= 0x1000 )\n      {\n        v7 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v7);\n    }\n    GameLevelManager::getBasePostString(v6, Src);\n    v16 = 98;\n    Reserved = 103;\n    v8 = cocos2d::CCString::createWithFormat(\n           \"%c%s%s%c%c%s\",\n           87,\n           \"mfd\",\n           \"2893\",\n           Reserved,\n           v16,\n           (const char *)&word_14070D040);\n    CString = cocos2d::CCString::getCString(v8);\n    v10 = cocos2d::CCString::createWithFormat(\"&secret=%s&special=1&vkey=%i\", CString, 51);\n    v11 = (char *)cocos2d::CCString::getCString(v10);\n    v12 = -1;\n    v13 = -1;\n    do\n      ++v13;\n    while ( v11[v13] );\n    sub_140044D80(Src, v11, v13);\n    v23 = &v17;\n    v24 = &v20;\n    v17 = 0;\n    v18 = 0;\n    v19 = 0;\n    sub_14003D230(&v17, \"get_gauntlets\", 0xDu);\n    v14 = Src;\n    if ( Src[3] > 0xFu )\n      v14 = (_QWORD *)Src[0];\n    v20 = 0;\n    v21 = 0;\n    v22 = 0;\n    do\n      ++v12;\n    while ( *((_BYTE *)v14 + v12) );\n    sub_14003D230(&v20, v14, v12);\n    *(_OWORD *)Block = 0;\n    v26 = 0u;\n    Block[0] = sub_14003D460(0x40u);\n    *(_QWORD *)&v26 = 55;\n    *((_QWORD *)&v26 + 1) = 63;\n    strcpy((char *)Block[0], \"https://www.boomlings.com/database/getGJGauntlets21.php\");\n    GameLevelManager::ProcessHttpRequest(\n      (cocos2d::CCActionManager **)a1,\n      (__int64)Block,\n      (const char *)&v20,\n      (const char *)&v17,\n      0x3Au);\n    sub_14003D310((__int64)Src);\n  }\n}", "assembly": "; \n; GameLevelManager::getGauntlets from 0x140230cd0 to 0x140230fe6 (790 bytes)\n; \n; 3 xrefs:\n; > GauntletSelectLayer::init @ 0x1402fe548\n; > GauntletSelectLayer::onRefresh @ 0x1402fe81e\n; > <???> @ 0x14091bee4\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:30 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x140230cd0\nmov     [rsp-8+arg_10], rsi                                            ; +0x5, 0x140230cd5\nmov     [rsp-8+arg_18], rdi                                            ; +0xa, 0x140230cda\npush    rbp                                                            ; +0xf, 0x140230cdf\nlea     rbp, [rsp-57h]                                                 ; +0x10, 0x140230ce0\nsub     rsp, 0E0h                                                      ; +0x15, 0x140230ce5\nmov     rax, cs:__security_cookie                                      ; +0x1c, 0x140230cec\nxor     rax, rsp                                                       ; +0x23, 0x140230cf3\nmov     [rbp+57h+var_8], rax                                           ; +0x26, 0x140230cf6\nmov     rsi, rcx                                                       ; +0x2a, 0x140230cfa\nxorps   xmm0, xmm0                                                     ; +0x2d, 0x140230cfd\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x30, 0x140230d00\nxorps   xmm1, xmm1                                                     ; +0x34, 0x140230d04\nmovdqu  [rbp+57h+var_38], xmm1                                         ; +0x37, 0x140230d07\nmov     r8d, 0Dh                                                       ; +0x3c, 0x140230d0c\nlea     rdx, aGetGauntlets; \"get_gauntlets\"                            ; +0x42, 0x140230d12\nlea     rcx, [rbp+57h+Block]                                           ; +0x49, 0x140230d19\ncall    sub_14003D230                                                  ; +0x4d, 0x140230d1d\nnop                                                                    ; +0x52, 0x140230d22\nlea     rdx, [rbp+57h+Block]                                           ; +0x53, 0x140230d23\nmov     rcx, [rsi+4A8h]                                                ; +0x57, 0x140230d27\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x5e, 0x140230d2e\nmov     rbx, rax                                                       ; +0x64, 0x140230d34\nmov     rdx, qword ptr [rbp+57h+var_38+8]                              ; +0x67, 0x140230d37\ncmp     rdx, 0Fh                                                       ; +0x6b, 0x140230d3b\njbe     short loc_140230D89                                            ; +0x6f, 0x140230d3f\ninc     rdx                                                            ; +0x71, 0x140230d41\nmov     r8, [rbp+57h+Block]                                            ; +0x74, 0x140230d44\nmov     rcx, r8                                                        ; +0x78, 0x140230d48\ncmp     rdx, 1000h                                                     ; +0x7b, 0x140230d4b\njb      short loc_140230D81                                            ; +0x82, 0x140230d52\nadd     rdx, 27h ; '''                                                 ; +0x84, 0x140230d54\nmov     r8, [r8-8]                                                     ; +0x88, 0x140230d58\nsub     rcx, r8                                                        ; +0x8c, 0x140230d5c\nsub     rcx, 8                                                         ; +0x8f, 0x140230d5f\ncmp     rcx, 1Fh                                                       ; +0x93, 0x140230d63\njbe     short loc_140230D81                                            ; +0x97, 0x140230d67\nxor     edi, edi                                                       ; +0x99, 0x140230d69\nmov     [rsp+0E0h+Reserved], rdi; Reserved                             ; +0x9b, 0x140230d6b\nxor     r9d, r9d; LineNo                                               ; +0xa0, 0x140230d70\nxor     r8d, r8d; FileName                                             ; +0xa3, 0x140230d73\nxor     edx, edx; FunctionName                                         ; +0xa6, 0x140230d76\nxor     ecx, ecx; Expression                                           ; +0xa8, 0x140230d78\ncall    cs:_invoke_watson                                              ; +0xaa, 0x140230d7a\ndb 0CCh                                                                ; +0xb0, 0x140230d80\nmov     rcx, r8; Block                                                 ; +0xb1, 0x140230d81\ncall    j_j_free                                                       ; +0xb4, 0x140230d84\ntest    rbx, rbx                                                       ; +0xb9, 0x140230d89\njnz     loc_140230FC1                                                  ; +0xbc, 0x140230d8c\nxorps   xmm0, xmm0                                                     ; +0xc2, 0x140230d92\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0xc5, 0x140230d95\nxorps   xmm1, xmm1                                                     ; +0xc9, 0x140230d99\nmovdqu  [rbp+57h+var_38], xmm1                                         ; +0xcc, 0x140230d9c\nmov     r8d, 0Dh                                                       ; +0xd1, 0x140230da1\nlea     rdx, aGetGauntlets; \"get_gauntlets\"                            ; +0xd7, 0x140230da7\nlea     rcx, [rbp+57h+Block]                                           ; +0xde, 0x140230dae\ncall    sub_14003D230                                                  ; +0xe2, 0x140230db2\nnop                                                                    ; +0xe7, 0x140230db7\nmov     rbx, [rsi+4A8h]                                                ; +0xe8, 0x140230db8\ncall    cs:?create@CCNode@cocos2d@@SAPEAV12@XZ; cocos2d::CCNode::create(void) ; +0xef, 0x140230dbf\nmov     rdx, rax                                                       ; +0xf5, 0x140230dc5\nlea     r8, [rbp+57h+Block]                                            ; +0xf8, 0x140230dc8\nmov     rcx, rbx                                                       ; +0xfc, 0x140230dcc\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 &) ; +0xff, 0x140230dcf\nnop                                                                    ; +0x105, 0x140230dd5\nmov     rdx, qword ptr [rbp+57h+var_38+8]                              ; +0x106, 0x140230dd6\ncmp     rdx, 0Fh                                                       ; +0x10a, 0x140230dda\njbe     short loc_140230E25                                            ; +0x10e, 0x140230dde\ninc     rdx                                                            ; +0x110, 0x140230de0\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x113, 0x140230de3\nmov     rax, rcx                                                       ; +0x117, 0x140230de7\ncmp     rdx, 1000h                                                     ; +0x11a, 0x140230dea\njb      short loc_140230E20                                            ; +0x121, 0x140230df1\nadd     rdx, 27h ; '''                                                 ; +0x123, 0x140230df3\nmov     rcx, [rcx-8]                                                   ; +0x127, 0x140230df7\nsub     rax, rcx                                                       ; +0x12b, 0x140230dfb\nsub     rax, 8                                                         ; +0x12e, 0x140230dfe\ncmp     rax, 1Fh                                                       ; +0x132, 0x140230e02\njbe     short loc_140230E20                                            ; +0x136, 0x140230e06\nxor     edi, edi                                                       ; +0x138, 0x140230e08\nmov     [rsp+0E0h+Reserved], rdi; Reserved                             ; +0x13a, 0x140230e0a\nxor     r9d, r9d; LineNo                                               ; +0x13f, 0x140230e0f\nxor     r8d, r8d; FileName                                             ; +0x142, 0x140230e12\nxor     edx, edx; FunctionName                                         ; +0x145, 0x140230e15\nxor     ecx, ecx; Expression                                           ; +0x147, 0x140230e17\ncall    cs:_invoke_watson                                              ; +0x149, 0x140230e19\nalign 20h                                                              ; +0x14f, 0x140230e1f\ncall    j_j_free                                                       ; +0x150, 0x140230e20\nlea     rdx, [rbp+57h+Src]                                             ; +0x155, 0x140230e25\ncall    GameLevelManager__getBasePostString                            ; +0x159, 0x140230e29\nnop                                                                    ; +0x15e, 0x140230e2e\nlea     rax, word_14070D040                                            ; +0x15f, 0x140230e2f\nmov     [rsp+0E0h+var_B0], rax                                         ; +0x166, 0x140230e36\nmov     [rsp+0E0h+var_B8], 62h ; 'b'                                   ; +0x16b, 0x140230e3b\nmov     dword ptr [rsp+0E0h+Reserved], 67h ; 'g'                       ; +0x173, 0x140230e43\nlea     r9, a2893; \"2893\"                                              ; +0x17b, 0x140230e4b\nlea     r8, aMfd; \"mfd\"                                                ; +0x182, 0x140230e52\nmov     edx, 57h ; 'W'                                                 ; +0x189, 0x140230e59\nlea     rcx, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0x18e, 0x140230e5e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x195, 0x140230e65\nmov     rcx, rax                                                       ; +0x19b, 0x140230e6b\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x19e, 0x140230e6e\nmov     rdx, rax                                                       ; +0x1a4, 0x140230e74\nmov     r8d, 33h ; '3'                                                 ; +0x1a7, 0x140230e77\nlea     rcx, aSecretSSpecial; \"&secret=%s&special=1&vkey=%i\"           ; +0x1ad, 0x140230e7d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1b4, 0x140230e84\nmov     rcx, rax                                                       ; +0x1ba, 0x140230e8a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1bd, 0x140230e8d\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x1c3, 0x140230e93\nmov     r8, rbx                                                        ; +0x1ca, 0x140230e9a\nnop     dword ptr [rax]                                                ; +0x1cd, 0x140230e9d\ninc     r8; Size                                                       ; +0x1d0, 0x140230ea0\ncmp     byte ptr [rax+r8], 0                                           ; +0x1d3, 0x140230ea3\njnz     short loc_140230EA0                                            ; +0x1d8, 0x140230ea8\nmov     rdx, rax; void *                                               ; +0x1da, 0x140230eaa\nlea     rcx, [rbp+57h+Src]; Src                                        ; +0x1dd, 0x140230ead\ncall    sub_140044D80                                                  ; +0x1e1, 0x140230eb1\nlea     rax, [rbp+57h+var_A0]                                          ; +0x1e6, 0x140230eb6\nmov     [rbp+57h+var_60], rax                                          ; +0x1ea, 0x140230eba\nlea     rax, [rbp+57h+var_80]                                          ; +0x1ee, 0x140230ebe\nmov     [rbp+57h+var_58], rax                                          ; +0x1f2, 0x140230ec2\nxorps   xmm0, xmm0                                                     ; +0x1f6, 0x140230ec6\nmovups  [rbp+57h+var_A0], xmm0                                         ; +0x1f9, 0x140230ec9\nxor     edi, edi                                                       ; +0x1fd, 0x140230ecd\nmov     [rbp+57h+var_90], rdi                                          ; +0x1ff, 0x140230ecf\nmov     [rbp+57h+var_88], rdi                                          ; +0x203, 0x140230ed3\nmov     r8d, 0Dh                                                       ; +0x207, 0x140230ed7\nlea     rdx, aGetGauntlets; \"get_gauntlets\"                            ; +0x20d, 0x140230edd\nlea     rcx, [rbp+57h+var_A0]                                          ; +0x214, 0x140230ee4\ncall    sub_14003D230                                                  ; +0x218, 0x140230ee8\nnop                                                                    ; +0x21d, 0x140230eed\nlea     rdx, [rbp+57h+Src]                                             ; +0x21e, 0x140230eee\ncmp     [rbp+57h+var_10], 0Fh                                          ; +0x222, 0x140230ef2\ncmova   rdx, [rbp+57h+Src]                                             ; +0x227, 0x140230ef7\nxorps   xmm0, xmm0                                                     ; +0x22c, 0x140230efc\nmovups  [rbp+57h+var_80], xmm0                                         ; +0x22f, 0x140230eff\nmov     [rbp+57h+var_70], rdi                                          ; +0x233, 0x140230f03\nmov     [rbp+57h+var_68], rdi                                          ; +0x237, 0x140230f07\nnop     dword ptr [rax+rax+00h]                                        ; +0x23b, 0x140230f0b\ninc     rbx                                                            ; +0x240, 0x140230f10\ncmp     byte ptr [rdx+rbx], 0                                          ; +0x243, 0x140230f13\njnz     short loc_140230F10                                            ; +0x247, 0x140230f17\nmov     r8, rbx                                                        ; +0x249, 0x140230f19\nlea     rcx, [rbp+57h+var_80]                                          ; +0x24c, 0x140230f1c\ncall    sub_14003D230                                                  ; +0x250, 0x140230f20\nnop                                                                    ; +0x255, 0x140230f25\nxorps   xmm0, xmm0                                                     ; +0x256, 0x140230f26\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x259, 0x140230f29\nmov     qword ptr [rbp+57h+var_38], rdi                                ; +0x25d, 0x140230f2d\nmov     qword ptr [rbp+57h+var_38+8], rdi                              ; +0x261, 0x140230f31\nmov     ecx, 40h ; '@'                                                 ; +0x265, 0x140230f35\ncall    sub_14003D460                                                  ; +0x26a, 0x140230f3a\nmov     r8, rax                                                        ; +0x26f, 0x140230f3f\nmov     [rbp+57h+Block], rax                                           ; +0x272, 0x140230f42\nmov     qword ptr [rbp+57h+var_38], 37h ; '7'                          ; +0x276, 0x140230f46\nmov     qword ptr [rbp+57h+var_38+8], 3Fh ; '?'                        ; +0x27e, 0x140230f4e\nmovups  xmm0, cs:xmmword_140758170                                     ; +0x286, 0x140230f56\nmovups  xmmword ptr [rax], xmm0                                        ; +0x28d, 0x140230f5d\nmovups  xmm1, cs:xmmword_140758180                                     ; +0x290, 0x140230f60\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x297, 0x140230f67\nmovups  xmm0, cs:xmmword_140758190                                     ; +0x29b, 0x140230f6b\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x2a2, 0x140230f72\nmov     edx, cs:dword_1407581A0                                        ; +0x2a6, 0x140230f76\nmov     [rax+30h], edx                                                 ; +0x2ac, 0x140230f7c\nmovzx   eax, cs:word_1407581A4                                         ; +0x2af, 0x140230f7f\nmov     [r8+34h], ax                                                   ; +0x2b6, 0x140230f86\nmovzx   eax, cs:byte_1407581A6                                         ; +0x2bb, 0x140230f8b\nmov     [r8+36h], al                                                   ; +0x2c2, 0x140230f92\nmov     byte ptr [r8+37h], 0                                           ; +0x2c6, 0x140230f96\nmov     dword ptr [rsp+0E0h+Reserved], 3Ah ; ':'                       ; +0x2cb, 0x140230f9b\nlea     r9, [rbp+57h+var_A0]                                           ; +0x2d3, 0x140230fa3\nlea     r8, [rbp+57h+var_80]                                           ; +0x2d7, 0x140230fa7\nlea     rdx, [rbp+57h+Block]                                           ; +0x2db, 0x140230fab\nmov     rcx, rsi                                                       ; +0x2df, 0x140230faf\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x2e2, 0x140230fb2\nnop                                                                    ; +0x2e7, 0x140230fb7\nlea     rcx, [rbp+57h+Src]                                             ; +0x2e8, 0x140230fb8\ncall    sub_14003D310                                                  ; +0x2ec, 0x140230fbc\nmov     rcx, [rbp+57h+var_8]                                           ; +0x2f1, 0x140230fc1\nxor     rcx, rsp; StackCookie                                          ; +0x2f5, 0x140230fc5\ncall    __security_check_cookie                                        ; +0x2f8, 0x140230fc8\nlea     r11, [rsp+0E0h+var_s0]                                         ; +0x2fd, 0x140230fcd\nmov     rbx, [r11+18h]                                                 ; +0x305, 0x140230fd5\nmov     rsi, [r11+20h]                                                 ; +0x309, 0x140230fd9\nmov     rdi, [r11+28h]                                                 ; +0x30d, 0x140230fdd\nmov     rsp, r11                                                       ; +0x311, 0x140230fe1\npop     rbp                                                            ; +0x314, 0x140230fe4\nretn                                                                   ; +0x315, 0x140230fe5", "xrefs": ["GauntletSelectLayer::init @ 0x1402fe548", "GauntletSelectLayer::onRefresh @ 0x1402fe81e", "<???> @ 0x14091bee4"], "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"}