Function at 0x4a7160
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x586259
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x6015a8]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x6015a8]
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 str.kernel32.dll
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 0x4a71f9
push str.LoadLibraryExA
push eax
call edi
cmp eax, ebx
je 0x4a71f9
push 0x800
push ebx
push str.ControlLib32.dll
call eax
mov dword [esi + 0x108], eax
cmp eax, ebx
jne 0x4a720a
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 0x4a7775
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 0x4a7775
cmp dword [esi + 0x118], ebx
je 0x4a7775
cmp dword [esi + 0x11c], ebx
je 0x4a7775
cmp dword [esi + 0x120], ebx
je 0x4a7775
cmp dword [esi + 0x124], ebx
je 0x4a7775
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 0x4a7775
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 0x4a775a
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push ecx
call fcn.0056411b
add esp, 4
mov dword [esi + 0x110], eax
cmp eax, ebx
je 0x4a775a
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 0x4a775a
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.00551daf
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x1e0], 1
test edi, edi
je 0x4a75cc
push 0x4a6130
push ebx
push 0x10
push edi
call fcn.004a6270
jmp 0x4a75ce
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], ebx
mov byte [esp + 0x1e0], 0
mov dword [esi + 0x188], edi
jle 0x4a775a
mov eax, dword [esi + 0x110]
cmp dword [eax + ebx*4], 0
je 0x4a774f
push 0x138
lea ecx, [esp + 0x98]
push 0
push ecx
call fcn.005635a0
push 8
mov dword [esp + 0xa4], 0x138
call fcn.0056411b
push 0x40
lea edx, [esp + 0x40]
push 0
push edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 8
call fcn.005635a0
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 0x4a773f
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 0x4a773f
cmp dword [esp + 0xa4], 1
jne 0x4a773f
call fcn.00461b70
mov ecx, eax
call fcn.0045dc90
test eax, eax
je 0x4a773f
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00461b70
mov ecx, eax
call fcn.0045dc90
mov ecx, eax
call fcn.00471f60
test eax, eax
jle 0x4a773f
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
call fcn.00416f2f
mov edi, eax
test edi, edi
je 0x4a773f
lea ebx, [ebx]
mov ecx, edi
call fcn.0047ce90
cmp eax, dword [esp + 0x40]
jne 0x4a7730
mov ecx, edi
call fcn.0047ceb0
cmp eax, dword [esp + 0x44]
jne 0x4a7730
mov ecx, edi
call fcn.0047ced0
cmp eax, dword [esp + 0x48]
jne 0x4a7730
push ebx
push esi
mov ecx, edi
call fcn.0047abc0
lea ecx, [esp + 0x18]
call fcn.00416f17
mov edi, eax
test edi, edi
jne 0x4a7700
mov eax, dword [esp + 0x9c]
push eax
call fcn.00564225
add esp, 4
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x4a75e8
lea ecx, [esp + 0x20]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.00416f62
mov eax, 1
jmp 0x4a778b
lea ecx, [esp + 0x20]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.00416f62
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.00562d51
mov esp, ebp
pop ebp
ret