{"type": "func", "start": 5309616, "end": 5309754, "name": "GJMultiplayerManager::onProcessHttpRequestCompleted", "pseudocode": "// \n// GJMultiplayerManager::onProcessHttpRequestCompleted from 0x5104b0 to 0x51053a (138 bytes)\n// \n// 0 xrefs:\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 GJMultiplayerManager::onProcessHttpRequestCompleted(\n        GJMultiplayerManager *a1,\n        cocos2d::extension::CCHttpClient *a2,\n        cocos2d::extension::CCHttpResponse *a3)\n{\n  cocos2d::extension::CCHttpRequest *pHttpRequest; // r3\n  char *m_data; // r10\n  int requestTypeGJ; // r9\n  GameToolbox v7; // [sp+10h] [bp-10h] BYREF\n  char v8[4]; // [sp+14h] [bp-Ch] BYREF\n  char v9[4]; // [sp+18h] [bp-8h] BYREF\n\n  pHttpRequest = a3->_pHttpRequest;\n  m_data = (char *)pHttpRequest->_tag.m_data.m_data;\n  requestTypeGJ = pHttpRequest->_requestTypeGJ;\n  GameToolbox::getResponse(&v7, a3);\n  sub_775C20(v8);\n  sub_776584((int)v9, m_data);\n  GJMultiplayerManager::handleIt((int)a1, 1, v8, v9, requestTypeGJ);\n  sub_774008(v9);\n  sub_774008(v8);\n  sub_774008(&v7);\n}", "assembly": "; \n; GJMultiplayerManager::onProcessHttpRequestCompleted from 0x5104b0 to 0x51053a (138 bytes)\n; \n; 0 xrefs:\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, 0x5104b0\nSUB             SP, SP, #0x20                                          ; +0x4, 0x5104b4\nLDR             R4, =(__stack_chk_guard_ptr - 0x5104C2)                ; +0x6, 0x5104b6\nADD             R5, SP, #0x20+var_10                                   ; +0x8, 0x5104b8\nADD             R6, SP, #0x20+var_C                                    ; +0xa, 0x5104ba\nMOV             R1, R2; cocos2d::extension::CCHttpResponse *           ; +0xc, 0x5104bc\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x5104be\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x5104c0\nMOV             R8, R0                                                 ; +0x12, 0x5104c2\nMOV             R0, R5; this                                           ; +0x14, 0x5104c4\nLDR             R3, [R4]                                               ; +0x16, 0x5104c6\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x18, 0x5104c8\nLDR             R3, [R2,#0x34]                                         ; +0x1a, 0x5104ca\nLDR.W           R10, [R3,#0x48]                                        ; +0x1c, 0x5104cc\nLDR.W           R9, [R3,#0x68]                                         ; +0x20, 0x5104d0\nBL              _ZN11GameToolbox11getResponseEPN7cocos2d9extension14CCHttpResponseE; GameToolbox::getResponse(cocos2d::extension::CCHttpResponse *) ; +0x24, 0x5104d4\nMOV             R0, R6                                                 ; +0x28, 0x5104d8\nMOV             R1, R5                                                 ; +0x2a, 0x5104da\nBL              sub_775C20                                             ; +0x2c, 0x5104dc\nADD             R7, SP, #0x20+var_8                                    ; +0x30, 0x5104e0\nMOV             R1, R10; char *                                        ; +0x32, 0x5104e2\nADD             R2, SP, #0x20+var_14                                   ; +0x34, 0x5104e4\nMOV             R0, R7; int                                            ; +0x36, 0x5104e6\nBL              sub_776584                                             ; +0x38, 0x5104e8\nSTR.W           R9, [SP,#0x20+var_20]                                  ; +0x3c, 0x5104ec\nMOV             R0, R8                                                 ; +0x40, 0x5104f0\nMOVS            R1, #1                                                 ; +0x42, 0x5104f2\nMOV             R2, R6                                                 ; +0x44, 0x5104f4\nMOV             R3, R7                                                 ; +0x46, 0x5104f6\nBL              _ZN20GJMultiplayerManager8handleItEbSsSs10GJHttpType; GJMultiplayerManager::handleIt(bool,std::string,std::string,GJHttpType) ; +0x48, 0x5104f8\nMOV             R0, R7                                                 ; +0x4c, 0x5104fc\nBL              sub_774008                                             ; +0x4e, 0x5104fe\nMOV             R0, R6                                                 ; +0x52, 0x510502\nBL              sub_774008                                             ; +0x54, 0x510504\nMOV             R0, R5                                                 ; +0x58, 0x510508\nBL              sub_774008                                             ; +0x5a, 0x51050a\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x5e, 0x51050e\nLDR             R3, [R4]                                               ; +0x60, 0x510510\nCMP             R2, R3                                                 ; +0x62, 0x510512\nBEQ             loc_510534                                             ; +0x64, 0x510514\nBLX             __stack_chk_fail                                       ; +0x66, 0x510516\nMOV             R0, R7                                                 ; +0x6a, 0x51051a\nBL              sub_774008                                             ; +0x6c, 0x51051c\nB               loc_510522                                             ; +0x70, 0x510520\nMOV             R0, R6                                                 ; +0x72, 0x510522\nBL              sub_774008                                             ; +0x74, 0x510524\nB               loc_51052A                                             ; +0x78, 0x510528\nMOV             R0, R5                                                 ; +0x7a, 0x51052a\nBL              sub_774008                                             ; +0x7c, 0x51052c\nBL              __cxa_end_cleanup                                      ; +0x80, 0x510530\nADD             SP, SP, #0x20 ; ' '                                    ; +0x84, 0x510534\nPOP.W           {R4-R10,PC}                                            ; +0x86, 0x510536", "xrefs": [], "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"}