Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signed int __thiscall sub_69AD00(_DWORD *this, int a2, int a3)
- {
- _DWORD *v3; // esi
- int v4; // eax
- int v6; // eax
- int v7; // ecx
- int v8; // ebx
- int v9; // edx
- int v10; // eax
- unsigned int v11; // edi
- int v12; // eax
- int v13; // ecx
- int v14; // esi
- int v15; // [esp+10h] [ebp-8h]
- int v16; // [esp+14h] [ebp-4h]
- int v17; // [esp+24h] [ebp+Ch]
- v3 = this;
- if ( this[2] )
- {
- v4 = this[1];
- this[2] = 0;
- ++*(_DWORD *)(v4 + 16);
- }
- if ( !this[1] )
- {
- if ( !this[4] )
- return -2147467259;
- v6 = sub_69C850(this[3]);
- if ( !v6 )
- return -2147467259;
- v7 = v3[4];
- sub_69C350(v6);
- v3[1] = *(_DWORD *)(v3[4] + 4);
- }
- v8 = a2;
- v9 = a3;
- if ( a2 != a3 )
- {
- while ( 1 )
- {
- v10 = v3[1];
- v11 = *(_DWORD *)(v10 + 12) - *(_DWORD *)(v10 + 16);
- v16 = v9 - v8;
- v15 = v3[1];
- if ( v9 - v8 <= v11 )
- break;
- sub_A6DB00(*(_DWORD *)(v10 + 16), v8, v11);
- *(_DWORD *)(v15 + 16) += v11;
- v8 += v11;
- if ( v16 && !v3[4] )
- return -2147467259;
- if ( !v3[4] )
- return -2147467259;
- v12 = sub_69C850(v3[3]);
- if ( !v12 )
- return -2147467259;
- v13 = v3[4];
- sub_69C350(v12);
- v9 = a3;
- v3[1] = *(_DWORD *)(v3[4] + 4);
- if ( v8 == a3 )
- return 0;
- }
- v14 = v3[1];
- v17 = v9 - v8;
- sub_A6DB00(*(_DWORD *)(v10 + 16), v8, v9 - v8);
- *(_DWORD *)(v14 + 16) += v17;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment