Function at 0x100cc820
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101740af
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10206870]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x10206870]
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 dword [esp + 0x90], ebx
mov eax, dword [esi + 0x108]
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x100ccb32
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x100ccb32
mov eax, dword [eax + 0x28]
cmp eax, ebx
je 0x100cc8ba
push 0x800
push ebx
push 0x101c18bc
call eax
mov dword [esi + 0x10c], eax
cmp eax, ebx
jne 0x100cc8cb
push 0x101c18c8
jmp 0x100cc8bf
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 0x100ccb32
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 0x100ccb32
cmp dword [esi + 0x214], ebx
je 0x100ccb32
cmp dword [esi + 0x218], ebx
je 0x100ccb32
cmp dword [esi + 0x240], ebx
je 0x100ccb32
cmp eax, ebx
je 0x100ccb32
call ecx
test eax, eax
jne 0x100ccb32
mov eax, dword [esi + 0x214]
lea edx, [esp + 0x14]
push edx
call eax
add esp, 4
test eax, eax
jne 0x100ccb17
cmp dword [esp + 0x14], eax
jle 0x100ccb17
lea edi, [esi + 0x110]
mov dword [esp + 0x24], edi
mov ecx, dword [esi + 0x218]
push edi
push ebx
call ecx
add esp, 8
test eax, eax
jne 0x100ccb01
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 0x100ccb01
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.1007dc90
test eax, eax
jle 0x100ccb01
lea edx, [esp + 0x18]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0
call fcn.10001180
mov edi, eax
test edi, edi
je 0x100ccb01
lea esp, [esp]
mov ecx, edi
call fcn.100e3790
cmp eax, dword [esp + 0x48]
jne 0x100ccaf2
mov ecx, edi
call fcn.100e3770
cmp eax, dword [esp + 0x4c]
jne 0x100ccaf2
push ebx
mov eax, edi
call fcn.100e3830
lea ecx, [esp + 0x2c]
call fcn.10001eb0
mov edi, eax
test edi, edi
jne 0x100ccad0
mov edi, dword [esp + 0x24]
inc ebx
add edi, 4
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x24], edi
jl 0x100cca61
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.100014a0
mov eax, 1
jmp 0x100ccb48
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.100014a0
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.1003dc89
mov esp, ebp
pop ebp
ret