Function at 0x4ea310
Capabilities:
Execute anti-debugging instructions
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555c87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x54], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
mov esi, 0xf
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0x93]
mov byte [ebp - 0x94], bl
mov byte [ebp - 4], 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push str.HardwareDescriptionSystemCentralProcessor0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4ea5ac
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x20]
push ecx
push edx
push ebx
push ebx
push str.MHz
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ea3cd
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x10]
push ecx
push str.CPU_Speed:__d_Mhz
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_2
jmp 0x4ea545
mov dword [ebp - 0x30], 0x100
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], 0x32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp eax, ebx
mov dword [ebp - 0x3c], eax
je 0x4ea402
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x4ea405
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp eax, 0x7fffffff
mov dword [ebp - 0x34], eax
je 0x4ea429
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x4ea430
mov dword [ebp - 0x40], 0x7fffffff
push dword [ebp - 0x44]
mov ebx, 0x4ea770
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x48], esi
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x28]
xor esi, esi
push 1
push esi
push esi
push ecx
call fcn.00549080
mov ecx, dword [ebp - 0x48]
sub eax, esi
sbb edx, edi
sub eax, ecx
mov ecx, dword [ebp - 0x24]
sbb edx, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x44]
mov ebx, 0x4ea7f0
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov edx, dword [ebp - 0x48]
push 1
xor ebx, ebx
push 0
push 0
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x24]
push edx
call fcn.00549080
mov ecx, dword [ebp - 0x28]
mov esi, eax
mov eax, dword [ebp - 0x38]
mov edi, edx
sub esi, eax
mov eax, dword [ebp - 0x2c]
sbb edi, ebx
xor edx, edx
sub esi, ecx
sbb edi, edx
xor ecx, ecx
add esi, eax
mov eax, dword [ebp - 0x40]
adc edi, ecx
cmp eax, 0x7fffffff
je 0x4ea4e7
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4ea4ff
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
sub eax, esi
push 0
sbb ecx, edi
push 0x32
push ecx
push eax
call fcn.005493b0
push 0
push 0x3e8
push edx
push eax
call fcn.005493b0
push eax
lea ecx, [ebp - 0x10]
push str.CPU_Speed__Estimated_:__d_Mhz
push ecx
mov dword [ebp - 0x4c], edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42.DLL_CString::operator_2
xor ebx, ebx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x94]
push eax
push ecx
push ebx
push ebx
push str.VendorIdentifier
push edx
mov dword [ebp - 0x1c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ea590
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x10]
push eax
push str.CPU_Vendor:__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x57641c
lea ecx, [ebp - 0x14]
call fcn.00548178
jmp 0x4ea724
mov dword [ebp - 0x44], 0x100
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], 0x32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x4ea5e1
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x4ea5e4
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp eax, 0x7fffffff
mov dword [ebp - 0x38], eax
je 0x4ea608
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x4ea60f
mov dword [ebp - 0x40], 0x7fffffff
push dword [ebp - 0x30]
mov ebx, 0x4ea770
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x3c]
xor esi, esi
push 1
push esi
push esi
push ecx
call fcn.00549080
mov ecx, dword [ebp - 0x2c]
sub eax, esi
sbb edx, edi
sub eax, ecx
mov ecx, dword [ebp - 0x24]
sbb edx, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x30]
mov ebx, 0x4ea7f0
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x24], esi
mov edx, dword [ebp - 0x34]
push 1
xor ebx, ebx
push 0
push 0
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x3c]
push edx
call fcn.00549080
mov ecx, dword [ebp - 0x24]
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov edi, edx
sub esi, eax
mov eax, dword [ebp - 0x48]
sbb edi, ebx
xor edx, edx
sub esi, ecx
sbb edi, edx
xor ecx, ecx
add esi, eax
mov eax, dword [ebp - 0x40]
adc edi, ecx
cmp eax, 0x7fffffff
je 0x4ea6c6
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4ea6de
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
sub eax, esi
push 0
sbb ecx, edi
push 0x32
push ecx
push eax
call fcn.005493b0
push 0
push 0x3e8
push edx
push eax
call fcn.005493b0
push eax
lea ecx, [ebp - 0x10]
push str.CPU_Speed__Estimated_:__d_Mhz__r_n
push ecx
mov dword [ebp - 0x4c], edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42.DLL_CString::operator_2
xor ebx, ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x54], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4