Guest User

Untitled

a guest
Feb 25th, 2017
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.09 KB | None | 0 0
  1. unsigned __int8 *__cdecl sub_68EC0640(_DWORD *a1, int a2)
  2. {
  3.   int v2; // esi@1
  4.   unsigned __int8 *result; // eax@4
  5.   unsigned __int8 v4; // al@3
  6.   char v5; // al@20
  7.   char v6; // al@23
  8.   char v7; // al@28
  9.   int v8; // [esp+0h] [ebp-38h]@8
  10.   int v9; // [esp+4h] [ebp-34h]@31
  11.   const char *v10; // [esp+8h] [ebp-30h]@31
  12.   const char *v11; // [esp+Ch] [ebp-2Ch]@31
  13.   int v12; // [esp+10h] [ebp-28h]@31
  14.  
  15.   v2 = *(unsigned __int16 *)(a2 + 8);
  16.   if ( v2 == 1102 )
  17.   {
  18.     sub_690714C0(a1, *(_DWORD *)(a2 + 12));
  19.   }
  20.   else if ( v2 == 1134 )
  21.   {
  22.     v4 = sub_68EB97F0(a1);
  23.     sub_69070D40(a1, 0, v4);
  24.   }
  25.   result = (unsigned __int8 *)a1[3];
  26.   if ( result )
  27.   {
  28.     if ( !result[27] && !result[25] )
  29.     {
  30.       _InterlockedOr((volatile signed __int32 *)&v8, 0);
  31.       result = (unsigned __int8 *)result[12];
  32.       if ( !(_BYTE)result )
  33.       {
  34.         switch ( v2 )
  35.         {
  36.           case 1101:
  37.             return (unsigned __int8 *)sub_68EC01E0(a1);
  38.           case 1102:
  39.             if ( a1[5] != *(_DWORD *)(a2 + 12) )
  40.               return result;
  41.             sub_68EB9AB0(a1);
  42.             goto LABEL_18;
  43.           case 1103:
  44.             return (unsigned __int8 *)sub_68EB9AB0(a1);
  45.           case 1104:
  46.             sub_68EBB360(a1);
  47.             goto LABEL_13;
  48.           case 1105:
  49.             result = (unsigned __int8 *)sub_68EB9860(a1);
  50.             break;
  51.           case 1108:
  52.           case 1109:
  53.             result = (unsigned __int8 *)sub_68EBB100(a1);
  54.             break;
  55.           case 1110:
  56.             result = (unsigned __int8 *)sub_68EBAFE0(a1);
  57.             break;
  58.           case 1111:
  59.             v8 = a1[3];
  60.             v7 = input_GetItem(v8);
  61.             result = (unsigned __int8 *)sub_69071580(a1, v7);
  62.             break;
  63.           case 1112:
  64.             result = (unsigned __int8 *)a1[3];
  65.             if ( result && !result[27] && !result[25] )
  66.             {
  67.               _InterlockedOr((volatile signed __int32 *)&v8, 0);
  68.               result = (unsigned __int8 *)result[12];
  69.             }
  70.             break;
  71.           case 1113:
  72.             v6 = input_GetItem(a1[3]);
  73.             sub_69071500(a1, v6);
  74.             sub_68EBEFA0(a1);
  75. LABEL_18:
  76.             result = (unsigned __int8 *)sub_68EBF2B0(a1);
  77.             break;
  78.           case 1114:
  79. LABEL_13:
  80.             result = (unsigned __int8 *)sub_68EBEFA0(a1);
  81.             break;
  82.           case 1115:
  83.             v8 = a1[3];
  84.             v5 = input_GetItem(v8);
  85.             result = (unsigned __int8 *)sub_69071540(a1, v5);
  86.             break;
  87.           case 1116:
  88.             result = (unsigned __int8 *)sub_69071200(a1);
  89.             break;
  90.           case 1117:
  91.             result = (unsigned __int8 *)sub_68EBAF30(a1);
  92.             break;
  93.           case 1118:
  94.             result = (unsigned __int8 *)sub_690711D0(a1);
  95.             break;
  96.           case 1119:
  97.             result = (unsigned __int8 *)sub_68EBAEB0(a1);
  98.             break;
  99.           case 1120:
  100.             result = (unsigned __int8 *)sub_68EBAE30(a1);
  101.             break;
  102.           case 1125:
  103.             result = (unsigned __int8 *)sub_68EBB0C0(a1);
  104.             break;
  105.           case 1126:
  106.             result = (unsigned __int8 *)sub_68EB9590(a1);
  107.             break;
  108.           case 1127:
  109.             v11 = "got P2PHlsStreamsCmd_Type event";
  110.             v9 = 3;
  111.             v10 = "qt4";
  112.             ((void (__cdecl *)(_DWORD, signed int, const char *, const char *))msg_Generic)(
  113.               a1[2],
  114.               3,
  115.               "qt4",
  116.               "got P2PHlsStreamsCmd_Type event");
  117.             result = (unsigned __int8 *)sub_68EBE530(a1);
  118.             break;
  119.           case 1129:
  120.             result = (unsigned __int8 *)sub_68EBAD80(a1);
  121.             break;
  122.           default:
  123.             v12 = v2;
  124.             v11 = "This shouldn't happen: %i";
  125.             v10 = "qt4";
  126.             v9 = 2;
  127.             msg_Generic(a1[2], 2, "qt4", "This shouldn't happen: %i");
  128.             assert("0", "../../../../vlc-1.1.12/modules/gui/qt4/input_manager.cpp", 332);
  129.             return result;
  130.         }
  131.       }
  132.     }
  133.   }
  134.   return result;
  135. }
Add Comment
Please, Sign In to add comment