Function at 0x1400b22f0
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 [0x1402cf480]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r8d, 0x200
lea rdx, [rbp + 0x70]
lea rcx, str._PROGRAMFILES__NVIDIA_Corporation_NVSMI_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 0x1400b2460
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.14008dbb0
lea rdx, str.Failed_to_obtain_all_required_NVML_function_pointers
lea rcx, [rsp + 0x48]
call fcn.140035180
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140033df0
lea rcx, [rbp + 0x30]
call fcn.14008df10
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x1400b23cd
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b23c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b23c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fb494
lea rcx, [rsp + 0x38]
call fcn.140004870
nop
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.14008dbb0
lea rdx, str.NVIDIA_hardware_monitoring_disabled
lea rcx, [rsp + 0x48]
call fcn.140035180
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140033df0
lea rcx, [rbp + 0x30]
call fcn.14008df10
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x1400b2450
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b244b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b244b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fb494
lea rcx, [rsp + 0x38]
call fcn.140004870
nop
jmp 0x1400b279c
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 0x1400b2684
test rax, rax
je 0x1400b2684
test rsi, rsi
je 0x1400b2684
test r14, r14
je 0x1400b2684
test r15, r15
je 0x1400b2684
test r12, r12
je 0x1400b2684
cmp qword [rsp + 0x28], 0
je 0x1400b2684
cmp qword [rsp + 0x30], 0
je 0x1400b2684
test r13, r13
je 0x1400b2684
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 0x1400b267c
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 0x1400b2610
test eax, eax
jle 0x1400b267c
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 0x1400b2640
mov rax, rbx
jmp 0x1400b279e
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.14008dbb0
lea rdx, str.Failed_to_obtain_all_required_NVML_function_pointers
lea rcx, [rsp + 0x48]
call fcn.140035180
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140033df0
lea rcx, [rbp + 0x30]
call fcn.14008df10
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x1400b26fc
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b26f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b26f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fb494
lea rcx, [rsp + 0x38]
call fcn.140004870
nop
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x38]
call fcn.14008dbb0
lea rdx, str.NVIDIA_hardware_monitoring_disabled
lea rcx, [rsp + 0x48]
call fcn.140035180
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140033df0
lea rcx, [rbp + 0x30]
call fcn.14008df10
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x1400b277f
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b277a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b277a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fb494
lea rcx, [rsp + 0x38]
call fcn.140004870
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.1401fb000
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