Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DWORD __cdecl sub_6BE14C()
- {
- DWORD result; // eax@3
- DWORD hash_01; // esi@4
- DWORD hash_02; // esi@4
- DWORD hash_03; // esi@4
- DWORD hash_04; // esi@4
- LARGE_INTEGER PerformanceCount; // [sp+8h] [bp-10h]@4
- struct _FILETIME SystemTimeAsFileTime; // [sp+10h] [bp-8h]@1
- SystemTimeAsFileTime.dwLowDateTime = 0;
- SystemTimeAsFileTime.dwHighDateTime = 0;
- if ( some_mem_for_hash != 0xBB40E64E && some_mem_for_hash & 0xFFFF0000 )
- {
- result = ~some_mem_for_hash;
- negative_of_some_hash = ~some_mem_for_hash;
- }
- else
- {
- GetSystemTimeAsFileTime(&SystemTimeAsFileTime);
- hash_02 = GetCurrentProcessId() ^ SystemTimeAsFileTime.dwLowDateTime ^ SystemTimeAsFileTime.dwHighDateTime;
- hash_03 = GetCurrentThreadId() ^ hash_02;
- hash_04 = GetTickCount() ^ hash_03;
- QueryPerformanceCounter(&PerformanceCount);
- result = PerformanceCount.LowPart ^ PerformanceCount.HighPart;
- hash_01 = PerformanceCount.LowPart ^ PerformanceCount.HighPart ^ hash_04;
- if ( hash_01 == 0xBB40E64E )
- {
- hash_01 = 0xBB40E64Fu; // hash_01++; // 0xBB40E64E hat eine spezielle bedeutung, irgendwie
- }
- else
- {
- if ( !(hash_01 & 0xFFFF0000) ) // Wenn die upper 2 Bytes leer sind
- {
- result = hash_01 << 16; // Soll result der lower Teil sein
- hash_01 |= hash_01 << 16; // und der gespeicherte Hash soll dann an den High-Stellen die lower bytes haben. Somit ist dann die obere if für den nächsten aufruf true.
- }
- }
- some_mem_for_hash = hash_01;
- negative_of_some_hash = ~hash_01;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment