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

Disassembly:
sub esp, 0x344
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x340], eax
push ebp
xor ebp, ebp
push esi
mov esi, ecx
push 0x56ee78
push str.ZES_ENABLE_SYSMAN
mov dword [esp + 0x14], ebp
mov dword [esi + 0x108], ebp
mov dword [esi + 0x10c], ebp
mov dword [esi + 0x110], ebp
mov dword [esi + 0x114], ebp
mov dword [esi + 0x118], ebp
mov dword [esi + 0x11c], ebp
mov dword [esi + 0x120], ebp
mov dword [esi + 0x124], ebp
mov dword [esi + 0x128], ebp
mov dword [esi + 0x12c], ebp
mov dword [esi + 0x130], ebp
mov dword [esi + 0x134], ebp
mov dword [esi + 0x138], ebp
mov dword [esi + 0x13c], ebp
mov dword [esi + 0x140], ebp
mov dword [esi + 0x144], ebp
mov dword [esi + 0x148], ebp
mov dword [esi + 0x14c], ebp
mov dword [esi + 0x150], ebp
mov dword [esi + 0x154], ebp
mov dword [esi + 0x158], ebp
mov dword [esi + 0x15c], ebp
mov dword [esi + 0x160], ebp
mov dword [esi + 0x164], ebp
mov dword [esi + 0x168], ebp
mov dword [esi + 0x16c], ebp
mov dword [esi + 0x170], ebp
mov dword [esi + 0x174], ebp
mov dword [esi + 0x178], ebp
mov dword [esi + 0x17c], ebp
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.ze_loader.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x180], eax
cmp eax, ebp
jne 0x44fe20
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0053081c
add esp, 0x344
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.zeInit
push eax
call edi
mov dword [esi + 0x108], eax
mov eax, dword [esi + 0x180]
push str.zeDriverGetApiVersion
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zeDriverGet
push ecx
mov dword [esi + 0x10c], eax
call edi
mov edx, dword [esi + 0x180]
push str.zeDeviceGet
push edx
mov dword [esi + 0x110], eax
call edi
mov dword [esi + 0x114], eax
mov eax, dword [esi + 0x180]
push str.zesDeviceGetProperties
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesDevicePciGetProperties
push ecx
mov dword [esi + 0x118], eax
call edi
mov edx, dword [esi + 0x180]
push str.zesDeviceEnumTemperatureSensors
push edx
mov dword [esi + 0x11c], eax
call edi
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x180]
push str.zesTemperatureGetProperties
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesTemperatureGetConfig
push ecx
mov dword [esi + 0x124], eax
call edi
mov edx, dword [esi + 0x180]
push str.zesTemperatureGetState
push edx
mov dword [esi + 0x128], eax
call edi
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 0x180]
push str.zesDeviceEnumFrequencyDomains
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesFrequencyGetProperties
push ecx
mov dword [esi + 0x130], eax
call edi
mov edx, dword [esi + 0x180]
push str.zesFrequencyGetAvailableClocks
push edx
mov dword [esi + 0x134], eax
call edi
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x180]
push str.zesFrequencyGetState
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesFrequencyGetThrottleTime
push ecx
mov dword [esi + 0x13c], eax
call edi
mov edx, dword [esi + 0x180]
push str.zesDeviceEnumMemoryModules
push edx
mov dword [esi + 0x140], eax
call edi
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x180]
push str.zesMemoryGetProperties
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesMemoryGetBandwidth
push ecx
mov dword [esi + 0x148], eax
call edi
mov edx, dword [esi + 0x180]
push str.zesMemoryGetState
push edx
mov dword [esi + 0x14c], eax
call edi
mov dword [esi + 0x150], eax
mov eax, dword [esi + 0x180]
push str.zesDeviceEnumPowerDomains
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesPowerGetProperties
push ecx
mov dword [esi + 0x154], eax
call edi
mov edx, dword [esi + 0x180]
push str.zesPowerGetEnergyCounter
push edx
mov dword [esi + 0x158], eax
call edi
mov dword [esi + 0x15c], eax
mov eax, dword [esi + 0x180]
push str.zesPowerGetLimits
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesDeviceEnumEngineGroups
push ecx
mov dword [esi + 0x160], eax
call edi
mov edx, dword [esi + 0x180]
push str.zesEngineGetProperties
push edx
mov dword [esi + 0x164], eax
call edi
mov dword [esi + 0x168], eax
mov eax, dword [esi + 0x180]
push str.zesEngineGetActivity
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesDeviceEnumFans
push ecx
mov dword [esi + 0x16c], eax
call edi
mov edx, dword [esi + 0x180]
push str.zesFanGetProperties
push edx
mov dword [esi + 0x170], eax
call edi
mov dword [esi + 0x174], eax
mov eax, dword [esi + 0x180]
push str.zesFanGetConfig
push eax
call edi
mov ecx, dword [esi + 0x180]
push str.zesFanGetState
push ecx
mov dword [esi + 0x178], eax
call edi
mov dword [esi + 0x17c], eax
mov eax, dword [esi + 0x108]
cmp eax, ebp
je 0x450306
cmp dword [esi + 0x110], ebp
je 0x450306
cmp dword [esi + 0x114], ebp
je 0x450306
cmp dword [esi + 0x118], ebp
je 0x450306
cmp dword [esi + 0x11c], ebp
je 0x450306
push ebp
call eax
add esp, 4
test eax, eax
jne 0x450306
mov eax, dword [esi + 0x110]
push ebx
lea edx, [esp + 0x1c]
push ebp
push edx
mov dword [esp + 0x24], ebp
call eax
mov ecx, dword [esp + 0x24]
lea edx, [ecx*4]
push edx
call fcn.00532967
mov ecx, dword [esi + 0x110]
push eax
mov dword [esi + 0x184], eax
lea eax, [esp + 0x2c]
push eax
call ecx
mov eax, 0xfffffe78
add esp, 0x14
sub eax, esi
mov dword [esp + 0x18], ebp
lea ebx, [esi + 0x188]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x10
jl 0x450123
mov ecx, 0x10
cmp dword [esp + 0x18], ecx
jge 0x4502e6
lea edi, [eax + ebx]
mov eax, dword [esi + 0x184]
push ebp
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ecx, dword [edi + eax]
push edx
mov edx, dword [esi + 0x114]
push ecx
call edx
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.00532967
mov dword [ebx], eax
push eax
mov eax, dword [esi + 0x184]
mov ecx, dword [edi + eax]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esi + 0x114]
push ecx
call edx
mov eax, dword [esp + 0x2c]
shl eax, 4
push eax
call fcn.00532967
mov ecx, dword [esp + 0x30]
shl ecx, 4
push ecx
push ebp
push eax
mov dword [ebx + 0x40], eax
call fcn.00530830
add esp, 0x2c
xor edi, edi
cmp dword [esp + 0x10], ebp
jle 0x4502b7
push 0x2f8
lea edx, [esp + 0x5c]
push ebp
push edx
call fcn.00530830
mov ecx, dword [ebx]
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 1
mov edx, dword [ecx + edi*4]
push eax
mov eax, dword [esi + 0x118]
push edx
call eax
add esp, 0x14
cmp dword [esp + 0x68], 1
jne 0x4502ac
mov ecx, dword [ebx]
mov edx, dword [ecx + edi*4]
push 0x30
lea eax, [esp + 0x2c]
push ebp
push eax
mov dword [esp + 0x2c], edx
call fcn.00530830
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x11c]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], 2
call eax
add esp, 0x14
test eax, eax
jne 0x4502ac
cmp dword [esp + 0x34], ebp
jne 0x450233
cmp dword [esp + 0x38], ebp
jne 0x450233
cmp dword [esp + 0x3c], ebp
jne 0x450233
mov dword [esp + 0x38], 2
call fcn.00416b80
mov ecx, eax
call fcn.00413330
test eax, eax
je 0x4502ac
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
call fcn.00416b80
mov ecx, eax
call fcn.00413330
mov ecx, eax
call fcn.00425320
mov ebp, eax
test ebp, ebp
je 0x4502aa
mov edx, dword [esp + 0x18]
mov ecx, edi
and ecx, 0xff
shl edx, 0x10
or ecx, edx
push ecx
push esi
mov ecx, ebp
call fcn.00441e60
mov eax, dword [esp + 0x98]
imul eax, dword [esp + 0x9c]
imul eax, dword [esp + 0xa0]
mov dword [ebp + 0x4b4], eax
mov dword [esp + 0x14], 1
xor ebp, ebp
inc edi
cmp edi, dword [esp + 0x10]
jl 0x4501a5
cmp dword [esp + 0x14], ebp
jne 0x4502d6
mov ecx, dword [ebx + 0x40]
push ecx
call fcn.0053288a
mov edx, dword [ebx]
push edx
mov dword [ebx + 0x40], ebp
call fcn.0053288a
add esp, 8
mov dword [ebx], ebp
inc dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add ebx, 4
jmp 0x450115
pop ebx
cmp dword [esp + 0x10], ebp
jne 0x450306
mov eax, dword [esi + 0x184]
cmp eax, ebp
je 0x450306
push eax
call fcn.0053288a
add esp, 4
mov dword [esi + 0x184], ebp
mov ecx, dword [esp + 0x34c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0053081c
add esp, 0x344
ret