Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char __thiscall sub_101F1470(int **this, int a2, int a3, size_t a4)
- {
- int **v4; // esi
- bool v5; // zf
- int v6; // ecx
- int *v7; // esi
- _DWORD *v8; // edi
- int v9; // ebx
- int v10; // esi
- int v11; // esi
- const char *v12; // eax
- char *v13; // edi
- _DWORD *v15; // [esp+10h] [ebp-38h]
- int v16; // [esp+14h] [ebp-34h]
- char *v17; // [esp+18h] [ebp-30h]
- char v18; // [esp+1Ch] [ebp-2Ch]
- int v19; // [esp+44h] [ebp-4h]
- v4 = this;
- v5 = *this == 0;
- v17 = a3;
- if ( v5 )
- return 0;
- std::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string<char,std::char_traits<char>,std::allocator<char>>(
- &v18,
- off_1069E484[a2]);
- sub_101F13F0(*v4, &v15, &v18);
- v7 = *v4;
- v8 = v15;
- v9 = v7[6];
- v10 = *v7;
- if ( !v15 || v15 != v10 )
- invalid_parameter_noinfo(v6);
- v11 = v16;
- if ( v16 == v9 )
- {
- v19 = -1;
- std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string<char,std::char_traits<char>,std::allocator<char>>(&v18);
- return 0;
- }
- if ( v8 )
- v8 = *v8;
- else
- invalid_parameter_noinfo(v6);
- if ( v11 == v8[6] )
- invalid_parameter_noinfo(v6);
- if ( *(v11 + 64) < 0x10u )
- v12 = (v11 + 44);
- else
- v12 = *(v11 + 44);
- v13 = v17;
- strncpy(v17, v12, a4);
- v13[a4 - 1] = 0;
- v19 = -1;
- std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string<char,std::char_traits<char>,std::allocator<char>>(&v18);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement