{"type": "func", "start": 5310676, "end": 5310954, "name": "GJMultiplayerManager::joinLobby", "pseudocode": "// \n// GJMultiplayerManager::joinLobby from 0x5108d4 to 0x5109ea (278 bytes)\n// \n// 1 xrefs:\n// > MPLobbyLayer::onUpdateLobby @ 0x535452\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\nbool GJMultiplayerManager::joinLobby(GJMultiplayerManager *a1, int a2)\n{\n  cocos2d::CCString *v4; // r0\n  char *CString; // r10\n  int LastCommentIDForGame; // r6\n  cocos2d::CCString *v7; // r0\n  const char *v8; // r0\n  cocos2d::CCString *v9; // r0\n  char *v10; // r0\n  char v12; // [sp+1Ch] [bp-14h] BYREF\n  char *v13; // [sp+20h] [bp-10h] BYREF\n  const char *v14; // [sp+24h] [bp-Ch] BYREF\n  char *v15; // [sp+28h] [bp-8h] BYREF\n\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i_joinLobby\", (const char *)a2);\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  if ( GJMultiplayerManager::isDLActive(a1, CString) )\n    return 0;\n  GJMultiplayerManager::addDLToActive(a1, CString);\n  GJMultiplayerManager::getBasePostString((GJMultiplayerManager *)&v12, (char *)a1);\n  LastCommentIDForGame = GJMultiplayerManager::getLastCommentIDForGame(a1, a2);\n  v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%c%s%s%c%c%s\",\n                              (const char *)&dword_54 + 3,\n                              \"mfv\",\n                              \"3899\",\n                              103,\n                              99,\n                              &aO1i2r3e45s7t89[13]);\n  v8 = cocos2d::CCString::getCString(v7);\n  v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"&gameID=%i&lastCommentID=%i&secret=%s\",\n                              (const char *)a2,\n                              LastCommentIDForGame,\n                              v8);\n  v10 = (char *)cocos2d::CCString::getCString(v9);\n  sub_774544((int)&v12, v10);\n  sub_776584((int)&v13, \"https://www.geometrydash.com/database/joinMPLobby.php\");\n  sub_775C20(&v14);\n  sub_776584((int)&v15, CString);\n  GJMultiplayerManager::ProcessHttpRequest(a1, &v13, &v14, &v15, 57);\n  sub_774008(&v15);\n  sub_774008(&v14);\n  sub_774008(&v13);\n  sub_774008(&v12);\n  return 1;\n}", "assembly": "; \n; GJMultiplayerManager::joinLobby from 0x5108d4 to 0x5109ea (278 bytes)\n; \n; 1 xrefs:\n; > MPLobbyLayer::onUpdateLobby @ 0x535452\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.W          {R4-R10,LR}                                            ; +0x0, 0x5108d4\nMOV             R9, R0                                                 ; +0x4, 0x5108d8\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x5108E8)                ; +0x6, 0x5108da\nSUB             SP, SP, #0x30                                          ; +0xa, 0x5108de\nLDR             R0, =(aIJoinlobby - 0x5108EE); \"%i_joinLobby\"          ; +0xc, 0x5108e0\nMOV             R5, R1                                                 ; +0xe, 0x5108e2\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x10, 0x5108e4\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x12, 0x5108e6\nADD             R0, PC; \"%i_joinLobby\"                                 ; +0x16, 0x5108ea\nLDR.W           R3, [R8]                                               ; +0x18, 0x5108ec\nSTR             R3, [SP,#0x30+var_4]                                   ; +0x1c, 0x5108f0\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1e, 0x5108f2\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x22, 0x5108f6\nMOV             R10, R0                                                ; +0x26, 0x5108fa\nMOV             R0, R9; this                                           ; +0x28, 0x5108fc\nMOV             R1, R10; char *                                        ; +0x2a, 0x5108fe\nBL              _ZN20GJMultiplayerManager10isDLActiveEPKc; GJMultiplayerManager::isDLActive(char const*) ; +0x2c, 0x510900\nCMP             R0, #0                                                 ; +0x30, 0x510904\nBNE             loc_5109B2                                             ; +0x32, 0x510906\nADD             R4, SP, #0x30+var_14                                   ; +0x34, 0x510908\nMOV             R0, R9; this                                           ; +0x36, 0x51090a\nMOV             R1, R10; char *                                        ; +0x38, 0x51090c\nBL              _ZN20GJMultiplayerManager13addDLToActiveEPKc; GJMultiplayerManager::addDLToActive(char const*) ; +0x3a, 0x51090e\nMOV             R0, R4; this                                           ; +0x3e, 0x510912\nMOV             R1, R9                                                 ; +0x40, 0x510914\nBL              _ZN20GJMultiplayerManager17getBasePostStringEv; GJMultiplayerManager::getBasePostString(void) ; +0x42, 0x510916\nMOV             R0, R9; this                                           ; +0x46, 0x51091a\nMOV             R1, R5; int                                            ; +0x48, 0x51091c\nBL              _ZN20GJMultiplayerManager23getLastCommentIDForGameEi; GJMultiplayerManager::getLastCommentIDForGame(int) ; +0x4a, 0x51091e\nMOVS            R2, #0x67 ; 'g'                                        ; +0x4e, 0x510922\nMOVS            R3, #0x63 ; 'c'                                        ; +0x50, 0x510924\nSTMEA.W         SP, {R2,R3}                                            ; +0x52, 0x510926\nMOV             R6, R0                                                 ; +0x56, 0x51092a\nLDR             R3, =(aO1i2r3e45s7t89+0x1A - 0x510936); \"9g\"           ; +0x58, 0x51092c\nMOVS            R1, #(dword_54+3); char *                              ; +0x5a, 0x51092e\nLDR             R0, =(aCSSCCS - 0x51093C); \"%c%s%s%c%c%s\"              ; +0x5c, 0x510930\nADD             R3, PC; \"9g\"                                           ; +0x5e, 0x510932\nLDR             R2, =(aMfv - 0x510940); \"mfv\"                          ; +0x60, 0x510934\nSTR             R3, [SP,#0x30+var_28]                                  ; +0x62, 0x510936\nADD             R0, PC; \"%c%s%s%c%c%s\"                                 ; +0x64, 0x510938\nLDR             R3, =(a3899 - 0x510942); \"3899\"                        ; +0x66, 0x51093a\nADD             R2, PC; \"mfv\"                                          ; +0x68, 0x51093c\nADD             R3, PC; \"3899\"                                         ; +0x6a, 0x51093e\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x6c, 0x510940\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x70, 0x510944\nMOV             R3, R0                                                 ; +0x74, 0x510948\nLDR             R0, =(aGameidILastcom - 0x510954); \"&gameID=%i&lastCommentID=%i&secret=%s\" ; +0x76, 0x51094a\nMOV             R1, R5; char *                                         ; +0x78, 0x51094c\nMOV             R2, R6                                                 ; +0x7a, 0x51094e\nADD             R0, PC; \"&gameID=%i&lastCommentID=%i&secret=%s\"        ; +0x7c, 0x510950\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x7e, 0x510952\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x82, 0x510956\nMOV             R1, R0; char *                                         ; +0x86, 0x51095a\nMOV             R0, R4; int                                            ; +0x88, 0x51095c\nBL              sub_774544                                             ; +0x8a, 0x51095e\nADD             R5, SP, #0x30+var_10                                   ; +0x8e, 0x510962\nLDR             R1, =(aHttpsWwwGeomet - 0x51096E); \"https://www.geometrydash.com/database/j\"... ; +0x90, 0x510964\nADD             R2, SP, #0x30+var_1C                                   ; +0x92, 0x510966\nMOV             R0, R5; int                                            ; +0x94, 0x510968\nADD             R1, PC; \"https://www.geometrydash.com/database/j\"...   ; +0x96, 0x51096a\nBL              sub_776584                                             ; +0x98, 0x51096c\nADD             R6, SP, #0x30+var_C                                    ; +0x9c, 0x510970\nMOV             R1, R4                                                 ; +0x9e, 0x510972\nMOV             R0, R6                                                 ; +0xa0, 0x510974\nBL              sub_775C20                                             ; +0xa2, 0x510976\nADD             R7, SP, #0x30+var_8                                    ; +0xa6, 0x51097a\nMOV             R1, R10; char *                                        ; +0xa8, 0x51097c\nADD             R2, SP, #0x30+var_18                                   ; +0xaa, 0x51097e\nMOV             R0, R7; int                                            ; +0xac, 0x510980\nBL              sub_776584                                             ; +0xae, 0x510982\nMOVS            R3, #0x39 ; '9'                                        ; +0xb2, 0x510986\nMOV             R0, R9                                                 ; +0xb4, 0x510988\nSTR             R3, [SP,#0x30+var_30]                                  ; +0xb6, 0x51098a\nMOV             R1, R5                                                 ; +0xb8, 0x51098c\nMOV             R2, R6                                                 ; +0xba, 0x51098e\nMOV             R3, R7                                                 ; +0xbc, 0x510990\nBL              _ZN20GJMultiplayerManager18ProcessHttpRequestESsSsSs10GJHttpType; GJMultiplayerManager::ProcessHttpRequest(std::string,std::string,std::string,GJHttpType) ; +0xbe, 0x510992\nMOV             R0, R7                                                 ; +0xc2, 0x510996\nBL              sub_774008                                             ; +0xc4, 0x510998\nMOV             R0, R6                                                 ; +0xc8, 0x51099c\nBL              sub_774008                                             ; +0xca, 0x51099e\nMOV             R0, R5                                                 ; +0xce, 0x5109a2\nBL              sub_774008                                             ; +0xd0, 0x5109a4\nMOV             R0, R4                                                 ; +0xd4, 0x5109a8\nBL              sub_774008                                             ; +0xd6, 0x5109aa\nMOVS            R0, #1                                                 ; +0xda, 0x5109ae\nB               loc_5109B4                                             ; +0xdc, 0x5109b0\nMOVS            R0, #0                                                 ; +0xde, 0x5109b2\nLDR             R2, [SP,#0x30+var_4]                                   ; +0xe0, 0x5109b4\nLDR.W           R3, [R8]                                               ; +0xe2, 0x5109b6\nCMP             R2, R3                                                 ; +0xe6, 0x5109ba\nBEQ             loc_5109E4                                             ; +0xe8, 0x5109bc\nBLX             __stack_chk_fail                                       ; +0xea, 0x5109be\nMOV             R0, R7                                                 ; +0xee, 0x5109c2\nBL              sub_774008                                             ; +0xf0, 0x5109c4\nB               loc_5109CA                                             ; +0xf4, 0x5109c8\nMOV             R0, R6                                                 ; +0xf6, 0x5109ca\nBL              sub_774008                                             ; +0xf8, 0x5109cc\nB               loc_5109D2                                             ; +0xfc, 0x5109d0\nMOV             R0, R5                                                 ; +0xfe, 0x5109d2\nBL              sub_774008                                             ; +0x100, 0x5109d4\nB               loc_5109DA                                             ; +0x104, 0x5109d8\nMOV             R0, R4                                                 ; +0x106, 0x5109da\nBL              sub_774008                                             ; +0x108, 0x5109dc\nBL              __cxa_end_cleanup                                      ; +0x10c, 0x5109e0\nADD             SP, SP, #0x30 ; '0'                                    ; +0x110, 0x5109e4\nPOP.W           {R4-R10,PC}                                            ; +0x112, 0x5109e6", "xrefs": ["MPLobbyLayer::onUpdateLobby @ 0x535452"], "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"}