Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __stdcall GetSerial(char *serial, int serialSize) // netc.dll + 0x7CCB0 (I compiled the module using the github version of date 04/08/ 2016, not sure what version is)
- {
- int v2; // edi@4
- int v3; // ebx@4
- int v4; // esi@4
- int v5; // ecx@4
- int v6; // ebx@6
- const char *serialGenerated; // eax@8
- char *v8; // [sp+Ch] [bp-1Ch]@6
- size_t v9; // [sp+1Ch] [bp-Ch]@6
- unsigned int v10; // [sp+20h] [bp-8h]@8
- if ( serialSize == 1 )
- {
- sub_10047E90(*(_DWORD *)serial, *((char **)serial + 1), *((_DWORD *)serial + 2), *((char **)serial + 3));
- }
- else if ( serialSize == 2 )
- {
- v2 = *((_DWORD *)serial + 2);
- v3 = *(_DWORD *)serial;
- v4 = *((_WORD *)serial + 2);
- v5 = *(_DWORD *)(sub_10047730() + 136);
- if ( v5 )
- {
- *(_BYTE *)(v5 + 1) = 1;
- sub_10046340(v4, v3, v2);
- }
- }
- else
- {
- GenerateSerial((char *)&v8); // netc.dll + 0x95F60
- v6 = v9;
- if ( v9 >= serialSize )
- v6 = serialSize - 1;
- serialGenerated = (const char *)&v8;
- if ( v10 >= 0x10 )
- serialGenerated = v8;
- strncpy(serial, serialGenerated, v6);
- serial[v6] = 0;
- if ( v10 >= 0x10 )
- operator delete(v8);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement