// // sub_1008A62A0 from 0x1008a62a0 to 0x1008a65ce (814 bytes) // // 2 xrefs: // > sub_1008A3350 @ 0x1008a3372 // > MyStuffPopup::onSocialPage @ 0x1008a9e72 // // 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 12:37:16 +0000 // void __fastcall sub_1008A62A0(std::string *this, __int64 a2, int a3) { std::string::value_type *v4; // r14 std::string::value_type *v5; // rcx unsigned __int64 v6; // rax __int64 v7; // rdx const std::string::value_type *v8; // rsi std::string::value_type *v9; // rdx std::string::value_type *v10; // r8 std::string::value_type *v11; // rdi std::string::size_type v13; // rdx std::string::value_type *v14; // rsi std::string::size_type v15; // rdx std::string::value_type __s[16]; // [rsp+0h] [rbp-30h] BYREF std::string::value_type *v17; // [rsp+10h] [rbp-20h] if ( a2 ) { *(_OWORD *)&this->__r_.__value_.__l.0 = 0; this->__r_.__value_.__r.__words[2] = 0; switch ( a3 ) { case 0: if ( (*(_BYTE *)(a2 + 464) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(a2 + 480), *(_QWORD *)(a2 + 472)); } else { v17 = *(std::string::value_type **)(a2 + 480); *(_OWORD *)__s = *(_OWORD *)(a2 + 464); } v4 = &__s[1]; if ( (__s[0] & 1) != 0 ) { v5 = v17; v6 = *(_QWORD *)&__s[8]; } else { v6 = (unsigned __int8)__s[0] >> 1; v5 = &__s[1]; } v7 = 2; if ( v6 < 2 ) v7 = v6; v8 = "https://www.youtube.com/@"; if ( !v6 ) goto LABEL_34; v9 = &v5[v7]; v10 = v5; v11 = v9; break; case 1: std::string::assign(this, "https://www.twitter.com/"); if ( (*(_BYTE *)(a2 + 488) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(a2 + 504), *(_QWORD *)(a2 + 496)); } else { v17 = *(std::string::value_type **)(a2 + 504); *(_OWORD *)__s = *(_OWORD *)(a2 + 488); } if ( (__s[0] & 1) != 0 ) { v14 = v17; v15 = *(_QWORD *)&__s[8]; } else { v15 = (unsigned __int8)__s[0] >> 1; v14 = &__s[1]; } goto LABEL_54; case 2: std::string::assign(this, "https://www.twitch.tv/"); if ( (*(_BYTE *)(a2 + 512) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(a2 + 528), *(_QWORD *)(a2 + 520)); } else { v17 = *(std::string::value_type **)(a2 + 528); *(_OWORD *)__s = *(_OWORD *)(a2 + 512); } if ( (__s[0] & 1) != 0 ) { v14 = v17; v15 = *(_QWORD *)&__s[8]; } else { v15 = (unsigned __int8)__s[0] >> 1; v14 = &__s[1]; } goto LABEL_54; case 3: std::string::assign(this, "https://www.instagram.com/"); if ( (*(_BYTE *)(a2 + 560) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(a2 + 576), *(_QWORD *)(a2 + 568)); } else { v17 = *(std::string::value_type **)(a2 + 576); *(_OWORD *)__s = *(_OWORD *)(a2 + 560); } if ( (__s[0] & 1) != 0 ) { v14 = v17; v15 = *(_QWORD *)&__s[8]; } else { v15 = (unsigned __int8)__s[0] >> 1; v14 = &__s[1]; } goto LABEL_54; case 4: std::string::assign(this, "https://www.tiktok.com/@"); if ( (*(_BYTE *)(a2 + 584) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(a2 + 600), *(_QWORD *)(a2 + 592)); } else { v17 = *(std::string::value_type **)(a2 + 600); *(_OWORD *)__s = *(_OWORD *)(a2 + 584); } if ( (__s[0] & 1) != 0 ) { v14 = v17; v15 = *(_QWORD *)&__s[8]; } else { v15 = (unsigned __int8)__s[0] >> 1; v14 = &__s[1]; } LABEL_54: std::string::append(this, v14, v15); LABEL_55: if ( (__s[0] & 1) != 0 ) operator delete(v17); return; default: return; } while ( 1 ) { ++v10; while ( *(v10 - 1) != 85 ) { if ( v10++ == v9 ) goto LABEL_30; } if ( v10 == v9 ) { LABEL_30: if ( v11 != v9 && v11 == v5 ) { v8 = "https://www.youtube.com/@"; if ( v6 == 24 ) v8 = "https://www.youtube.com/channel/"; } LABEL_34: std::string::assign(this, v8); if ( (__s[0] & 1) != 0 ) { v4 = v17; v13 = *(_QWORD *)&__s[8]; } else { v13 = (unsigned __int8)__s[0] >> 1; } std::string::append(this, v4, v13); goto LABEL_55; } if ( *v10 == 67 ) v11 = v10 - 1; } } *(_WORD *)&this->__r_.__value_.__l.0 = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source