Function at 0x1400ae680
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r8d, 0x200
lea rdx, [rbp + 0x70]
lea rcx, str._WINDIR__System32_nvml.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x1400ae7f0
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.140091b70
lea rdx, str.Failed_to_obtain_all_required_NVML_function_pointers
lea rcx, [rsp + 0x48]
call fcn.1400345b0
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140032c20
lea rcx, [rbp + 0x30]
call fcn.140092020
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400ae75d
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ae758
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ae758
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401ec5cc
lea rcx, [rsp + 0x38]
call fcn.140003ff0
nop
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.140091b70
lea rdx, str.NVIDIA_hardware_monitoring_disabled
lea rcx, [rsp + 0x48]
call fcn.1400345b0
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140032c20
lea rcx, [rbp + 0x30]
call fcn.140092020
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400ae7e0
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ae7db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ae7db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401ec5cc
lea rcx, [rsp + 0x38]
call fcn.140003ff0
nop
jmp 0x1400aeb2c
mov edx, 0x78
lea ecx, [rdx - 0x77]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
mov qword [rax], rdi
lea rdx, str.nvmlInit
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x30], rax
lea rdx, str.nvmlDeviceGetCount_v2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rbx + 0x38], rax
lea rdx, str.nvmlDeviceGetHandleByIndex_v2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rbx + 0x40], rax
lea rdx, str.nvmlDeviceGetPciInfo
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov qword [rbx + 0x48], rax
lea rdx, str.nvmlDeviceGetName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov qword [rbx + 0x50], rax
lea rdx, str.nvmlDeviceGetTemperature
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x58], rax
lea rdx, str.nvmlDeviceGetFanSpeed
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
mov qword [rbx + 0x60], rax
lea rdx, str.nvmlDeviceGetPowerUsage
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
mov qword [rbx + 0x68], rax
lea rdx, str.nvmlShutdown
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400aea14
test rax, rax
je 0x1400aea14
test rsi, rsi
je 0x1400aea14
test r14, r14
je 0x1400aea14
test r15, r15
je 0x1400aea14
test r12, r12
je 0x1400aea14
cmp qword [rsp + 0x28], 0
je 0x1400aea14
cmp qword [rsp + 0x30], 0
je 0x1400aea14
test r13, r13
je 0x1400aea14
call rcx
lea rcx, [rbx + 8]
call qword [rbx + gethostname]
movsxd rcx, dword [rbx + 8]
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx + 0x28], rax
movsxd rcx, dword [rbx + 8]
mov edx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx + 0x10], rax
movsxd rcx, dword [rbx + 8]
mov edx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx + 0x18], rax
movsxd rcx, dword [rbx + 8]
mov edx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx + 0x20], rax
xor esi, esi
mov edi, esi
mov eax, dword [rbx + 8]
test eax, eax
jle 0x1400aea0c
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edi
mov rax, qword [rbx + 0x28]
lea rdx, [rax + rcx*8]
mov ecx, edi
call qword [rbx + 0x40]
inc edi
mov eax, dword [rbx + 8]
cmp edi, eax
jl 0x1400ae9a0
test eax, eax
jle 0x1400aea0c
mov rdi, rsi
mov r14, rsi
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, qword [rcx + r14]
call qword [rbx + 0x48]
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbp + 0x40]
mov dword [rdi + rcx], eax
mov rcx, qword [rbx + 0x18]
mov eax, dword [rbp + 0x44]
mov dword [rdi + rcx], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rbp + 0x48]
mov dword [rdi + rcx], eax
inc esi
lea r14, [r14 + 8]
lea rdi, [rdi + 4]
cmp esi, dword [rbx + 8]
jl 0x1400ae9d0
mov rax, rbx
jmp 0x1400aeb2e
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.140091b70
lea rdx, str.Failed_to_obtain_all_required_NVML_function_pointers
lea rcx, [rsp + 0x48]
call fcn.1400345b0
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140032c20
lea rcx, [rbp + 0x30]
call fcn.140092020
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400aea8c
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aea87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aea87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401ec5cc
lea rcx, [rsp + 0x38]
call fcn.140003ff0
nop
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.140091b70
lea rdx, str.NVIDIA_hardware_monitoring_disabled
lea rcx, [rsp + 0x48]
call fcn.1400345b0
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140032c20
lea rcx, [rbp + 0x30]
call fcn.140092020
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400aeb0f
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aeb0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aeb0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401ec5cc
lea rcx, [rsp + 0x38]
call fcn.140003ff0
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1401ebfb0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret