Function at 0x482820
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5975f9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x614b80]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x614b80]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x20], vtable.CTList_class_CDevice_.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push 0x5a0624
mov dword [esp + 0x1e4], ebx
mov dword [esi + 0x108], ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x4828b9
push str.LoadLibraryExA
push eax
call edi
cmp eax, ebx
je 0x4828b9
push 0x800
push ebx
push str.ControlLib32.dll
call eax
mov dword [esi + 0x108], eax
cmp eax, ebx
jne 0x4828ca
push str.ControlLib32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [esi + 0x108], eax
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x482e35
push str.ctlInit
push eax
call edi
mov dword [esi + 0x114], eax
mov eax, dword [esi + 0x108]
push str.ctlClose
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlEnumerateDevices
push ecx
mov dword [esi + 0x118], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlGetDeviceProperties
push edx
mov dword [esi + 0x11c], eax
call edi
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x108]
push str.ctlPciGetProperties
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlEnumTemperatureSensors
push ecx
mov dword [esi + 0x124], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlTemperatureGetProperties
push edx
mov dword [esi + 0x128], eax
call edi
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 0x108]
push str.ctlTemperatureGetState
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlEnumPowerDomains
push ecx
mov dword [esi + 0x130], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlPowerGetProperties
push edx
mov dword [esi + 0x134], eax
call edi
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x108]
push str.ctlPowerGetEnergyCounter
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlPowerGetLimits
push ecx
mov dword [esi + 0x13c], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlPowerTelemetryGet
push edx
mov dword [esi + 0x140], eax
call edi
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x108]
push str.ctlOverclockGetProperties
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlOverclockPowerLimitGet
push ecx
mov dword [esi + 0x148], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlOverclockTemperatureLimitGet
push edx
mov dword [esi + 0x14c], eax
call edi
mov dword [esi + 0x150], eax
mov eax, dword [esi + 0x108]
push str.ctlEnumEngineGroups
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlEngineGetProperties
push ecx
mov dword [esi + 0x154], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlEngineGetActivity
push edx
mov dword [esi + 0x158], eax
call edi
mov dword [esi + 0x15c], eax
mov eax, dword [esi + 0x108]
push str.ctlEnumMemoryModules
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlMemoryGetProperties
push ecx
mov dword [esi + 0x160], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlMemoryGetState
push edx
mov dword [esi + 0x164], eax
call edi
mov dword [esi + 0x168], eax
mov eax, dword [esi + 0x108]
push str.ctlMemoryGetBandwidth
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlEnumFrequencyDomains
push ecx
mov dword [esi + 0x16c], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlFrequencyGetProperties
push edx
mov dword [esi + 0x170], eax
call edi
mov dword [esi + 0x174], eax
mov eax, dword [esi + 0x108]
push str.ctlFrequencyGetAvailableClocks
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.ctlFrequencyGetRange
push ecx
mov dword [esi + 0x178], eax
call edi
mov edx, dword [esi + 0x108]
push str.ctlFrequencyGetState
push edx
mov dword [esi + 0x17c], eax
call edi
mov dword [esi + 0x180], eax
mov eax, dword [esi + 0x108]
push str.ctlFrequencyGetThrottleTime
push eax
call edi
mov ecx, dword [esi + 0x114]
mov dword [esi + 0x184], eax
cmp ecx, ebx
je 0x482e35
cmp dword [esi + 0x118], ebx
je 0x482e35
cmp dword [esi + 0x11c], ebx
je 0x482e35
cmp dword [esi + 0x120], ebx
je 0x482e35
cmp dword [esi + 0x124], ebx
je 0x482e35
xor eax, eax
lea edi, [esi + 0x10c]
lea edx, [esp + 0x70]
push edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
push edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], 0x10001
mov dword [esp + 0x84], 1
mov dword [esp + 0x78], 0x24
mov byte [esp + 0x7c], al
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
call ecx
add esp, 8
cmp eax, ebx
jne 0x482e35
mov ecx, dword [edi]
mov edx, dword [esi + 0x11c]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x110], ebx
call edx
add esp, 0xc
cmp eax, ebx
jne 0x482e1a
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push ecx
call fcn.0057a62b
add esp, 4
mov dword [esi + 0x110], eax
cmp eax, ebx
je 0x482e1a
mov ecx, dword [esi + 0x11c]
push eax
mov eax, dword [edi]
lea edx, [esp + 0x18]
push edx
push eax
call ecx
add esp, 0xc
cmp eax, ebx
jne 0x482e1a
mov ebx, dword [esp + 0x14]
add ebx, ebx
add ebx, ebx
xor ecx, ecx
mov eax, ebx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005684a2
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x1e0], 1
test edi, edi
je 0x482c8c
push 0x481800
push ebx
push 0x10
push edi
call fcn.00481940
jmp 0x482c8e
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], ebx
mov byte [esp + 0x1e0], 0
mov dword [esi + 0x188], edi
jle 0x482e1a
mov eax, dword [esi + 0x110]
cmp dword [eax + ebx*4], 0
je 0x482e0f
push 0x138
lea ecx, [esp + 0x98]
push 0
push ecx
call fcn.0057ad60
push 8
mov dword [esp + 0xa4], 0x138
call fcn.0057a62b
push 0x40
lea edx, [esp + 0x40]
push 0
push edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 8
call fcn.0057ad60
mov ecx, dword [esi + 0x110]
lea eax, [esp + 0xb0]
mov dword [esp + 0x48], 0x40
mov edx, dword [ecx + ebx*4]
push eax
mov eax, dword [esi + 0x120]
push edx
call eax
add esp, 0x24
test eax, eax
jne 0x482dff
mov edx, dword [esi + 0x110]
mov eax, dword [edx + ebx*4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x124]
push eax
call ecx
add esp, 8
test eax, eax
jne 0x482dff
cmp dword [esp + 0xa4], 1
jne 0x482dff
call fcn.0043b760
mov ecx, eax
call fcn.00437590
test eax, eax
je 0x482dff
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
call fcn.0043b760
mov ecx, eax
call fcn.00437590
mov ecx, eax
call fcn.0044c560
test eax, eax
jle 0x482dff
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
call fcn.0041c240
mov edi, eax
test edi, edi
je 0x482dff
lea ebx, [ebx]
mov ecx, edi
call fcn.004580d0
cmp eax, dword [esp + 0x40]
jne 0x482df0
mov ecx, edi
call fcn.004580f0
cmp eax, dword [esp + 0x44]
jne 0x482df0
mov ecx, edi
call fcn.00458110
cmp eax, dword [esp + 0x48]
jne 0x482df0
push ebx
push esi
mov ecx, edi
call fcn.00455d70
lea ecx, [esp + 0x18]
call fcn.0041c220
mov edi, eax
test edi, edi
jne 0x482dc0
mov eax, dword [esp + 0x9c]
push eax
call fcn.0057a735
add esp, 4
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x482ca8
lea ecx, [esp + 0x20]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.0041c2c0
mov eax, 1
jmp 0x482e4b
lea ecx, [esp + 0x20]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.0041c2c0
xor eax, eax
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0057943e
mov esp, ebp
pop ebp
ret