{"type": "func", "start": 4298639680, "end": 4298639790, "name": "GameManager::joinDiscord", "pseudocode": "// \n// GameManager::joinDiscord from 0x100380940 to 0x1003809ae (110 bytes)\n// \n// 1 xrefs:\n// > FollowRewardPage::FLAlert_Clicked @ 0x1004219a1\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 GameManager::joinDiscord(GameManager *a1)\n{\n  cocos2d::CCApplication *v1; // rax\n  timeb v2; // [rsp+8h] [rbp-18h] BYREF\n\n  if ( GameToolbox::doWeHaveInternet() )\n  {\n    v1 = cocos2d::CCApplication::sharedApplication();\n    ((void (__fastcall *)(cocos2d::CCApplication *, const char *))v1->openURL)(\n      v1,\n      \"https://discord.com/invite/geometrydash\");\n    a1->m_clickedDiscord = 1;\n    ftime(&v2);\n    a1->m_socialsDuration = (double)(v2.millitm + 1000 * (v2.time & 0xFFFFF)) / 1000.0;\n  }\n}", "assembly": "; \n; GameManager::joinDiscord from 0x100380940 to 0x1003809ae (110 bytes)\n; \n; 1 xrefs:\n; > FollowRewardPage::FLAlert_Clicked @ 0x1004219a1\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, 0x100380940\nmov     rbp, rsp                                                       ; +0x1, 0x100380941\npush    rbx                                                            ; +0x4, 0x100380944\nsub     rsp, 18h                                                       ; +0x5, 0x100380945\nmov     rbx, rdi                                                       ; +0x9, 0x100380949\ncall    GameToolbox__doWeHaveInternet                                  ; +0xc, 0x10038094c\ntest    al, al                                                         ; +0x11, 0x100380951\njz      short loc_1003809A7                                            ; +0x13, 0x100380953\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x15, 0x100380955\nmov     rcx, [rax]                                                     ; +0x1a, 0x10038095a\nlea     rsi, aHttpsDiscordCo; \"https://discord.com/invite/geometrydash\" ; +0x1d, 0x10038095d\nmov     rdi, rax                                                       ; +0x24, 0x100380964\ncall    qword ptr [rcx+60h]                                            ; +0x27, 0x100380967\nmov     byte ptr [rbx+289h], 1                                         ; +0x2a, 0x10038096a\nlea     rdi, [rbp+var_18]; timeb *                                     ; +0x31, 0x100380971\ncall    _ftime                                                         ; +0x35, 0x100380975\nmovzx   eax, [rbp+var_18.millitm]                                      ; +0x3a, 0x10038097a\nmov     rcx, [rbp+var_18.time]                                         ; +0x3e, 0x10038097e\nand     ecx, 0FFFFFh                                                   ; +0x42, 0x100380982\nimul    rcx, 3E8h                                                      ; +0x48, 0x100380988\nadd     rcx, rax                                                       ; +0x4f, 0x10038098f\ncvtsi2sd xmm0, rcx                                                     ; +0x52, 0x100380992\ndivsd   xmm0, cs:qword_100815208                                       ; +0x57, 0x100380997\nmovsd   qword ptr [rbx+290h], xmm0                                     ; +0x5f, 0x10038099f\nadd     rsp, 18h                                                       ; +0x67, 0x1003809a7\npop     rbx                                                            ; +0x6b, 0x1003809ab\npop     rbp                                                            ; +0x6c, 0x1003809ac\nretn                                                                   ; +0x6d, 0x1003809ad", "xrefs": ["FollowRewardPage::FLAlert_Clicked @ 0x1004219a1"], "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"}