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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x478]
sub rsp, 0x578
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r8d, 0x200
lea rdx, [rbp + 0x250]
lea rcx, str._PROGRAMFILES__NVIDIA_Corporation_NVSMI_nvml.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rbp + 0x250]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14007f1fe
mov edx, 0xa0
mov qword [rsp + 0x590], rbx
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
lea rdx, str.nvmlInit
mov rcx, rdi
mov rbx, rax
mov qword [rax], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetCount_v2
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetHandleByIndex_v2
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetPciInfo
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetName
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetTemperature
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetFanSpeed
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetPowerUsage
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.nvmlShutdown
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x58]
mov qword [rbx + 0x98], rax
test rcx, rcx
je 0x14007f217
test rax, rax
je 0x14007f217
cmp qword [rbx + 0x60], 0
je 0x14007f217
cmp qword [rbx + 0x68], 0
je 0x14007f217
cmp qword [rbx + 0x70], 0
je 0x14007f217
cmp qword [rbx + 0x78], 0
je 0x14007f217
cmp qword [rbx + 0x80], 0
je 0x14007f217
cmp qword [rbx + 0x88], 0
je 0x14007f217
cmp qword [rbx + 0x90], 0
je 0x14007f217
mov qword [rsp + 0x570], r13
mov qword [rsp + 0x560], r15
call rcx
lea rcx, [rbx + 8]
call qword [rbx + 0x60]
lea rcx, [rbx + 0xc]
call fcn.140001610
test eax, eax
je 0x14007ebcf
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
jmp 0x14007f1e6
movsxd rcx, dword [rbx + 8]
mov edx, 8
mov qword [rsp + 0x598], rsi
mov qword [rsp + 0x5a0], r12
mov qword [rsp + 0x568], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
movsxd rcx, dword [rbx + 8]
mov edx, 4
mov qword [rbx + 0x50], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
movsxd rcx, dword [rbx + 8]
mov edx, 4
mov qword [rbx + 0x18], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
movsxd rcx, dword [rbx + 8]
mov edx, 4
mov qword [rbx + 0x20], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
movsxd rcx, dword [rbx + 8]
mov edx, 4
mov qword [rbx + 0x28], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
movsxd rcx, dword [rbx + 0xc]
mov edx, 4
mov qword [rbx + 0x30], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
xor r12d, r12d
mov qword [rbx + 0x38], rax
mov edi, r12d
cmp dword [rbx + 8], r12d
jle 0x14007ec87
nop word [rax + rax]
mov rax, qword [rbx + 0x50]
movsxd rcx, edi
lea rdx, [rax + rcx*8]
mov ecx, edi
call qword [rbx + 0x68]
inc edi
cmp edi, dword [rbx + 8]
jl 0x14007ec70
mov esi, r12d
cmp dword [rbx + 8], r12d
jle 0x14007ece0
mov rdi, r12
mov r14, r12
nop word [rax + rax]
mov rcx, qword [rbx + 0x50]
lea rdx, [rsp + 0x78]
mov rcx, qword [r14 + rcx]
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov rcx, qword [rbx + 0x18]
lea r14, [r14 + 8]
mov eax, dword [rbp - 0x78]
lea rdi, [rdi + 4]
inc esi
mov dword [rdi + rcx - 4], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rbp - 0x74]
mov dword [rdi + rcx - 4], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rbp - 0x70]
mov dword [rdi + rcx - 4], eax
cmp esi, dword [rbx + 8]
jl 0x14007eca0
mov edx, r12d
cmp dword [rbx + 8], edx
jle 0x14007ed07
mov rcx, r12
nop dword [rax + rax]
mov rax, qword [rbx + 0x30]
lea rcx, [rcx + 4]
inc edx
mov dword [rcx + rax - 4], 0xffffffff
cmp edx, dword [rbx + 8]
jl 0x14007ecf0
mov edi, r12d
cmp dword [rbx + 0xc], r12d
jle 0x14007eda8
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rbx + 0x38]
lea rcx, [rbp - 0x50]
mov edx, edi
mov dword [rsi + rax], 0xffffffff
call fcn.140001750
test eax, eax
jne 0x14007ed99
mov r8d, r12d
cmp dword [rbx + 8], r12d
jle 0x14007ed99
mov rdx, r12
nop word [rax + rax]
mov rcx, qword [rbx + 0x18]
mov eax, dword [rbp + 0x1e0]
cmp dword [rdx + rcx], eax
jne 0x14007ed8c
mov rcx, qword [rbx + 0x20]
mov eax, dword [rbp + 0x1d8]
cmp dword [rdx + rcx], eax
jne 0x14007ed8c
mov rcx, qword [rbx + 0x28]
mov eax, dword [rbp + 0x1dc]
cmp dword [rdx + rcx], eax
jne 0x14007ed8c
mov rax, qword [rbx + 0x30]
mov dword [rdx + rax], edi
mov rax, qword [rbx + 0x38]
mov dword [rsi + rax], r8d
inc r8d
add rdx, 4
cmp r8d, dword [rbx + 8]
jl 0x14007ed50
inc edi
add rsi, 4
cmp edi, dword [rbx + 0xc]
jl 0x14007ed20
movsxd rcx, dword [rbx + 8]
mov edx, 4
mov dword [rbx + 0x10], r12d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
xorps xmm0, xmm0
mov qword [rsp + 0x68], r12
lea rcx, [rsp + 0x58]
mov qword [rbx + 0x40], rax
movdqu xmmword [rsp + 0x58], xmm0
call fcn.14006c910
mov r14, qword [rsp + 0x58]
mov r15d, r12d
mov qword [rsp + 0x50], r12
xorps xmm0, xmm0
mov r12, qword [rsp + 0x60]
sub r12, r14
sar r12, 3
movdqu xmmword [rsp + 0x40], xmm0
test r12, r12
je 0x14007eec3
xor eax, eax
nop dword [rax]
nop dword [rax + rax]
lea rcx, [r14 + rax*8]
lea rdx, [rsp + 0x78]
call fcn.140073a80
mov r14, qword [rbp - 0x78]
lea rcx, [rsp + 0x78]
mov rsi, qword [rbp - 0x70]
mov r8d, reloc.WS2_32.dll_inet_addr
mov rdi, qword [rsp + 0x78]
cmp rsi, 0x10
cmovae rcx, rdi
cmp r14, r8
cmovb r8, r14
test r8, r8
je 0x14007ee5a
lea rdx, str.NVIDIA_CUDA
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14007ee64
cmp r14, 0xb
je 0x14007ef4c
cmp rsi, 0x10
jb 0x14007eeaf
lea rax, [rsi + 1]
cmp rax, 0x1000
jb 0x14007eea7
test dil, 0x1f
jne 0x14007ef45
mov rax, qword [rdi - 8]
cmp rax, rdi
jae 0x14007ef3e
sub rdi, rax
cmp rdi, 8
jb 0x14007ef37
cmp rdi, 0x27
ja 0x14007ef30
mov rdi, rax
mov rcx, rdi
call fcn.1401ab39c
mov r14, qword [rsp + 0x58]
inc r15d
mov eax, r15d
cmp rax, r12
jb 0x14007ee10
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
movsxd rcx, dword [rbx + 0x10]
mov edx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
xor edi, edi
mov qword [rbx + 0x48], rax
mov dword [rsp + 0x30], edi
cmp dword [rbx + 8], edi
jle 0x14007f0a5
mov rax, r15
sub rax, rsi
sar rax, 4
mov qword [rsp + 0x70], rax
xor r12d, r12d
xor r15d, r15d
test rax, rax
je 0x14007f08d
xor r14d, r14d
mov rax, r14
add rax, rax
mov rsi, qword [rsi + rax*8]
test rsi, rsi
je 0x14007efdd
mov rcx, rsi
call fcn.140080f40
jmp 0x14007efdf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r14, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
mov eax, r15d
lea rcx, [r14 + rax*8]
call fcn.14006c6a0
mov r15, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rax, r15
sub rax, rsi
sar rax, 4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp - 0x70]
cmp rax, 0x10
jb 0x14007eecd
mov rcx, qword [rsp + 0x78]
inc rax
cmp rax, 0x1000
jb 0x14007efd3
test cl, 0x1f
je 0x14007efa3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14007efb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14007efc3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14007efd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1401ab39c
jmp 0x14007eecd
xor eax, eax
test eax, eax
jne 0x14007f22d
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], 0
mov edx, 0x4008
lea r8d, [rax + 4]
mov rcx, rsi
call fcn.140080d10
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov edx, 0x4009
mov r8d, 4
mov rcx, rsi
mov edi, eax
call fcn.140080d10
test edi, edi
jne 0x14007f063
test eax, eax
jne 0x14007f063
mov rax, qword [rbx + 0x20]
mov ecx, dword [r12 + rax]
cmp dword [rsp + 0x34], ecx
jne 0x14007f063
mov rax, qword [rbx + 0x28]
mov edi, dword [rsp + 0x30]
mov edx, dword [r12 + rax]
cmp dword [rsp + 0x38], edx
jne 0x14007f067
mov rax, qword [rbx + 0x40]
mov dword [r12 + rax], r15d
mov rax, qword [rbx + 0x48]
mov dword [rax + r14*4], edi
jmp 0x14007f067
mov edi, dword [rsp + 0x30]
test rsi, rsi
je 0x14007f074
mov rcx, rsi
call fcn.140080ec0
mov rax, qword [rsp + 0x70]
inc r15d
mov rsi, qword [rsp + 0x40]
mov r14d, r15d
cmp r14, rax
jb 0x14007ef10
inc edi
add r12, 4
mov dword [rsp + 0x30], edi
cmp edi, dword [rbx + 8]
jl 0x14007ef01
mov r14, qword [rsp + 0x58]
test rsi, rsi
je 0x14007f14f
mov r15, qword [rsp + 0x48]
mov rdi, rsi
cmp rsi, r15
je 0x14007f0dc
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14007f0d3
cmp byte [rdi + 8], 0
je 0x14007f0d3
call fcn.140080ec0
add rdi, 0x10
cmp rdi, r15
jne 0x14007f0c0
mov rax, qword [rsp + 0x50]
movabs rcx, 0xfffffffffffffff
sub rax, rsi
sar rax, 4
cmp rax, rcx
jbe 0x14007f0fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
shl rax, 4
cmp rax, 0x1000
jb 0x14007f147
test sil, 0x1f
je 0x14007f117
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rsi - 8]
cmp rax, rsi
jb 0x14007f127
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rsi, rax
cmp rsi, 8
jae 0x14007f137
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rsi, 0x27
jbe 0x14007f144
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rsi, rax
mov rcx, rsi
call fcn.1401ab39c
test r14, r14
je 0x14007f1cb
mov rax, qword [rsp + 0x68]
movabs rcx, 0x1fffffffffffffff
sub rax, r14
sar rax, 3
cmp rax, rcx
jbe 0x14007f176
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [rax*8]
cmp rax, 0x1000
jb 0x14007f1c3
test r14b, 0x1f
je 0x14007f193
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [r14 - 8]
cmp rax, r14
jb 0x14007f1a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub r14, rax
cmp r14, 8
jae 0x14007f1b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp r14, 0x27
jbe 0x14007f1c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r14, rax
mov rcx, r14
call fcn.1401ab39c
mov r14, qword [rsp + 0x568]
mov rax, rbx
mov r12, qword [rsp + 0x5a0]
mov rsi, qword [rsp + 0x598]
mov r13, qword [rsp + 0x570]
mov r15, qword [rsp + 0x560]
mov rbx, qword [rsp + 0x590]
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x578
pop rdi
pop rbp
ret
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
jmp 0x14007f1f6
xor ecx, ecx
mov dword [rbp - 0x70], eax
mov qword [rbp - 0x80], rcx
lea rax, str.Retain_Object
mov qword [rbp - 0x78], rcx
lea rdx, [0x140271cb8]
lea rcx, vtable.cl::Error.0
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3