Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.48 KB | None | 0 0
  1. char __thiscall sub_101F1470(int **this, int a2, int a3, size_t a4)
  2. {
  3.   int **v4; // esi
  4.   bool v5; // zf
  5.   int v6; // ecx
  6.   int *v7; // esi
  7.   _DWORD *v8; // edi
  8.   int v9; // ebx
  9.   int v10; // esi
  10.   int v11; // esi
  11.   const char *v12; // eax
  12.   char *v13; // edi
  13.   _DWORD *v15; // [esp+10h] [ebp-38h]
  14.   int v16; // [esp+14h] [ebp-34h]
  15.   char *v17; // [esp+18h] [ebp-30h]
  16.   char v18; // [esp+1Ch] [ebp-2Ch]
  17.   int v19; // [esp+44h] [ebp-4h]
  18.  
  19.   v4 = this;
  20.   v5 = *this == 0;
  21.   v17 = a3;
  22.   if ( v5 )
  23.     return 0;
  24.   std::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string<char,std::char_traits<char>,std::allocator<char>>(
  25.     &v18,
  26.     off_1069E484[a2]);
  27.   sub_101F13F0(*v4, &v15, &v18);
  28.   v7 = *v4;
  29.   v8 = v15;
  30.   v9 = v7[6];
  31.   v10 = *v7;
  32.   if ( !v15 || v15 != v10 )
  33.     invalid_parameter_noinfo(v6);
  34.   v11 = v16;
  35.   if ( v16 == v9 )
  36.   {
  37.     v19 = -1;
  38.     std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string<char,std::char_traits<char>,std::allocator<char>>(&v18);
  39.     return 0;
  40.   }
  41.   if ( v8 )
  42.     v8 = *v8;
  43.   else
  44.     invalid_parameter_noinfo(v6);
  45.   if ( v11 == v8[6] )
  46.     invalid_parameter_noinfo(v6);
  47.   if ( *(v11 + 64) < 0x10u )
  48.     v12 = (v11 + 44);
  49.   else
  50.     v12 = *(v11 + 44);
  51.   v13 = v17;
  52.   strncpy(v17, v12, a4);
  53.   v13[a4 - 1] = 0;
  54.   v19 = -1;
  55.   std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string<char,std::char_traits<char>,std::allocator<char>>(&v18);
  56.   return 1;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement