Function at 0x1400bf360
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 [0x140304470]
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 0x1400bf4d0
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.140094f70
lea rdx, str.Failed_to_obtain_all_required_NVML_function_pointers
lea rcx, [rsp + 0x48]
call fcn.140035d70
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140034220
lea rcx, [rbp + 0x30]
call fcn.140095420
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400bf43d
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bf438
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bf438
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
lea rcx, [rsp + 0x38]
call fcn.1400041d0
nop
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.140094f70
lea rdx, str.NVIDIA_hardware_monitoring_disabled
lea rcx, [rsp + 0x48]
call fcn.140035d70
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140034220
lea rcx, [rbp + 0x30]
call fcn.140095420
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400bf4c0
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bf4bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bf4bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
lea rcx, [rsp + 0x38]
call fcn.1400041d0
nop
jmp 0x1400bf80c
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 0x1400bf6f4
test rax, rax
je 0x1400bf6f4
test rsi, rsi
je 0x1400bf6f4
test r14, r14
je 0x1400bf6f4
test r15, r15
je 0x1400bf6f4
test r12, r12
je 0x1400bf6f4
cmp qword [rsp + 0x28], 0
je 0x1400bf6f4
cmp qword [rsp + 0x30], 0
je 0x1400bf6f4
test r13, r13
je 0x1400bf6f4
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 0x1400bf6ec
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 0x1400bf680
test eax, eax
jle 0x1400bf6ec
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 0x1400bf6b0
mov rax, rbx
jmp 0x1400bf80e
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.140094f70
lea rdx, str.Failed_to_obtain_all_required_NVML_function_pointers
lea rcx, [rsp + 0x48]
call fcn.140035d70
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140034220
lea rcx, [rbp + 0x30]
call fcn.140095420
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400bf76c
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bf767
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bf767
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
lea rcx, [rsp + 0x38]
call fcn.1400041d0
nop
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.140094f70
lea rdx, str.NVIDIA_hardware_monitoring_disabled
lea rcx, [rsp + 0x48]
call fcn.140035d70
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140034220
lea rcx, [rbp + 0x30]
call fcn.140095420
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400bf7ef
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bf7ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bf7ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
lea rcx, [rsp + 0x38]
call fcn.1400041d0
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.140218dc0
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