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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x354
mov eax, dword [0x10206870]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x108]
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x100d50fa
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.1003dc89
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x184], ebx
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x100d5116
push eax
call edi
mov dword [esi + 0x184], eax
cmp dword [esi + 0x184], ebx
jne 0x100d512f
push str.ze_loader.dll
call edi
mov dword [esi + 0x184], eax
cmp eax, ebx
je 0x100d50e3
push 0x101c4b84
push str.ZES_ENABLE_SYSMAN
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [esi + 0x184]
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 ecx, dword [esi + 0x184]
push str.zesMemoryGetProperties
push ecx
mov dword [esi + 0x148], eax
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 0x100d5632
cmp dword [esi + 0x114], ebx
je 0x100d5632
cmp dword [esi + 0x118], ebx
je 0x100d5632
cmp dword [esi + 0x11c], ebx
je 0x100d5632
cmp dword [esi + 0x120], ebx
je 0x100d5632
push 1
call eax
add esp, 4
test eax, eax
jne 0x100d5632
mov ecx, dword [esi + 0x114]
lea eax, [esp + 0x14]
push ebx
push eax
mov dword [esp + 0x1c], ebx
call ecx
mov edx, dword [esp + 0x1c]
lea eax, [edx*4]
push eax
call fcn.1003e892
mov edx, dword [esi + 0x114]
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x188], eax
call edx
mov eax, 0xfffffe74
add esp, 8
sub eax, esi
mov dword [esp + 0x18], ebx
lea edi, [esi + 0x18c]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x14]
cmp ecx, 0x10
mov dword [esp + 0x20], edi
jl 0x100d544e
mov ecx, 0x10
cmp dword [esp + 0x18], ecx
jge 0x100d5613
mov ecx, dword [esi + 0x188]
mov dword [esp + 0x10], ebx
lea ebx, [eax + edi]
mov edx, dword [ebx + ecx]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x118]
push edx
call eax
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4]
add esp, 0xc
push edx
call fcn.1003e892
add esp, 4
mov dword [edi], eax
mov ecx, dword [esi + 0x188]
mov edx, dword [ebx + ecx]
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x118]
push edx
call eax
mov ecx, dword [esp + 0x1c]
shl ecx, 4
add esp, 0xc
push ecx
call fcn.1003e892
mov edx, dword [esp + 0x14]
add esp, 4
shl edx, 4
push edx
push 0
push eax
mov dword [edi + 0x40], eax
call fcn.1003f7d0
xor ebx, ebx
add esp, 0xc
cmp dword [esp + 0x10], ebx
jle 0x100d55d6
push 0x2f8
lea eax, [esp + 0x64]
push 0
push eax
call fcn.1003f7d0
mov edx, dword [edi]
add esp, 0xc
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], 1
mov eax, dword [edx + ebx*4]
push ecx
mov ecx, dword [esi + 0x11c]
push eax
call ecx
add esp, 8
cmp dword [esp + 0x70], 1
jne 0x100d55cb
mov edx, dword [edi]
mov eax, dword [edx + ebx*4]
push 0x30
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x34], eax
call fcn.1003f7d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x120]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x38], 2
call ecx
add esp, 8
test eax, eax
jne 0x100d55cb
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
test eax, eax
jne 0x100d5575
cmp dword [esp + 0x40], 0
jne 0x100d5575
test edi, edi
jne 0x100d5575
mov dword [esp + 0x40], 2
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x34]
call fcn.1007d590
mov edi, eax
test edi, edi
je 0x100d55c7
mov ecx, dword [esp + 0x18]
mov eax, ebx
and eax, 0xff
shl ecx, 0x10
or eax, ecx
push eax
mov eax, edi
call fcn.100e3830
mov edx, dword [esp + 0xa0]
imul edx, dword [esp + 0xa4]
imul edx, dword [esp + 0xa8]
mov dword [edi + 0x394], edx
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x20]
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x100d54de
cmp dword [esp + 0x1c], 0
jne 0x100d5601
mov eax, dword [edi + 0x40]
push eax
call fcn.1003e7b5
mov ecx, dword [edi]
add esp, 4
push ecx
mov dword [edi + 0x40], 0
call fcn.1003e7b5
add esp, 4
mov dword [edi], 0
inc dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add edi, 4
xor ebx, ebx
jmp 0x100d543c
cmp dword [esp + 0x1c], ebx
jne 0x100d5632
mov eax, dword [esi + 0x188]
cmp eax, ebx
je 0x100d5632
push eax
call fcn.1003e7b5
add esp, 4
mov dword [esi + 0x188], ebx
mov ecx, dword [esp + 0x35c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003dc89
mov esp, ebp
pop ebp
ret