Untitled

 avatar
unknown
plain_text
a year ago
515 B
5
Indexable
char __usercall sub_4011D0@<al>(CHAR *a1@<ebx>, int a2@<edi>)
{
  LPSTR CommandLineA; // eax
  LPSTR v3; // esi
  int v4; // ecx
  int v5; // edx

  CommandLineA = GetCommandLineA();
  v3 = CommandLineA;
  v4 = 0;
  v5 = 1;
  while ( *v3 )
  {
    if ( *v3 == 32 )
    {
      v5 |= 1u;
    }
    else
    {
      v4 += v5;
      v5 = 0;
    }
    if ( v4 == a2 )
    {
      LOBYTE(CommandLineA) = *v3;
      *a1++ = *v3;
    }
    ++v3;
  }
  *a1 = 0;
  return (char)CommandLineA;
}
Editor is loading...
Leave a Comment