Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // #STR: "Commencing connection retry to", "%s(%s)", "connect %s\n", "Can't retry, no previous connection\n", "Protobuf: %s(%d): %s\n"
- __int64 CL_Retry(void)
- {
- CAddressList *v0; // r13
- int i; // ebx
- CUtlString *v2; // r14
- __int64 v3; // r15
- __int64 v4; // rax
- __int64 v5; // rax
- __int64 v6; // rax
- unsigned int v7; // ebx
- __int64 v8; // rax
- __int64 v9; // rax
- __int64 result; // rax
- __int64 v11; // [rsp+0h] [rbp-40h]
- int v12; // [rsp+8h] [rbp-38h]
- int v13; // [rsp+Ch] [rbp-34h]
- int v14; // [rsp+10h] [rbp-30h]
- v0 = (CAddressList *)(GetBaseLocalClient() + 312);
- if ( (signed int)CAddressList::Count(v0) <= 0 )
- return ConMsg("Can't retry, no previous connection\n");
- ConMsg("Commencing connection retry to ");
- CUtlString::CUtlString((CUtlString *)&v11);
- for ( i = 0; i < (signed int)CAddressList::Count(v0); ++i )
- {
- v2 = (CUtlString *)CAddressList::Get(v0, i);
- v3 = CUtlString::Get(v2);
- v2 = (CUtlString *)((char *)v2 + 24);
- v4 = CUtlString::Get(v2);
- ConMsg("%s(%s)", v3, v4);
- v5 = CUtlString::Get(v2);
- v6 = va("%s ", v5);
- CUtlString::operator+=(&v11, v6);
- }
- ConMsg("\n");
- v7 = Cbuf_GetCurrentPlayer();
- v8 = CUtlString::Get((CUtlString *)&v11);
- v9 = va("connect %s\n", v8);
- result = Cbuf_AddText(v7, v9, 0LL, 0LL);
- v14 = 0;
- if ( v13 >= 0 )
- {
- if ( v11 )
- {
- result = (*(__int64 (__fastcall **)(_QWORD))(*g_pMemAlloc + 16LL))(g_pMemAlloc);
- v11 = 0LL;
- }
- v12 = 0;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement