//
// GameLevelManager::getMapPacks from 0x14022c6f0 to 0x14022c8fd (525 bytes)
//
// 2 xrefs:
// > LevelBrowserLayer::loadPage @ 0x1403e4746
// > ??> @ 0x14091be0c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:28:28 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall GameLevelManager::getMapPacks(cocos2d::CCActionManager **a1, __int64 a2)
{
_BYTE *Key; // rdi
__int64 v5; // rcx
int v6; // ebx
cocos2d::CCString *v7; // rax
const char *CString; // rax
cocos2d::CCString *v9; // rax
char *v10; // rax
size_t v11; // rbx
size_t v12; // r8
size_t v13; // r8
_QWORD *v14; // rdx
int v15; // [rsp+20h] [rbp-79h]
int v16; // [rsp+28h] [rbp-71h]
__int128 v17; // [rsp+40h] [rbp-59h] BYREF
__int64 v18; // [rsp+50h] [rbp-49h]
__int64 v19; // [rsp+58h] [rbp-41h]
__int128 v20; // [rsp+60h] [rbp-39h] BYREF
__int64 v21; // [rsp+70h] [rbp-29h]
__int64 v22; // [rsp+78h] [rbp-21h]
__int128 v23; // [rsp+80h] [rbp-19h] BYREF
__int64 v24; // [rsp+90h] [rbp-9h]
__int64 v25; // [rsp+98h] [rbp-1h]
__int128 *v26; // [rsp+A0h] [rbp+7h]
__int128 *v27; // [rsp+A8h] [rbp+Fh]
_QWORD Src[4]; // [rsp+B8h] [rbp+1Fh] BYREF
Key = (_BYTE *)GJSearchObject::getKey(a2);
if ( !GameLevelManager::isDLActive((__int64)a1, Key) )
{
GameLevelManager::addDLToActive((__int64)a1, Key);
GameLevelManager::getBasePostString(v5, Src);
v6 = *(_DWORD *)(a2 + 424);
v16 = 98;
v15 = 103;
v7 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", v15, v16, (const char *)&word_14070D040);
CString = cocos2d::CCString::getCString(v7);
v9 = cocos2d::CCString::createWithFormat("&page=%i&secret=%s", v6, CString);
v10 = (char *)cocos2d::CCString::getCString(v9);
v11 = -1;
v12 = -1;
do
++v12;
while ( v10[v12] );
sub_140044D80(Src, v10, v12);
v26 = &v20;
v27 = &v23;
v20 = 0;
v21 = 0;
v22 = 0;
v13 = -1;
do
++v13;
while ( Key[v13] );
sub_14003D230(&v20, Key, v13);
v14 = Src;
if ( Src[3] > 0xFu )
v14 = (_QWORD *)Src[0];
v23 = 0;
v24 = 0;
v25 = 0;
do
++v11;
while ( *((_BYTE *)v14 + v11) );
sub_14003D230(&v23, v14, v11);
v17 = 0;
*(_QWORD *)&v17 = sub_14003D460(0x40u);
v18 = 54;
v19 = 63;
strcpy((char *)v17, "https://www.boomlings.com/database/getGJMapPacks21.php");
GameLevelManager::ProcessHttpRequest(a1, (__int64)&v17, (const char *)&v23, (const char *)&v20, 3u);
sub_14003D310((__int64)Src);
}
}