Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.10 KB | None | 0 0
  1. // local variable allocation has failed, the output may be wrong!
  2. int __cdecl main(int argc, const char **argv, const char **envp)
  3. {
  4.   char *v3; // rsi
  5.   char v5; // [rsp+Bh] [rbp-15h]
  6.   int v6; // [rsp+Ch] [rbp-14h]
  7.   char s; // [rsp+10h] [rbp-10h]
  8.   unsigned __int64 v8; // [rsp+18h] [rbp-8h]
  9.  
  10.   v8 = __readfsqword(0x28u);
  11.   v5 = 121;
  12.   strcpy(goodbye, "Goodbye ");
  13.   init(*(_QWORD *)&argc, argv, envp);
  14.   puts("What's your name?");
  15.   fgets(&s, 8, stdin);
  16.   strtok(&s, "\n");
  17.   strcat(goodbye, &s);
  18.   puts("Describe yourself, we want to know if you'll fit at our table...\n");
  19.   v3 = (char *)32;
  20.   fgets(buffer, 32, stdin);
  21.   do
  22.   {
  23.     while ( 1 )
  24.     {
  25.       printf("Do you want to edit your description? (y/n): ", v3);
  26.       v3 = &v5;
  27.       __isoc99_scanf(" %c", &v5);
  28.       if ( v5 != 121 )
  29.         break;
  30.       puts("What do you want to change?");
  31.       __isoc99_scanf(" %d", &v6);
  32.       getchar();
  33.       puts("Give me something to replace that with");
  34.       v3 = (char *)32;
  35.       fgets(&buffer[v6], 32, stdin);
  36.     }
  37.   }
  38.   while ( v5 != 110 );
  39.   puts(goodbye);
  40.   return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement