Function at 0x4b1160
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x586348
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6015a8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x6015a8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x18], vtable.CTList_class_CDevice_.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push str.kernel32.dll
mov dword [esp + 0x8c], 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 0x4b11f3
push str.LoadLibraryExA
push eax
call edi
cmp eax, ebx
je 0x4b11f3
push 0x800
push ebx
push str.nvml.dll
call eax
mov dword [esi + 0x108], eax
cmp eax, ebx
jne 0x4b1204
push str.nvml.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x108], eax
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x4b1483
push str.nvmlInit
push eax
call edi
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 0x108]
push str.nvmlDeviceGetCount
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.nvmlDeviceGetHandleByIndex
push ecx
mov dword [esi + 0x210], eax
call edi
mov edx, dword [esi + 0x108]
push str.nvmlDeviceGetTemperature
push edx
mov dword [esi + 0x214], eax
call edi
mov dword [esi + 0x218], eax
mov eax, dword [esi + 0x108]
push str.nvmlDeviceGetTemperatureThreshold
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.nvmlDeviceGetPowerUsage
push ecx
mov dword [esi + 0x21c], eax
call edi
mov edx, dword [esi + 0x108]
push str.nvmlDeviceGetPowerManagementLimit
push edx
mov dword [esi + 0x220], eax
call edi
mov dword [esi + 0x224], eax
mov eax, dword [esi + 0x108]
push str.nvmlDeviceGetPowerManagementLimitConstraints
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.nvmlDeviceGetPowerManagementDefaultLimit
push ecx
mov dword [esi + 0x228], eax
call edi
mov edx, dword [esi + 0x108]
push str.nvmlDeviceGetEnforcedPowerLimit
push edx
mov dword [esi + 0x22c], eax
call edi
mov dword [esi + 0x230], eax
mov eax, dword [esi + 0x108]
push str.nvmlDeviceGetPcieThroughput
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.nvmlDeviceGetFieldValues
push ecx
mov dword [esi + 0x234], eax
call edi
mov edx, dword [esi + 0x108]
push str.nvmlDeviceGetPciInfo
push edx
mov dword [esi + 0x238], eax
call edi
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x108]
push str.nvmlShutdown
push eax
call edi
mov ecx, dword [esi + 0x20c]
mov dword [esi + 0x240], eax
cmp ecx, ebx
je 0x4b1483
cmp dword [esi + 0x210], ebx
je 0x4b1483
cmp dword [esi + 0x214], ebx
je 0x4b1483
cmp dword [esi + 0x23c], ebx
je 0x4b1483
cmp eax, ebx
je 0x4b1483
call ecx
test eax, eax
jne 0x4b1483
mov edx, dword [esi + 0x210]
lea ecx, [esp + 0x10]
push ecx
call edx
add esp, 4
test eax, eax
jne 0x4b1468
cmp dword [esp + 0x10], eax
jle 0x4b1468
lea edi, [esi + 0x10c]
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x214]
push edi
push ebx
call eax
add esp, 8
test eax, eax
jne 0x4b1452
mov edx, dword [edi]
mov eax, dword [esi + 0x23c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x4b1452
call fcn.00461b70
mov ecx, eax
call fcn.0045dc90
test eax, eax
je 0x4b1452
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x18]
mov edx, eax
push ecx
shr edx, 0x10
push edx
push eax
call fcn.00461b70
mov ecx, eax
call fcn.0045dc90
mov ecx, eax
call fcn.00471f60
test eax, eax
jle 0x4b1452
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
call fcn.00416f2f
mov edi, eax
test edi, edi
je 0x4b1452
lea ebx, [ebx]
mov ecx, edi
call fcn.0047ce90
cmp eax, dword [esp + 0x40]
jne 0x4b1443
mov ecx, edi
call fcn.0047ceb0
cmp eax, dword [esp + 0x44]
jne 0x4b1443
push ebx
push esi
mov ecx, edi
call fcn.0047abc0
lea ecx, [esp + 0x24]
call fcn.00416f17
mov edi, eax
test edi, edi
jne 0x4b1420
mov edi, dword [esp + 0x14]
inc ebx
add edi, 4
cmp ebx, dword [esp + 0x10]
mov dword [esp + 0x14], edi
jl 0x4b1394
lea ecx, [esp + 0x18]
mov dword [esp + 0x88], 0xffffffff
call fcn.00416f62
mov eax, 1
jmp 0x4b1499
lea ecx, [esp + 0x18]
mov dword [esp + 0x88], 0xffffffff
call fcn.00416f62
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00562d51
mov esp, ebp
pop ebp
ret