Function at 0x487be0
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x210
cmp byte [0x5062b0], 0
je 0x487cd5
mov eax, dword [0x5062b4]
test eax, eax
je 0x487e4f
mov dword [esp + 0x14], 0
lea esi, [esp + 0x14]
push 0
push esi
push eax
call dword [0x506290]
add esp, 0xc
mov edi, str.ctlEnumerateDevices_NULL__failed
test eax, eax
jne 0x48812f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487fba
shl eax, 2
push eax
call sym._malloc
add esp, 4
mov ebx, eax
push eax
push esi
push dword [0x5062b4]
call dword [0x506290]
add esp, 0xc
mov edi, str.ctlEnumerateDevices_devices__failed
test eax, eax
jne 0x488253
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
lea eax, [esp + 0xd0]
push 0x138
push 0
push eax
call sym._memset
add esp, 0xc
mov dword [esp + 0xd0], 0x138
mov byte [esp + 0xd4], 2
lea eax, [esp + 0x20]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 8
mov edi, 0x4fd905
cmp dword [esp + 0x14], 0
je 0x488253
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp + 8]
xor esi, esi
jmp 0x487e84
mov eax, dword [ebp + 0x20]
mov byte [0x5062b0], 1
push 0
push 1
push eax
push 0
call dbg.ffLibraryLoad
add esp, 0x10
test eax, eax
je 0x487e59
mov esi, eax
push str.ctlInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x487fb0
mov edi, eax
push str.ctlClose
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50628c], eax
test eax, eax
je 0x487fc4
push str.ctlEnumerateDevices
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x506290], eax
test eax, eax
je 0x487fce
push str.ctlGetDeviceProperties
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x506294], eax
test eax, eax
je 0x488031
push str.ctlEnumTemperatureSensors
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x506298], eax
test eax, eax
je 0x48803b
push str.ctlTemperatureGetState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50629c], eax
test eax, eax
je 0x488045
push str.ctlEnumMemoryModules
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5062a0], eax
test eax, eax
je 0x48804f
push str.ctlMemoryGetState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5062a4], eax
test eax, eax
je 0x488059
push str.ctlEnumFrequencyDomains
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5062a8], eax
test eax, eax
je 0x488063
push str.ctlFrequencyGetState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5062ac], eax
test eax, eax
je 0x488123
mov dword [esp + 0x6c], 0x24
mov byte [esp + 0x70], 0
mov dword [esp + 0x74], 0x10001
mov dword [esp + 0x78], 1
xorpd xmm0, xmm0
movupd xmmword [esp + 0x7c], xmm0
mov dword [esp + 0x8c], 0
lea eax, [esp + 0x6c]
push 0x5062b4
push eax
call edi
add esp, 8
mov edi, str.loading_igcl_library_failed
test eax, eax
jne 0x488128
push dbg.shutdownIgcl
call dbg.atexit
add esp, 4
jmp 0x487bfc
mov edi, str.loading_igcl_library_failed
jmp 0x48812f
mov edi, 0x4fd660
jmp 0x48812f
mov eax, dword [ebx + 0x2c]
xor eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x28]
xor ecx, dword [esp + 0x20]
or ecx, eax
je 0x487f2a
inc esi
cmp esi, dword [esp + 0x14]
jae 0x48824f
lea eax, [esp + 0xd0]
push eax
mov eax, dword [esp + 0x10]
push dword [eax + esi*4]
call dword [0x506294]
add esp, 8
test eax, eax
jne 0x487e79
cmp dword [esp + 0xe0], 1
jne 0x487e79
mov eax, dword [ebx]
test al, 4
jne 0x487e63
test al, 1
jne 0x487ef7
test al, 2
je 0x487e79
mov eax, dword [ebx + 0x14]
cmp eax, dword [esp + 0x10c]
jne 0x487e79
mov eax, dword [ebx + 0x18]
cmp eax, dword [esp + 0x108]
jne 0x487e79
mov eax, dword [esp + 0x18c]
shl eax, 0x10
movzx ecx, word [esp + 0x18e]
or ecx, eax
cmp dword [ebx + 0x1c], ecx
jne 0x487e79
mov eax, dword [ebx + 0x20]
cmp eax, dword [esp + 0x110]
jne 0x487e79
jmp 0x487f2a
movzx eax, byte [esp + 0x190]
cmp dword [ebx + 8], eax
jne 0x487e79
movzx eax, byte [esp + 0x191]
cmp dword [ebx + 0xc], eax
jne 0x487e79
movzx eax, byte [esp + 0x192]
cmp dword [ebx + 0x10], eax
jne 0x487e79
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + esi*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x488253
lea edi, [result.temp]
mov eax, dword [edi + 8]
test eax, eax
je 0x487f60
mov ecx, dword [esp + 0x118]
imul ecx, dword [esp + 0x11c]
imul ecx, dword [esp + 0x114]
mov dword [eax], ecx
mov esi, dword [edi + 4]
test esi, esi
je 0x488074
mov dword [esp + 8], 0x10
lea eax, [esp + 0x90]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x18]
call dword [0x5062a0]
add esp, 0xc
test eax, eax
jne 0x48806d
cmp dword [esp + 8], 0
je 0x48806d
xorpd xmm0, xmm0
movupd xmmword [esi], xmm0
xor edi, edi
lea ebx, [esp + 0x30]
jmp 0x487fe3
mov edi, str.dlsym_ctlInit_failed
jmp 0x488128
mov edi, str.No_Intel_graphics_adapter_found
jmp 0x48812f
mov edi, str.dlsym_ctlClose_failed
jmp 0x488128
mov edi, str.dlsym_ctlEnumerateDevices_failed
jmp 0x488128
inc edi
cmp edi, dword [esp + 8]
jae 0x48806d
movsd xmm0, qword [0x4fd928]
movsd qword [esp + 0x40], xmm0
movupd xmm0, xmmword [0x4fd918]
movapd xmmword [esp + 0x30], xmm0
push ebx
push dword [esp + edi*4 + 0x94]
call dword [0x5062a4]
add esp, 8
test eax, eax
jne 0x487fd8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add dword [esi], eax
adc dword [esi + 4], ecx
sub eax, dword [esp + 0x38]
sbb ecx, dword [esp + 0x3c]
add dword [esi + 8], eax
adc dword [esi + 0xc], ecx
jmp 0x487fd8
mov edi, str.dlsym_ctlGetDeviceProperties_failed
jmp 0x488128
mov edi, str.dlsym_ctlEnumTemperatureSensors_failed
jmp 0x488128
mov edi, str.dlsym_ctlTemperatureGetState_failed
jmp 0x488128
mov edi, str.dlsym_ctlEnumMemoryModules_failed
jmp 0x488128
mov edi, str.dlsym_ctlMemoryGetState_failed
jmp 0x488128
mov edi, str.dlsym_ctlEnumFrequencyDomains_failed
jmp 0x488128
mov ebx, dword [esp + 0xc]
lea edi, [result.temp]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x48808e
mov ecx, dword [esp + 0x184]
and ecx, 1
mov edx, 2
sub edx, ecx
mov dword [eax], edx
mov esi, dword [edi]
test esi, esi
je 0x488160
mov dword [esp + 8], 0x10
lea eax, [esp + 0x90]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x18]
call dword [0x506298]
add esp, 0xc
test eax, eax
jne 0x488160
cmp dword [esp + 8], 0
je 0x488160
mov dword [esp + 0x2c], esi
xorps xmm1, xmm1
xor edi, edi
lea esi, [esp + 0x30]
xor ebx, ebx
jmp 0x4880fb
movsd xmm0, qword [0x4fd630]
movsd xmm1, qword [esp + 0x18]
addsd xmm1, xmm0
mov cl, al
add ebx, ecx
inc edi
cmp edi, dword [esp + 8]
jae 0x488139
movsd qword [esp + 0x18], xmm1
push esi
push dword [esp + edi*4 + 0x94]
call dword [0x50629c]
add esp, 8
xor ecx, ecx
test eax, eax
sete al
jne 0x4880de
movsd xmm0, qword [esp + 0x30]
jmp 0x4880e6
mov edi, str.dlsym_ctlFrequencyGetState_failed
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movd xmm0, ebx
por xmm0, xmmword [0x4fd640]
subsd xmm0, qword [0x4fd650]
divsd xmm1, xmm0
mov eax, dword [esp + 0x2c]
movsd qword [eax], xmm1
mov ebx, dword [esp + 0xc]
lea edi, [result.temp]
mov esi, dword [edi + 0x10]
xor edi, edi
test esi, esi
je 0x488253
mov dword [esp + 8], 0x10
lea eax, [esp + 0x90]
lea ecx, [esp + 8]
push eax
push ecx
push dword [esp + 0x18]
call dword [0x5062a8]
add esp, 0xc
test eax, eax
jne 0x488253
cmp dword [esp + 8], 0
je 0x488253
mov dword [esp + 0x10], esi
xorpd xmm1, xmm1
xor ebx, ebx
xor esi, esi
jmp 0x4881cd
movsd xmm0, qword [0x4fd630]
movsd xmm1, qword [esp + 0x18]
addsd xmm1, xmm0
mov cl, al
add esi, ecx
inc ebx
cmp ebx, dword [esp + 8]
jae 0x488227
movsd qword [esp + 0x18], xmm1
xorpd xmm0, xmm0
movapd xmmword [esp + 0x30], xmm0
movapd xmmword [esp + 0x50], xmm0
movapd xmmword [esp + 0x40], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x30], 0x38
lea eax, [esp + 0x30]
push eax
push dword [esp + ebx*4 + 0x94]
call dword [0x5062ac]
add esp, 8
xor ecx, ecx
test eax, eax
sete al
jne 0x4881b0
movsd xmm0, qword [esp + 0x58]
jmp 0x4881b8
movd xmm0, esi
por xmm0, xmmword [0x4fd640]
subsd xmm0, qword [0x4fd650]
divsd xmm1, xmm0
divsd xmm1, qword [0x4fd658]
mov eax, dword [esp + 0x10]
movsd qword [eax], xmm1
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x48812f
push ebx
call sym._free
add esp, 4
jmp 0x48812f