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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x370
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402bdaf8]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r8d, 0x200
lea rdx, [rbp + 0x60]
lea rcx, str._PROGRAMFILES__NVIDIA_Corporation_NVSMI_nvml.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x1400c835c
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009e690
lea rdx, str.Failed_to_obtain_all_required_NVML_function_pointers
lea rcx, [rsp + 0x38]
call fcn.14003ed20
nop
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140038200
mov rcx, rax
call fcn.14009e9d0
mov r8, qword [rbp + 0x38]
cmp r8, 0x10
jb 0x1400c82dc
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.14003b660
lea rcx, [rbp - 0x40]
call fcn.140038230
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009e690
lea rdx, str.NVIDIA_hardware_monitoring_disabled
lea rcx, [rsp + 0x38]
call fcn.14003ed20
nop
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140038200
mov rcx, rax
call fcn.14009e9d0
mov r8, qword [rbp + 0x38]
cmp r8, 0x10
jb 0x1400c8343
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.14003b660
lea rcx, [rbp - 0x40]
call fcn.140038230
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
jmp 0x1400c8644
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 [rbx + 0x30], rax
lea rdx, str.nvmlDeviceGetCount_v2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.nvmlDeviceGetHandleByIndex_v2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
lea rdx, str.nvmlDeviceGetPciInfo
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, str.nvmlDeviceGetName
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
lea rdx, str.nvmlDeviceGetTemperature
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
lea rdx, str.nvmlDeviceGetFanSpeed
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
lea rdx, str.nvmlDeviceGetPowerUsage
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
lea rdx, str.nvmlShutdown
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400c8564
test rax, rax
je 0x1400c8564
cmp qword [rbx + 0x38], 0
je 0x1400c8564
cmp qword [rbx + 0x40], 0
je 0x1400c8564
cmp qword [rbx + 0x48], 0
je 0x1400c8564
cmp qword [rbx + 0x50], 0
je 0x1400c8564
cmp qword [rbx + 0x58], 0
je 0x1400c8564
cmp qword [rbx + 0x60], 0
je 0x1400c8564
cmp qword [rbx + 0x68], 0
je 0x1400c8564
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
cmp dword [rbx + 8], esi
jle 0x1400c855c
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
cmp edi, dword [rbx + 8]
jl 0x1400c84f0
cmp dword [rbx + 8], esi
jle 0x1400c855c
mov rdi, rsi
mov r15, rsi
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x28]
lea rdx, [rbp + 0x20]
mov rcx, qword [rcx + r15]
call qword [rbx + 0x48]
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbp + 0x30]
mov dword [rdi + rcx], eax
mov rcx, qword [rbx + 0x18]
mov eax, dword [rbp + 0x34]
mov dword [rdi + rcx], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rbp + 0x38]
mov dword [rdi + rcx], eax
inc esi
lea r15, [r15 + 8]
lea rdi, [rdi + 4]
cmp esi, dword [rbx + 8]
jl 0x1400c8520
mov rax, rbx
jmp 0x1400c8646
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009e690
lea rdx, str.Failed_to_obtain_all_required_NVML_function_pointers
lea rcx, [rsp + 0x38]
call fcn.14003ed20
nop
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140038200
mov rcx, rax
call fcn.14009e9d0
mov r8, qword [rbp + 0x38]
cmp r8, 0x10
jb 0x1400c85b7
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.14003b660
lea rcx, [rbp - 0x40]
call fcn.140038230
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009e690
lea rdx, str.NVIDIA_hardware_monitoring_disabled
lea rcx, [rsp + 0x38]
call fcn.14003ed20
nop
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140038200
mov rcx, rax
call fcn.14009e9d0
mov r8, qword [rbp + 0x38]
cmp r8, 0x10
jb 0x1400c861e
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.14003b660
lea rcx, [rbp - 0x40]
call fcn.140038230
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
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 + 0x260]
xor rcx, rsp
call fcn.1401cf6b0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret