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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x390
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov r15, qword [rcx + 0x110]
xor ebx, ebx
mov rdi, rcx
mov r12d, ebx
cmp r15, rbx
jne 0x14008ef04
xor eax, eax
jmp 0x14008f5cc
mov rax, qword [r15 + 8]
cmp qword [rax + 0x38], rbx
je 0x14008eefd
mov qword [rcx + 0x118], rbx
mov qword [rcx + 0x120], rbx
mov qword [rcx + 0x128], rbx
mov qword [rcx + 0x130], rbx
mov qword [rcx + 0x138], rbx
mov qword [rcx + 0x140], rbx
mov qword [rcx + 0x148], rbx
mov qword [rcx + 0x150], rbx
mov qword [rcx + 0x158], rbx
mov qword [rcx + 0x160], rbx
mov qword [rcx + 0x168], rbx
mov qword [rcx + 0x170], rbx
mov qword [rcx + 0x178], rbx
mov qword [rcx + 0x180], rbx
mov qword [rcx + 0x188], rbx
mov qword [rcx + 0x190], rbx
mov qword [rcx + 0x198], rbx
mov qword [rcx + 0x1a0], rbx
mov qword [rcx + 0x1a8], rbx
mov qword [rcx + 0x1b0], rbx
mov qword [rcx + 0x1b8], rbx
mov qword [rcx + 0x1c0], rbx
mov qword [rcx + 0x1c8], rbx
mov qword [rcx + 0x1d0], rbx
mov qword [rcx + 0x1d8], rbx
mov qword [rcx + 0x1e0], rbx
mov qword [rcx + 0x1e8], rbx
mov qword [rcx + 0x1f0], rbx
mov qword [rcx + 0x1f8], rbx
mov qword [rcx + 0x200], rbx
lea rcx, str.ZES_ENABLE_SYSMAN
lea rdx, [0x1401d1484]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rcx, str.ze_loader.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rdi + 0x208], rax
cmp rax, rbx
je 0x14008eefd
lea rdx, str.zeInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zeDriverGetApiVersion
mov qword [rdi + 0x118], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zeDriverGet
mov qword [rdi + 0x120], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zeDeviceGet
mov qword [rdi + 0x128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesDeviceGetProperties
mov qword [rdi + 0x130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesDevicePciGetProperties
mov qword [rdi + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesDeviceEnumTemperatureSensors
mov qword [rdi + 0x140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesTemperatureGetProperties
mov qword [rdi + 0x148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesTemperatureGetConfig
mov qword [rdi + 0x150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesTemperatureGetState
mov qword [rdi + 0x158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesDeviceEnumFrequencyDomains
mov qword [rdi + 0x160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesFrequencyGetProperties
mov qword [rdi + 0x168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesFrequencyGetAvailableClocks
mov qword [rdi + 0x170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesFrequencyGetState
mov qword [rdi + 0x178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesFrequencyGetThrottleTime
mov qword [rdi + 0x180], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesDeviceEnumMemoryModules
mov qword [rdi + 0x188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesMemoryGetProperties
mov qword [rdi + 0x190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesMemoryGetBandwidth
mov qword [rdi + 0x198], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesMemoryGetState
mov qword [rdi + 0x1a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesDeviceEnumPowerDomains
mov qword [rdi + 0x1a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.zesPowerGetProperties
mov qword [rdi + 0x1b0], rax
mov rcx, qword [rdi + 0x208]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesPowerGetEnergyCounter
mov qword [rdi + 0x1b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesPowerGetLimits
mov qword [rdi + 0x1c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesDeviceEnumEngineGroups
mov qword [rdi + 0x1c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesEngineGetProperties
mov qword [rdi + 0x1d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesEngineGetActivity
mov qword [rdi + 0x1d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesDeviceEnumFans
mov qword [rdi + 0x1e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesFanGetProperties
mov qword [rdi + 0x1e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesFanGetConfig
mov qword [rdi + 0x1f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x208]
lea rdx, str.zesFanGetState
mov qword [rdi + 0x1f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x200], rax
mov rax, qword [rdi + 0x118]
cmp rax, rbx
je 0x14008f5c9
cmp qword [rdi + 0x128], rbx
je 0x14008f5c9
cmp qword [rdi + 0x130], rbx
je 0x14008f5c9
cmp qword [rdi + 0x138], rbx
je 0x14008f5c9
cmp qword [rdi + 0x140], rbx
je 0x14008f5c9
mov ecx, 1
call rax
cmp eax, ebx
jne 0x14008f5c9
lea rcx, [rsp + 0x24]
xor edx, edx
mov dword [rsp + 0x24], ebx
call qword [rdi + 0x128]
mov ecx, dword [rsp + 0x24]
shl rcx, 3
call fcn.140158508
lea rcx, [rsp + 0x24]
mov rdx, rax
mov qword [rdi + 0x210], rax
call qword [rdi + 0x128]
mov eax, 0x10
mov r14d, ebx
cmp dword [rsp + 0x24], eax
cmovl eax, dword [rsp + 0x24]
cmp eax, ebx
jle 0x14008f5b1
mov rax, 0xfffffffffffffde8
lea rsi, [rdi + 0x218]
sub rax, rdi
mov qword [rsp + 0x28], rax
mov rcx, qword [rdi + 0x210]
mov dword [rsp + 0x20], ebx
lea rbx, [rax + rsi]
mov rcx, qword [rbx + rcx]
lea rdx, [rsp + 0x20]
xor r8d, r8d
call qword [rdi + 0x130]
mov ecx, dword [rsp + 0x20]
shl rcx, 3
call fcn.140158508
lea rdx, [rsp + 0x20]
mov qword [rsi], rax
mov rcx, qword [rdi + 0x210]
mov r8, rax
mov rcx, qword [rbx + rcx]
call qword [rdi + 0x130]
mov ecx, dword [rsp + 0x20]
shl rcx, 4
call fcn.140158508
mov r8d, dword [rsp + 0x20]
xor edx, edx
shl r8, 4
mov rcx, rax
mov qword [rsi + 0x80], rax
call fcn.140158a90
xor ebx, ebx
cmp dword [rsp + 0x20], ebx
mov r13d, ebx
jle 0x14008f566
mov rbp, rbx
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x308
call fcn.140158a90
mov rcx, qword [rsi]
mov dword [rsp + 0x70], 1
mov rcx, qword [rcx + rbp]
lea rdx, [rsp + 0x70]
call qword [rdi + 0x138]
cmp dword [rsp + 0x90], 1
jne 0x14008f554
mov rax, qword [rsi]
xor edx, edx
lea rcx, [rsp + 0x30]
mov rbx, qword [rax + rbp]
lea r8d, [rdx + 0x38]
call fcn.140158a90
mov eax, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x30], eax
call qword [rdi + 0x140]
xor ebx, ebx
cmp eax, ebx
jne 0x14008f554
mov edx, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x48]
cmp edx, ebx
jne 0x14008f503
cmp r8d, ebx
jne 0x14008f503
lea eax, [rbx + 2]
cmp r9d, ebx
cmove r8d, eax
mov dword [rsp + 0x48], r8d
mov rcx, r15
call fcn.140056364
mov rbx, rax
test rax, rax
je 0x14008f552
mov eax, r14d
movzx r8d, r13b
mov rdx, rdi
shl eax, 0x10
mov rcx, rbx
or r8d, eax
call fcn.14005fbb0
mov r11d, dword [rsp + 0xc0]
mov r12d, 1
imul r11d, dword [rsp + 0xc4]
imul r11d, dword [rsp + 0xc8]
mov dword [rbx + 0x4c4], r11d
xor ebx, ebx
inc r13d
add rbp, 8
cmp r13d, dword [rsp + 0x20]
jl 0x14008f46f
cmp r12d, ebx
jne 0x14008f589
mov rcx, qword [rsi + 0x80]
call fcn.140158604
mov rcx, qword [rsi]
mov qword [rsi + 0x80], rbx
call fcn.140158604
mov qword [rsi], rbx
mov eax, 0x10
inc r14d
add rsi, 8
cmp dword [rsp + 0x24], eax
cmovl eax, dword [rsp + 0x24]
cmp r14d, eax
mov rax, qword [rsp + 0x28]
jl 0x14008f3ec
cmp r12d, ebx
jne 0x14008f5c9
mov rcx, qword [rdi + 0x210]
cmp rcx, rbx
je 0x14008f5c9
call fcn.140158604
mov qword [rdi + 0x210], rbx
mov eax, r12d
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140156fd0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret