Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System_String_o *__cdecl Dress_Core_DressEnv__GetEncryptSalt(const MethodInfo *method)
- {
- System_Collections_Generic_List_byte__o *v1; // x19
- __int64 v2; // x1
- System_Text_Encoding_o *v3; // x20
- Dress_Core_DressEnv_c *v4; // x0
- struct System_String_array *v5; // x21
- __int64 v6; // x0
- System_String_o *v7; // x21
- __int64 v8; // x20
- System_Text_Encoding_o *v9; // x0
- struct System_String_array *v10; // x22
- __int64 v11; // x0
- System_String_o *v12; // x22
- const MethodInfo *v13; // x2
- __int64 v14; // x21
- System_Text_Encoding_o *v15; // x0
- struct System_String_array *v16; // x23
- __int64 v17; // x0
- System_String_o *v18; // x23
- const MethodInfo *v19; // x2
- __int64 v20; // x22
- System_Text_Encoding_o *v21; // x0
- struct System_String_array *v22; // x24
- __int64 v23; // x0
- System_String_o *v24; // x24
- const MethodInfo *v25; // x2
- __int64 v26; // x23
- int32_t v27; // w0
- int32_t v28; // w24
- __int64 v29; // x0
- __int64 v30; // x0
- __int64 v31; // x0
- unsigned int v32; // w8
- __int64 v33; // x24
- __int64 v34; // x0
- uint8_t v35; // w24
- System_Text_Encoding_o *v36; // x20
- System_Byte_array *v37; // x19
- if ( !(byte_10313FE51 & 1) )
- {
- sub_100D3B36C(12739LL);
- byte_10313FE51 = 1;
- }
- v1 = (System_Collections_Generic_List_byte__o *)sub_100D17F40(System_Collections_Generic_List_byte__TypeInfo);
- System_Collections_Generic_List_byte____ctor(
- v1,
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte___ctor__);
- v3 = System_Text_Encoding__get_UTF8(0LL);
- v4 = Dress_Core_DressEnv_TypeInfo;
- if ( Dress_Core_DressEnv_TypeInfo->_2.bitflags2 & 2 && !Dress_Core_DressEnv_TypeInfo->_2.cctor_finished )
- {
- sub_100D31AA8(Dress_Core_DressEnv_TypeInfo, v2);
- v4 = Dress_Core_DressEnv_TypeInfo;
- }
- v5 = v4->static_fields->encryptKeys;
- if ( !v5 )
- sub_100D23A40(0LL);
- if ( LODWORD(v5->max_length) <= 5 )
- {
- v6 = sub_100D2464C();
- sub_100D239B4(v6, 0LL, 0LL);
- }
- v7 = v5->m_Items[5];
- if ( !v3 )
- sub_100D23A40(0LL);
- v8 = ((__int64 (__fastcall *)(System_Text_Encoding_o *, System_String_o *, const MethodInfo *))v3->klass->vtable._19_GetBytes.methodPtr)(
- v3,
- v7,
- v3->klass->vtable._19_GetBytes.method);
- v9 = System_Text_Encoding__get_UTF8(0LL);
- v10 = Dress_Core_DressEnv_TypeInfo->static_fields->encryptKeys;
- if ( !v10 )
- sub_100D23A40(0LL);
- if ( LODWORD(v10->max_length) <= 2 )
- {
- v11 = sub_100D2464C();
- sub_100D239B4(v11, 0LL, 0LL);
- }
- v12 = v10->m_Items[2];
- if ( !v9 )
- sub_100D23A40(0LL);
- v13 = v9->klass->vtable._19_GetBytes.method;
- v14 = ((__int64 (*)(void))v9->klass->vtable._19_GetBytes.methodPtr)();
- v15 = System_Text_Encoding__get_UTF8(0LL);
- v16 = Dress_Core_DressEnv_TypeInfo->static_fields->encryptKeys;
- if ( !v16 )
- sub_100D23A40(0LL);
- if ( LODWORD(v16->max_length) <= 1 )
- {
- v17 = sub_100D2464C();
- sub_100D239B4(v17, 0LL, 0LL);
- }
- v18 = v16->m_Items[1];
- if ( !v15 )
- sub_100D23A40(0LL);
- v19 = v15->klass->vtable._19_GetBytes.method;
- v20 = ((__int64 (*)(void))v15->klass->vtable._19_GetBytes.methodPtr)();
- v21 = System_Text_Encoding__get_UTF8(0LL);
- v22 = Dress_Core_DressEnv_TypeInfo->static_fields->encryptKeys;
- if ( !v22 )
- sub_100D23A40(0LL);
- if ( LODWORD(v22->max_length) <= 3 )
- {
- v23 = sub_100D2464C();
- sub_100D239B4(v23, 0LL, 0LL);
- }
- v24 = v22->m_Items[3];
- if ( !v21 )
- sub_100D23A40(0LL);
- v25 = v21->klass->vtable._19_GetBytes.method;
- v26 = ((__int64 (*)(void))v21->klass->vtable._19_GetBytes.methodPtr)();
- if ( !v1 )
- LABEL_33:
- sub_100D23A40(0LL);
- while ( System_Collections_Generic_List_byte___get_Count(
- v1,
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte__get_Count__) <= 127 )
- {
- v27 = System_Collections_Generic_List_byte___get_Count(
- v1,
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte__get_Count__);
- v28 = v27;
- if ( !v14 )
- sub_100D23A40(0LL);
- if ( (unsigned int)v27 >= *(_DWORD *)(v14 + 24) )
- {
- v29 = sub_100D2464C();
- sub_100D239B4(v29, 0LL, 0LL);
- }
- if ( !v1 )
- sub_100D23A40(0LL);
- System_Collections_Generic_List_byte___Add(
- v1,
- *(_BYTE *)(v14 + v27 + 32),
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte__Add__);
- if ( !v8 )
- sub_100D23A40(0LL);
- if ( (unsigned int)(v28 + 1) >= *(_DWORD *)(v8 + 24) )
- {
- v30 = sub_100D2464C();
- sub_100D239B4(v30, 0LL, 0LL);
- }
- if ( !v1 )
- sub_100D23A40(0LL);
- System_Collections_Generic_List_byte___Add(
- v1,
- *(_BYTE *)(v8 + v28 + 1 + 32),
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte__Add__);
- if ( !v26 )
- sub_100D23A40(0LL);
- if ( (unsigned int)(v28 + 2) >= *(_DWORD *)(v26 + 24) )
- {
- v31 = sub_100D2464C();
- sub_100D239B4(v31, 0LL, 0LL);
- }
- if ( !v1 )
- sub_100D23A40(0LL);
- System_Collections_Generic_List_byte___Add(
- v1,
- *(_BYTE *)(v26 + v28 + 2 + 32),
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte__Add__);
- if ( !v20 )
- sub_100D23A40(0LL);
- v32 = v28 + 3;
- v33 = v28 + 3;
- if ( v32 >= *(_DWORD *)(v20 + 24) )
- {
- v34 = sub_100D2464C();
- sub_100D239B4(v34, 0LL, 0LL);
- }
- v35 = *(_BYTE *)(v20 + v33 + 32);
- if ( !v1 )
- sub_100D23A40(0LL);
- System_Collections_Generic_List_byte___Add(
- v1,
- v35,
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte__Add__);
- if ( !v1 )
- goto LABEL_33;
- }
- System_Collections_Generic_List_byte___Reverse(
- v1,
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte__Reverse__);
- v36 = System_Text_Encoding__get_UTF8(0LL);
- if ( !v1 )
- sub_100D23A40(0LL);
- v37 = System_Collections_Generic_List_byte___ToArray(
- v1,
- (const MethodInfo_1431 *)Method_System_Collections_Generic_List_byte__ToArray__);
- if ( !v36 )
- sub_100D23A40(0LL);
- return (System_String_o *)((__int64 (__fastcall *)(System_Text_Encoding_o *, System_Byte_array *, _QWORD))v36->klass[1]._1.byval_arg.data)(
- v36,
- v37,
- *(_QWORD *)&v36->klass[1]._1.byval_arg.bits);
- }
Advertisement
Add Comment
Please, Sign In to add comment