Function at 0x45eab0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0xa8], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x5c], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0xa0], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x50], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0xb4], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0xb8], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x54], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0xbc], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x28], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x60], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x64], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x44], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0xc0], xmm0
call fcn.00462cc0
movzx ecx, al
test ecx, ecx
je 0x45ebb9
push str.GetIntelCpuMaxSpeed_IA32_APERF_start
push 0x1b2dd00
call fcn.00432fe0
add esp, 8
push 0x1b2dd00
call fcn.00459dc0
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 6
jge 0x45ebcc
fldz
jmp 0x45f53e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x138], 6
jl 0x45ec31
lea esi, [ebp - 0x14]
mov eax, 6
xor ecx, ecx
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
push 0
push 0
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + ecx - 0x14]
push edx
call fcn.004598a0
add esp, 0xc
cmp eax, 1
jne 0x45ec10
mov byte [ebp - 0x22], 1
push 3
push 3
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + eax - 0x14]
push ecx
call fcn.004598a0
add esp, 0xc
cmp eax, 1
jne 0x45ec31
mov byte [ebp - 0x21], 1
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 6
je 0x45ec4c
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0xf
jne 0x45ecb2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 3
jl 0x45ecb2
mov dword [ebp - 0x18], 0x199
push 0
lea edx, [ebp - 0x34]
push edx
push 8
lea eax, [ebp - 0x30]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0x8011e060
mov edx, dword [0x5d19b0]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45ecb2
call fcn.00462cc0
movzx eax, al
test eax, eax
je 0x45ecb2
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str.MSR_0x_0.8X:__0.16llX
push 0x1b2dd00
call fcn.00432fe0
add esp, 0x14
push 0x1b2dd00
call fcn.00459dc0
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 6
jne 0x45ecc4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0xc
jge 0x45ecd6
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0xf
jne 0x45ed3c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 3
jl 0x45ed3c
mov dword [ebp - 0x18], 0x198
push 0
lea edx, [ebp - 0x34]
push edx
push 8
lea eax, [ebp - 0x30]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0x8011e060
mov edx, dword [0x5d19b0]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45ed3c
call fcn.00462cc0
movzx eax, al
test eax, eax
je 0x45ed3c
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str.MSR_0x_0.8X:__0.16llX
push 0x1b2dd00
call fcn.00432fe0
add esp, 0x14
push 0x1b2dd00
call fcn.00459dc0
add esp, 4
movzx ecx, byte [ebp - 0x21]
test ecx, ecx
je 0x45edaa
mov dword [ebp - 0x18], 0x1b0
push 0
lea edx, [ebp - 0x34]
push edx
push 8
lea eax, [ebp - 0x30]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0x8011e060
mov edx, dword [0x5d19b0]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45edaa
call fcn.00462cc0
movzx eax, al
test eax, eax
je 0x45edaa
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str.MSR_0x_0.8X:__0.16llX
push 0x1b2dd00
call fcn.00432fe0
add esp, 0x14
push 0x1b2dd00
call fcn.00459dc0
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
and edx, 0x10
je 0x45f510
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x45f510
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x45ede6
fldz
jmp 0x45f53e
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x7fffffff
je 0x45ee08
push 0xf
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push str.DEBUG:_IA32_APERF_force_higher_power_state
call fcn.00455a00
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
jmp 0x45ee46
mov edx, dword [ebp - 0x20]
add edx, 1
mov eax, dword [ebp - 0x1c]
adc eax, 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
ja 0x45ee6b
jb 0x45ee57
cmp dword [ebp - 0x20], 0x1dcd6500
jae 0x45ee6b
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
jmp 0x45ee34
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
push str.DEBUG:_IA32_APERF_measure_CPU_speed_attempt
call fcn.00455a00
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x4c], 0xbebc200
mov dword [ebp - 0x48], ecx
movss xmm0, dword [ebp + 0x14]
mulss xmm0, dword [0x588c1c]
comiss xmm0, dword [ebp - 0x28]
jbe 0x45eec8
cmp dword [ebp - 0x38], 2
jle 0x45eeb4
xor edx, edx
mov dword [ebp - 0x4c], 0xb2d05e00
mov dword [ebp - 0x48], edx
jmp 0x45eec6
cmp dword [ebp - 0x38], 1
jle 0x45eec6
xor eax, eax
mov dword [ebp - 0x4c], 0x3b9aca00
mov dword [ebp - 0x48], eax
jmp 0x45eef9
movss xmm0, dword [ebp + 0x14]
mulss xmm0, dword [0x588c28]
comiss xmm0, dword [ebp - 0x28]
jbe 0x45eef9
xor ecx, ecx
mov dword [ebp - 0x4c], 0x1dcd6500
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x38], 2
jle 0x45eef9
xor edx, edx
mov dword [ebp - 0x4c], 0xb2d05e00
mov dword [ebp - 0x48], edx
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
jmp 0x45ef1d
mov eax, dword [ebp - 0x20]
add eax, 1
mov ecx, dword [ebp - 0x1c]
adc ecx, 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x48]
ja 0x45ef43
jb 0x45ef2f
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x4c]
jae 0x45ef43
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
jmp 0x45ef0b
push str.DEBUG:_IA32_APERF_force_power_state_loop_complete
call fcn.00455a00
add esp, 4
mov dword [ebp - 0x18], 0xe7
push 0
lea eax, [ebp - 0x34]
push eax
push 8
lea ecx, [ebp - 0x30]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push 0x8011e074
mov eax, dword [0x5d19b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x45ef83
jmp 0x45f23a
mov dword [ebp - 0x18], 0xe8
push 0
lea ecx, [ebp - 0x34]
push ecx
push 8
lea edx, [ebp - 0x30]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push 0x8011e074
mov ecx, dword [0x5d19b0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x45efb7
jmp 0x45f23a
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
jmp 0x45effa
mov edx, dword [ebp - 0x20]
add edx, 1
mov eax, dword [ebp - 0x1c]
adc eax, 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
ja 0x45f01f
jb 0x45f00b
cmp dword [ebp - 0x20], 0x7a120
jae 0x45f01f
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
jmp 0x45efe8
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 0x18], 0xe8
xorps xmm0, xmm0
movlpd qword [ebp - 0x84], xmm0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 8
lea edx, [ebp - 0x30]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push 0x8011e060
mov ecx, dword [0x5d19b0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45f074
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], eax
jmp 0x45f079
jmp 0x45f23a
mov dword [ebp - 0x18], 0xe7
xorps xmm0, xmm0
movlpd qword [ebp - 0x7c], xmm0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 8
lea edx, [ebp - 0x30]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push 0x8011e060
mov ecx, dword [0x5d19b0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45f0be
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], eax
jmp 0x45f0c3
jmp 0x45f23a
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x70]
sbb edx, dword [ebp - 0x8c]
call fcn.004f7740
movsd qword [ebp - 0x5c], xmm0
movsd xmm0, qword [ebp - 0x5c]
mulsd xmm0, qword [0x588c88]
movsd qword [ebp - 0x5c], xmm0
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x98]
call fcn.004f7740
divsd xmm0, qword [0x588c68]
movsd xmm1, qword [ebp - 0x5c]
divsd xmm1, xmm0
movsd qword [ebp - 0x5c], xmm1
movsd xmm0, qword [ebp - 0xa8]
addsd xmm0, qword [ebp - 0x5c]
movsd qword [ebp - 0xa8], xmm0
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
call fcn.004f76f0
divsd xmm0, qword [ebp - 0x5c]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x54], xmm0
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
call fcn.004f76f0
divsd xmm0, qword [ebp - 0x5c]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [ebp + 0x14]
comiss xmm0, dword [0x5c4be0]
jbe 0x45f17f
movss xmm0, dword [ebp - 0x50]
divss xmm0, dword [ebp + 0x14]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [ebp - 0x44]
comiss xmm0, dword [ebp - 0x64]
jbe 0x45f1b0
movss xmm0, dword [ebp - 0x44]
comiss xmm0, dword [0x5c4be0]
jbe 0x45f1b0
movss xmm0, dword [0x588c90]
comiss xmm0, dword [ebp - 0x44]
jbe 0x45f1b0
movss xmm0, dword [ebp - 0x44]
movss dword [ebp - 0x64], xmm0
movss xmm0, dword [ebp - 0x50]
comiss xmm0, dword [ebp - 0x28]
jbe 0x45f1d3
movss xmm0, dword [0x588ca4]
comiss xmm0, dword [ebp - 0x50]
jbe 0x45f1d3
movss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x54]
comiss xmm0, dword [ebp - 0x60]
jbe 0x45f1f6
movss xmm0, dword [0x588ca4]
comiss xmm0, dword [ebp - 0x54]
jbe 0x45f1f6
movss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0x60], xmm0
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x70]
sbb edx, dword [ebp - 0xac]
call fcn.004f7740
movsd qword [ebp - 0xa0], xmm0
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x98]
call fcn.004f7740
movsd xmm1, qword [ebp - 0xa0]
divsd xmm1, xmm0
movsd qword [ebp - 0xa0], xmm1
cmp dword [ebp - 0x38], 3
jge 0x45f253
movsd xmm0, qword [0x588c60]
comisd xmm0, xmmword [ebp - 0x5c]
ja 0x45ee6b
call fcn.00462cc0
movzx ecx, al
test ecx, ecx
je 0x45f2d6
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x7c]
push eax
cvtss2sd xmm0, dword [ebp - 0x60]
sub esp, 8
movsd qword [esp], xmm0
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x84]
push edx
cvtss2sd xmm0, dword [ebp - 0x28]
sub esp, 8
movsd qword [esp], xmm0
cvtss2sd xmm0, dword [ebp - 0x64]
sub esp, 8
movsd qword [esp], xmm0
cvtss2sd xmm0, dword [ebp - 0x44]
sub esp, 8
movsd qword [esp], xmm0
cvtss2sd xmm0, dword [ebp + 0x14]
sub esp, 8
movsd qword [esp], xmm0
mov eax, dword [ebp - 0x38]
push eax
push str.DEBUG:_IA32_APERF__d__rdtsc:__0.5f____0.5f___0.5f____0.5f___I64u____0.5f___I64u_
push 0x1b2dd00
call fcn.00432fe0
add esp, 0x44
push 0x1b2dd00
call fcn.00459dc0
add esp, 4
movss xmm0, dword [ebp + 0x14]
mulss xmm0, dword [0x588c18]
comiss xmm0, dword [ebp - 0x28]
jbe 0x45f2f3
movss xmm0, dword [ebp + 0x14]
movss dword [ebp - 0x28], xmm0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x45f4f1
push str.DEBUG:_IA32_APERF_get_MSR
call fcn.00455a00
add esp, 4
mov edx, dword [ebp + 0xc]
shl edx, 8
movss xmm0, dword [ebp - 0x28]
movss dword [edx + 0x1aedd68], xmm0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048f1c0
add esp, 0xc
movzx edx, al
test edx, edx
je 0x45f363
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048b860
add esp, 0x10
jmp 0x45f4f1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048fc60
add esp, 0xc
movzx edx, al
test edx, edx
je 0x45f3a7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048df00
add esp, 0x10
jmp 0x45f4f1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048eb50
add esp, 0xc
movzx edx, al
test edx, edx
je 0x45f3eb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048be20
add esp, 0x10
jmp 0x45f4f1
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 6
jne 0x45f3fd
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0x1d
je 0x45f41e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048ec00
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x45f471
push ecx
movss xmm0, dword [ebp + 0x14]
movss dword [esp], xmm0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048c2e0
add esp, 0x14
fstp dword [ebp - 0x88]
cvtss2sd xmm0, dword [ebp - 0x88]
comisd xmm0, xmmword [0x588c10]
jbe 0x45f46c
movss xmm0, dword [ebp - 0x88]
movss dword [ebp - 0x28], xmm0
jmp 0x45f4f1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048ec60
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x45f4b2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048c830
add esp, 0x10
jmp 0x45f4f1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048ed30
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x45f4f1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048d7f0
add esp, 0x10
cmp dword [ebp - 0x68], 0x7fffffff
je 0x45f508
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00462cc0
movzx ecx, al
test ecx, ecx
je 0x45f53b
push str.GetIntelCpuMaxSpeed_IA32_APERF_end
push 0x1b2dd00
call fcn.00432fe0
add esp, 8
push 0x1b2dd00
call fcn.00459dc0
add esp, 4
fld dword [ebp - 0x28]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret