Function at 0x48d670
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59bd18
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x619e70]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x619e70]
xor eax, esp
push eax
lea eax, [esp + 0x88]
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
mov eax, dword [esi + 0x108]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x48d97b
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x48d97b
mov eax, dword [eax + 0x24]
cmp eax, ebx
je 0x48d703
push 0x800
push ebx
push str.nvml.dll
call eax
mov dword [esi + 0x10c], eax
cmp eax, ebx
jne 0x48d714
push str.nvml.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x10c]
cmp eax, ebx
je 0x48d97b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.nvmlInit
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.nvmlDeviceGetCount
push ecx
mov dword [esi + 0x210], eax
call edi
mov edx, dword [esi + 0x10c]
push str.nvmlDeviceGetHandleByIndex
push edx
mov dword [esi + 0x214], eax
call edi
mov dword [esi + 0x218], eax
mov eax, dword [esi + 0x10c]
push str.nvmlDeviceGetTemperature
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.nvmlDeviceGetTemperatureThreshold
push ecx
mov dword [esi + 0x21c], eax
call edi
mov edx, dword [esi + 0x10c]
push str.nvmlDeviceGetPowerUsage
push edx
mov dword [esi + 0x220], eax
call edi
mov dword [esi + 0x224], eax
mov eax, dword [esi + 0x10c]
push str.nvmlDeviceGetPowerManagementLimit
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.nvmlDeviceGetPowerManagementLimitConstraints
push ecx
mov dword [esi + 0x228], eax
call edi
mov edx, dword [esi + 0x10c]
push str.nvmlDeviceGetPowerManagementDefaultLimit
push edx
mov dword [esi + 0x22c], eax
call edi
mov dword [esi + 0x230], eax
mov eax, dword [esi + 0x10c]
push str.nvmlDeviceGetEnforcedPowerLimit
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.nvmlDeviceGetPcieThroughput
push ecx
mov dword [esi + 0x234], eax
call edi
mov edx, dword [esi + 0x10c]
push str.nvmlDeviceGetFieldValues
push edx
mov dword [esi + 0x238], eax
call edi
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x10c]
push str.nvmlDeviceGetPciInfo
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.nvmlShutdown
push ecx
mov dword [esi + 0x240], eax
call edi
mov ecx, dword [esi + 0x210]
mov dword [esi + 0x244], eax
cmp ecx, ebx
je 0x48d97b
cmp dword [esi + 0x214], ebx
je 0x48d97b
cmp dword [esi + 0x218], ebx
je 0x48d97b
cmp dword [esi + 0x240], ebx
je 0x48d97b
cmp eax, ebx
je 0x48d97b
call ecx
test eax, eax
jne 0x48d97b
mov eax, dword [esi + 0x214]
lea edx, [esp + 0x14]
push edx
call eax
add esp, 4
test eax, eax
jne 0x48d960
cmp dword [esp + 0x14], eax
jle 0x48d960
lea edi, [esi + 0x110]
mov dword [esp + 0x24], edi
lea ebx, [ebx]
mov ecx, dword [esi + 0x218]
push edi
push ebx
call ecx
add esp, 8
test eax, eax
jne 0x48d94a
mov eax, dword [edi]
mov ecx, dword [esi + 0x240]
lea edx, [esp + 0x34]
push edx
push eax
call ecx
add esp, 8
test eax, eax
jne 0x48d94a
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x18]
mov ecx, eax
push edx
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.0044c8e0
test eax, eax
jle 0x48d94a
lea edx, [esp + 0x18]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0
call fcn.0041c700
mov edi, eax
test edi, edi
je 0x48d94a
mov ecx, edi
call fcn.00458690
cmp eax, dword [esp + 0x48]
jne 0x48d93b
mov ecx, edi
call fcn.004586b0
cmp eax, dword [esp + 0x4c]
jne 0x48d93b
push ebx
push esi
mov ecx, edi
call fcn.004562e0
lea ecx, [esp + 0x2c]
call fcn.0041c720
mov edi, eax
test edi, edi
jne 0x48d918
mov edi, dword [esp + 0x24]
inc ebx
add edi, 4
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x24], edi
jl 0x48d8b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.0041c7a0
mov eax, 1
jmp 0x48d991
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.0041c7a0
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0057db4c
mov esp, ebp
pop ebp
ret