Function at 0x481265
Capabilities:
Link many functions at runtime
Set environment variable

Disassembly:
sub esp, 0x344
mov eax, dword [0x619e70]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x108]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x481295
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0057db4c
add esp, 0x344
ret
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], ebx
je 0x48127c
push 0x5ab708
push str.ZES_ENABLE_SYSMAN
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x180], ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.ze_loader.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x184], eax
cmp eax, ebx
je 0x48127c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.zeInit
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zeDriverGetApiVersion
push ecx
mov dword [esi + 0x10c], eax
call edi
mov edx, dword [esi + 0x184]
push str.zeDriverGet
push edx
mov dword [esi + 0x110], eax
call edi
mov dword [esi + 0x114], eax
mov eax, dword [esi + 0x184]
push str.zeDeviceGet
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zesDeviceGetProperties
push ecx
mov dword [esi + 0x118], eax
call edi
mov edx, dword [esi + 0x184]
push str.zesDevicePciGetProperties
push edx
mov dword [esi + 0x11c], eax
call edi
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x184]
push str.zesDeviceEnumTemperatureSensors
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zesTemperatureGetProperties
push ecx
mov dword [esi + 0x124], eax
call edi
mov edx, dword [esi + 0x184]
push str.zesTemperatureGetConfig
push edx
mov dword [esi + 0x128], eax
call edi
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 0x184]
push str.zesTemperatureGetState
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zesDeviceEnumFrequencyDomains
push ecx
mov dword [esi + 0x130], eax
call edi
mov edx, dword [esi + 0x184]
push str.zesFrequencyGetProperties
push edx
mov dword [esi + 0x134], eax
call edi
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x184]
push str.zesFrequencyGetAvailableClocks
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zesFrequencyGetState
push ecx
mov dword [esi + 0x13c], eax
call edi
mov edx, dword [esi + 0x184]
push str.zesFrequencyGetThrottleTime
push edx
mov dword [esi + 0x140], eax
call edi
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x184]
push str.zesDeviceEnumMemoryModules
push eax
call edi
mov dword [esi + 0x148], eax
mov ecx, dword [esi + 0x184]
push str.zesMemoryGetProperties
push ecx
call edi
mov edx, dword [esi + 0x184]
push str.zesMemoryGetBandwidth
push edx
mov dword [esi + 0x14c], eax
call edi
mov dword [esi + 0x150], eax
mov eax, dword [esi + 0x184]
push str.zesMemoryGetState
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zesDeviceEnumPowerDomains
push ecx
mov dword [esi + 0x154], eax
call edi
mov edx, dword [esi + 0x184]
push str.zesPowerGetProperties
push edx
mov dword [esi + 0x158], eax
call edi
mov dword [esi + 0x15c], eax
mov eax, dword [esi + 0x184]
push str.zesPowerGetEnergyCounter
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zesPowerGetLimits
push ecx
mov dword [esi + 0x160], eax
call edi
mov edx, dword [esi + 0x184]
push str.zesDeviceEnumEngineGroups
push edx
mov dword [esi + 0x164], eax
call edi
mov dword [esi + 0x168], eax
mov eax, dword [esi + 0x184]
push str.zesEngineGetProperties
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zesEngineGetActivity
push ecx
mov dword [esi + 0x16c], eax
call edi
mov edx, dword [esi + 0x184]
push str.zesDeviceEnumFans
push edx
mov dword [esi + 0x170], eax
call edi
mov dword [esi + 0x174], eax
mov eax, dword [esi + 0x184]
push str.zesFanGetProperties
push eax
call edi
mov ecx, dword [esi + 0x184]
push str.zesFanGetConfig
push ecx
mov dword [esi + 0x178], eax
call edi
mov edx, dword [esi + 0x184]
push str.zesFanGetState
push edx
mov dword [esi + 0x17c], eax
call edi
mov dword [esi + 0x180], eax
mov eax, dword [esi + 0x10c]
cmp eax, ebx
je 0x481847
cmp dword [esi + 0x114], ebx
je 0x481847
cmp dword [esi + 0x118], ebx
je 0x481847
cmp dword [esi + 0x11c], ebx
je 0x481847
cmp dword [esi + 0x120], ebx
je 0x481847
push 1
call eax
add esp, 4
test eax, eax
jne 0x481847
mov ecx, dword [esi + 0x114]
push ebp
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x24], ebx
call ecx
mov edx, dword [esp + 0x24]
lea eax, [edx*4]
push eax
call fcn.0057ed3b
mov edx, dword [esi + 0x114]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esi + 0x188], eax
call edx
mov edi, 0xfffffe74
add esp, 0x14
sub edi, esi
mov dword [esp + 0x18], ebx
lea ebp, [esi + 0x18c]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x1c]
cmp eax, 0x10
jl 0x48167e
mov eax, 0x10
cmp dword [esp + 0x18], eax
jge 0x481827
mov ecx, dword [esi + 0x188]
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
add edi, ebp
mov edx, dword [edi + ecx]
push eax
mov eax, dword [esi + 0x118]
push edx
call eax
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4]
push edx
call fcn.0057ed3b
mov dword [ebp], eax
mov ecx, dword [esi + 0x188]
mov edx, dword [edi + ecx]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x118]
push edx
call eax
mov ecx, dword [esp + 0x2c]
shl ecx, 4
push ecx
call fcn.0057ed3b
mov edx, dword [esp + 0x30]
shl edx, 4
push edx
push ebx
push eax
mov dword [ebp + 0x40], eax
call fcn.0057f470
add esp, 0x2c
cmp dword [esp + 0x10], 0
jle 0x4817eb
nop
push 0x2f8
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.0057f470
mov edx, dword [ebp]
mov edi, 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], edi
mov eax, dword [edx + ebx*4]
push ecx
mov ecx, dword [esi + 0x11c]
push eax
call ecx
add esp, 0x14
cmp dword [esp + 0x68], edi
jne 0x4817e0
mov edx, dword [ebp]
mov edi, dword [edx + ebx*4]
push 0x30
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0057f470
mov edx, dword [esi + 0x120]
lea ecx, [esp + 0x34]
push ecx
push edi
mov dword [esp + 0x3c], 2
call edx
add esp, 0x14
test eax, eax
jne 0x4817e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
test eax, eax
jne 0x48178b
cmp dword [esp + 0x38], 0
jne 0x48178b
test ecx, ecx
jne 0x48178b
mov dword [esp + 0x38], 2
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.0044c810
mov edi, eax
test edi, edi
je 0x4817e0
mov eax, dword [esp + 0x18]
mov edx, ebx
and edx, 0xff
shl eax, 0x10
or edx, eax
push edx
push esi
mov ecx, edi
call fcn.004562e0
mov ecx, dword [esp + 0x98]
imul ecx, dword [esp + 0x9c]
imul ecx, dword [esp + 0xa0]
mov dword [edi + 0x4b4], ecx
mov dword [esp + 0x14], 1
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x481700
cmp dword [esp + 0x14], 0
jne 0x481815
mov edx, dword [ebp + 0x40]
push edx
call fcn.0057ee45
mov eax, dword [ebp]
push eax
mov dword [ebp + 0x40], 0
call fcn.0057ee45
add esp, 8
mov dword [ebp], 0
inc dword [esp + 0x18]
mov edi, dword [esp + 0x24]
add ebp, 4
xor ebx, ebx
jmp 0x481670
pop ebp
cmp dword [esp + 0x10], ebx
jne 0x481847
mov eax, dword [esi + 0x188]
cmp eax, ebx
je 0x481847
push eax
call fcn.0057ee45
add esp, 4
mov dword [esi + 0x188], ebx
mov ecx, dword [esp + 0x34c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057db4c
add esp, 0x344
ret