Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.64 KB | None | 0 0
  1. int __fastcall sub_114B0(void *a1)
  2. {
  3.   FILE *v1; // r4
  4.   int *v2; // r0
  5.   char *v3; // r0
  6.   FILE *v4; // r4
  7.   int *v5; // r0
  8.   char *v6; // r0
  9.   int result; // r0
  10.   FILE *v8; // r4
  11.   int *v9; // r0
  12.   char *v10; // r0
  13.   FILE *v11; // r4
  14.   int *v12; // r0
  15.   char *v13; // r0
  16.   void *v14; // [sp+Ch] [bp-90h]
  17.   char v15; // [sp+10h] [bp-8Ch]
  18.   char v16; // [sp+50h] [bp-4Ch]
  19.  
  20.   v14 = a1;
  21.   if ( sub_11240(0x11FEC) )
  22.   {
  23.     if ( sub_10C58(0x11F10, &v16, &v15) == 1 )
  24.     {
  25.       result = sub_111FC("/app/bin/playerengine_india");
  26.       if ( !result )
  27.       {
  28.         sub_11020(v14);
  29.         system("rm -rf /app/bin/playerengine_global");
  30.         system("rm -rf /app/bin/playerengine.conf");
  31.         if ( symlink("/app/bin/playerengine_india.conf", "/app/bin/playerengine.conf") == -1 )
  32.         {
  33.           v8 = (FILE *)stderr;
  34.           v9 = _errno_location();
  35.           v10 = strerror(*v9);
  36.           fprintf(v8, "symlink(/app/bin/playerengine.conf): %s\n", v10);
  37.         }
  38.         else
  39.         {
  40.           system("/bin/touch /app/bin/playerengine_india");
  41.         }
  42.         result = sub_11020(v14);
  43.       }
  44.     }
  45.     else
  46.     {
  47.       result = sub_111FC("/app/bin/playerengine_global");
  48.       if ( !result )
  49.       {
  50.         sub_11020(v14);
  51.         system("rm -rf /app/bin/playerengine_india");
  52.         system("rm -rf /app/bin/playerengine.conf");
  53.         if ( symlink("/app/bin/playerengine_global.conf", "/app/bin/playerengine.conf") == -1 )
  54.         {
  55.           v11 = (FILE *)stderr;
  56.           v12 = _errno_location();
  57.           v13 = strerror(*v12);
  58.           fprintf(v11, "symlink(/app/bin/playerengine.conf): %s\n", v13);
  59.         }
  60.         else
  61.         {
  62.           system("/bin/touch /app/bin/playerengine_global");
  63.         }
  64.         result = sub_11020(v14);
  65.       }
  66.     }
  67.   }
  68.   else
  69.   {
  70.     sub_11020(v14);
  71.     if ( sub_10C58(73488, &v16, &v15) == 1 )
  72.     {
  73.       if ( symlink("/app/bin/playerengine_india.conf", "/app/bin/playerengine.conf") == -1 )
  74.       {
  75.         v1 = (FILE *)stderr;
  76.         v2 = _errno_location();
  77.         v3 = strerror(*v2);
  78.         fprintf(v1, "symlink(/app/bin/playerengine.conf): %s\n", v3);
  79.       }
  80.       else
  81.       {
  82.         system("/bin/touch /app/bin/playerengine_india");
  83.       }
  84.     }
  85.     else if ( symlink("/app/bin/playerengine_global.conf", "/app/bin/playerengine.conf") == -1 )
  86.     {
  87.       v4 = (FILE *)stderr;
  88.       v5 = _errno_location();
  89.       v6 = strerror(*v5);
  90.       fprintf(v4, "symlink(/app/bin/playerengine.conf): %s\n", v6);
  91.     }
  92.     else
  93.     {
  94.       system("/bin/touch /app/bin/playerengine_global");
  95.     }
  96.     result = sub_11020(v14);
  97.   }
  98.   return result;
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement