Function at 0x494b80
Capabilities:
Check os version
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5753d6
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5f3168], 0
jne 0x495352
push 0x38
lea eax, [ebp - 0xc8]
mov byte [0x5f3168], 1
push 0
push eax
call fcn.0053f340
add esp, 0xc
lea ecx, [ebp - 0xc8]
push 0
push 0x58e76a
push 0x58e76b
call fcn.00494a30
push 0x38
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0053f340
add esp, 0xc
lea ecx, [ebp - 0x90]
push 0
push 0x58e77a
push 0x58e77b
call fcn.00494a30
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
mov eax, dword [0x5f3170]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [0x5f3150], xmm0
movlpd qword [0x5f3158], xmm0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
movlpd qword [ebp - 0x48], xmm0
call fcn.00495380
inc dword [ebp - 0xa0]
lea ecx, [ebp - 0x58]
add esp, 4
mov dword [0x5f3170], ecx
inc dword [ebp - 0x9c]
mov esi, 0x40
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], eax
xorps xmm0, xmm0
mov eax, dword [0x5f3150]
mov dword [ebp - 0x24], eax
mov eax, dword [0x5f3154]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], ecx
call fcn.00495380
inc dword [ebp - 0x68]
lea eax, [ebp - 0x34]
inc dword [ebp - 0x64]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [0x5f3170], eax
test edx, edx
je 0x494cfe
mov ecx, dword [ebp - 0x24]
add ecx, dword [0x5f3158]
mov eax, dword [ebp - 0x20]
adc eax, dword [0x5f315c]
add dword [edx + 0x10], ecx
adc dword [edx + 0x14], eax
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1ec]
mov dword [0x5f3170], edx
push eax
call fcn.00495380
mov ecx, dword [ebp - 0x2c]
add esp, 4
add ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
adc eax, dword [ebp - 0x20]
sub dword [ebp - 0x1ec], ecx
sbb dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x34]
add dword [eax + 0x2c], 0xffffffff
jne 0x494d49
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1ec]
add dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x1e8]
adc dword [ecx + 0x24], eax
sub esi, 1
je 0x494d59
mov ecx, dword [0x5f3170]
jmp 0x494c90
lea ecx, [ebp - 0x58]
call fcn.00494ac0
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
add ecx, 0x20
push 0
push 0x40
adc eax, 0
push eax
push ecx
call fcn.0053d490
mov esi, dword [ebp - 0xa8]
mov edi, eax
mov ecx, dword [ebp - 0xa4]
add esi, 0x20
push 0
push 0x40
adc ecx, 0
mov dword [0x5f3150], edi
mov eax, edx
push ecx
push esi
mov dword [ebp - 0x14], eax
mov dword [0x5f3154], eax
call fcn.0053d490
sub eax, edi
mov byte [ebp - 0x1e1], 0
mov dword [0x5f3158], eax
lea eax, [ebp - 0x1e0]
sbb edx, dword [ebp - 0x14]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [0x5f315c], edx
mov dword [ebp - 0x1e0], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x494e43
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push str.MHz
push dword [ebp - 0x1e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x494e2e
mov eax, dword [ebp - 0x38]
mov ecx, 0xf4240
imul ecx
mov byte [ebp - 0x1e1], 1
mov dword [0x5f3160], eax
mov dword [0x5f3164], edx
push dword [ebp - 0x1e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x1e1], 0
jne 0x494ea2
lea eax, [ebp - 0x1f4]
push eax
call fcn.00495380
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1ec]
push eax
call fcn.00495380
mov esi, dword [ebp - 0x1ec]
add esp, 4
sub esi, dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x1e8]
mov eax, esi
sbb edx, dword [ebp - 0x1f0]
mov ecx, edx
shld ecx, eax, 2
shl eax, 2
add esi, eax
adc edx, ecx
shld edx, esi, 1
add esi, esi
mov dword [0x5f3164], edx
mov dword [0x5f3160], esi
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
mov eax, dword [0x5f3150]
mov dword [ebp - 0x48], eax
mov eax, dword [0x5f3154]
mov dword [ebp - 0x44], eax
mov eax, dword [0x5f3170]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x3c], 0
call fcn.00495380
inc dword [ebp - 0xa0]
lea ecx, [ebp - 0x58]
add esp, 4
mov dword [0x5f3170], ecx
inc dword [ebp - 0x9c]
mov esi, 0x40
nop dword [eax]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], eax
xorps xmm0, xmm0
mov eax, dword [0x5f3150]
mov dword [ebp - 0x24], eax
mov eax, dword [0x5f3154]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], ecx
call fcn.00495380
inc dword [ebp - 0x68]
lea eax, [ebp - 0x34]
inc dword [ebp - 0x64]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [0x5f3170], eax
test edx, edx
je 0x494f7e
mov ecx, dword [ebp - 0x24]
add ecx, dword [0x5f3158]
mov eax, dword [ebp - 0x20]
adc eax, dword [0x5f315c]
add dword [edx + 0x10], ecx
adc dword [edx + 0x14], eax
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1ec]
mov dword [0x5f3170], edx
push eax
call fcn.00495380
mov ecx, dword [ebp - 0x2c]
add esp, 4
add ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
adc eax, dword [ebp - 0x20]
sub dword [ebp - 0x1ec], ecx
sbb dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x34]
add dword [eax + 0x2c], 0xffffffff
jne 0x494fc9
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1ec]
add dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x1e8]
adc dword [ecx + 0x24], eax
sub esi, 1
je 0x494fd9
mov ecx, dword [0x5f3170]
jmp 0x494f10
lea ecx, [ebp - 0x58]
call fcn.00494ac0
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
call fcn.0053d400
comisd xmm0, xmmword [0x58eec8]
movsd qword [ebp - 0x204], xmm0
jbe 0x49503c
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa8]
call fcn.0053d400
divsd xmm0, qword [ebp - 0x204]
movsd xmm1, qword [0x58eed0]
subsd xmm1, xmm0
andps xmm1, xmmword [0x586890]
mulsd xmm1, qword [0x58eed8]
movsd qword [ebp - 0x1ec], xmm1
jmp 0x49504c
movsd xmm0, qword [0x58eee0]
movsd qword [ebp - 0x1ec], xmm0
mov edx, dword [0x5f3164]
mov ecx, dword [0x5f3160]
call fcn.0053d400
cvtsd2ss xmm0, xmm0
sub esp, 8
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
movsd xmm0, qword [ebp - 0x1ec]
push 0x3e8
sub esp, 8
movsd qword [esp], xmm0
push str._nTimer_Accuracy_____3.3lf_percent_of_the_time_of_memset_on__d_bytes_nClocks_Per_Second_____g_n_n
push 0x5f3178
call fcn.004948c0
add esp, 0x1c
mov byte [ebp - 0x1e1], 0
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4950f1
cmp dword [ebp - 0x1d8], 5
ja 0x4950e0
jne 0x4950ca
cmp dword [ebp - 0x1d4], 1
jae 0x4950e0
mov eax, 1
cpuid
test edx, 0x2000000
setne byte [ebp - 0x1e1]
jmp 0x4950f1
push 6
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
setne byte [ebp - 0x1e1]
cmp byte [ebp - 0x1e1], 0
je 0x4951e9
push 0x100010
call fcn.00406a8e
mov dword [ebp - 0x1e8], eax
lea ecx, [eax + 0xf]
lea eax, [ebp - 0x1fc]
and ecx, 0xfffffff0
push eax
mov dword [ebp - 0x38], ecx
call fcn.00495380
add esp, 8
mov dword [ebp - 0x1f0], 0x4000
mov dword [ebp - 0x14], 0x80
nop word [eax + eax]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1f0]
movntps xmmword [eax], xmm0
movntps xmmword [eax + 0x10], xmm0
movntps xmmword [eax + 0x20], xmm0
movntps xmmword [eax + 0x30], xmm0
add eax, 0x40
dec ecx
jne 0x495149
sub dword [ebp - 0x14], 1
jne 0x495140
lea eax, [ebp - 0x20c]
push eax
call fcn.00495380
mov edx, dword [0x5f3164]
add esp, 4
mov ecx, dword [0x5f3160]
call fcn.0053d400
mulsd xmm0, qword [0x58eef8]
mov ecx, dword [ebp - 0x20c]
sub ecx, dword [ebp - 0x1fc]
mov edx, dword [ebp - 0x208]
sbb edx, dword [ebp - 0x1f8]
movsd qword [ebp - 0x1f4], xmm0
call fcn.0053d400
movsd xmm1, qword [ebp - 0x1f4]
divsd xmm1, xmm0
divsd xmm1, qword [0x58eef0]
cvttsd2si eax, xmm1
push eax
push str._nMeasured_Bus_Speed__using_SIMD_movntps______d_million_bytes_per_second
push 0x5f3378
call fcn.004948c0
push dword [ebp - 0x1e8]
call fcn.00409f38
add esp, 0x10
jmp 0x4951fb
push str._nMeasured_Bus_Speed__using_SIMD_movntps_____unavailable____movntps_unimplemented
push 0x5f3378
call fcn.004948c0
add esp, 8
push 0x800
call fcn.00406a8e
mov esi, eax
lea eax, [ebp - 0x204]
push eax
call fcn.00495380
add esp, 8
mov edx, 0x80
nop dword [eax + eax]
mov ecx, 0x200
mov eax, 7
mov edi, esi
rep stosd dword es:[edi], eax
sub edx, 1
jne 0x495220
lea eax, [ebp - 0x214]
push eax
call fcn.00495380
mov edx, dword [0x5f3164]
add esp, 4
mov ecx, dword [0x5f3160]
call fcn.0053d400
mulsd xmm0, qword [0x58eee8]
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x204]
mov edx, dword [ebp - 0x210]
sbb edx, dword [ebp - 0x200]
movsd qword [ebp - 0x1fc], xmm0
call fcn.0053d400
movsd xmm1, qword [ebp - 0x1fc]
divsd xmm1, xmm0
divsd xmm1, qword [0x58eef0]
cvttsd2si eax, xmm1
push eax
push str._nMeasured_Cache_Memory_Speed__using__C__loop______d_million_bytes_per_second
push 0x5f3578
call fcn.004948c0
push esi
call fcn.00409f38
add esp, 0x10
cmp byte [ebp - 0x60], 0
jne 0x4952bd
dec dword [0x5f316c]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], vtable.double_linked_list_element_class_BIB_T_NMT::LazyTerminate__class_BIBDLLEParent_.0
test ecx, ecx
je 0x4952e0
mov eax, dword [ebp - 0x88]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4952ef
mov dword [eax + 4], ecx
jmp 0x4952f7
mov eax, dword [ebp - 0x84]
mov dword [eax], ecx
mov eax, dword [ebp - 0x84]
dec dword [eax + 4]
cmp byte [ebp - 0x98], 0
jne 0x49530f
dec dword [0x5f316c]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], vtable.double_linked_list_element_class_BIB_T_NMT::LazyTerminate__class_BIBDLLEParent_.0
test ecx, ecx
je 0x495332
mov eax, dword [ebp - 0xc0]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x495341
mov dword [eax + 4], ecx
jmp 0x495349
mov eax, dword [ebp - 0xbc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xbc]
dec dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret