.text:01DAB4DF ; void __cdecl clc_cvarvalue2(client_t *client)
.text:01DAB4DF clc_cvarvalue2 proc near ; DATA XREF: .data:01E665DCo
.text:01DAB4DF
.text:01DAB4DF cvar_stack = byte ptr -100h
.text:01DAB4DF client = dword ptr 8
.text:01DAB4DF
.text:01DAB4DF push ebp
.text:01DAB4E0 mov ebp, esp
.text:01DAB4E2 sub esp, 100h
.text:01DAB4E8 push ebx
.text:01DAB4E9 push esi
.text:01DAB4EA push edi
.text:01DAB4EB call MSG_ReadLong
.text:01DAB4F0 mov esi, eax
.text:01DAB4F2 call MSG_ReadString
.text:01DAB4F7 push eax ; src
.text:01DAB4F8 lea eax, [ebp+cvar_stack]
.text:01DAB4FE push eax ; dest
.text:01DAB4FF call strcpy ; [B]Here we can PWN the Stack![/B]
.text:01DAB504 add esp, 8
.text:01DAB507 call MSG_ReadString
.text:01DAB50C mov ebx, [ebp+client]
.text:01DAB50F mov edi, eax
.text:01DAB511 mov eax, dword_2124DD0
.text:01DAB516 test eax, eax
.text:01DAB518 jz short loc_1DAB52F
.text:01DAB51A mov edx, [ebx+4B9Ch]
.text:01DAB520 lea ecx, [ebp+cvar_stack]
.text:01DAB526 push edi
.text:01DAB527 push ecx
.text:01DAB528 push esi
.text:01DAB529 push edx
.text:01DAB52A call eax ; dword_2124DD0
.text:01DAB52C add esp, 10h
.text:01DAB52F
.text:01DAB52F loc_1DAB52F: ; CODE XREF: clc_cvarvalue2+39j
.text:01DAB52F lea eax, [ebp+cvar_stack]
.text:01DAB535 push edi
.text:01DAB536 push eax
.text:01DAB537 add ebx, 4D08h
.text:01DAB53D push esi
.text:01DAB53E push ebx ; Args
.text:01DAB53F push offset aCvarQueryRes_0 ; "Cvar query response: name:%s, request I"...
.text:01DAB544 call Con_DPrintf
.text:01DAB549 add esp, 14h
.text:01DAB54C pop edi
.text:01DAB54D pop esi
.text:01DAB54E pop ebx
.text:01DAB54F mov esp, ebp
.text:01DAB551 pop ebp
.text:01DAB552 retn
.text:01DAB552 clc_cvarvalue2 endp