Function at 0x471b40
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 0x58]
mov rsi, rcx
mov rbx, qword [rax + 0x10]
xor eax, eax
lea rdi, [rbx + 8]
mov rcx, rbx
mov qword [rbx], 0
mov qword [rbx + 0x80], 0
and rdi, 0xfffffffffffffff8
sub rcx, rdi
add ecx, 0x88
shr ecx, 3
rep stosq qword [rdi], rax
lea rcx, str.nvml.dll
call sub.KERNEL32.dll_LoadLibraryA
test rax, rax
mov qword [rbx], rax
je 0x471e30
lea rdx, str.nvmlErrorString
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 8], rax
je 0x471d80
mov rcx, qword [rbx]
lea rdx, str.nvmlInit
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x10], rax
je 0x471e01
mov rcx, qword [rbx]
lea rdx, str.nvmlShutdown
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x18], rax
je 0x471db0
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetCount
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x20], rax
je 0x471f13
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetName
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x28], rax
je 0x471f40
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetHandleByIndex
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x30], rax
je 0x471de0
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetTemperature
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x38], rax
je 0x471f90
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetFanSpeed
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x40], rax
je 0x471fb4
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetUtilizationRates
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x48], rax
je 0x471fe0
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetClockInfo
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x50], rax
je 0x471f64
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetTemperatureThreshold
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x58], rax
je 0x472010
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetCurrPcieLinkGeneration
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x60], rax
je 0x472034
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetCurrPcieLinkWidth
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x68], rax
je 0x472058
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetCurrentClocksThrottleReasons
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x70], rax
je 0x47207c
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetSupportedClocksThrottleReasons
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x78], rax
je 0x4720a0
mov rcx, qword [rbx]
lea rdx, str.nvmlDeviceGetPciInfo
xor edi, edi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
mov qword [rbx + 0x80], rax
jne 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetPciInfo
lea rdx, [0x00548328]
mov rcx, rsi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlErrorString
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea r9, str.NVML
lea r8, str.nvmlShutdown
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea r9, str.NVML
lea r8, str.nvmlDeviceGetHandleByIndex
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlInit
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov ecx, 0x401
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x34], 1
call fcn.0040e980
mov rdi, rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov r9d, 1
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNVSMI
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x472004
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
lea rdx, str.NVSMIPATH
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x472004
mov eax, dword [rsp + 0x30]
mov byte [rdi + rax], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call sub.msvcrt.dll_strlen
movabs rdx, 0x6c642e6c6d766e5c
add rax, rdi
mov rcx, rdi
mov qword [rax], rdx
mov edx, 0x6c
mov word [rax + 8], dx
call sub.KERNEL32.dll_LoadLibraryA
mov rcx, rdi
mov qword [rbx], rax
mov edi, 0xffffffff
call fcn.0040ea80
mov rax, qword [rbx]
test rax, rax
jne 0x471b98
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetCount
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea r9, str.NVML
lea r8, str.nvmlDeviceGetName
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetClockInfo
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetTemperature
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetFanSpeed
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetUtilizationRates
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
mov edi, 0xffffffff
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetTemperatureThreshold
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetCurrPcieLinkGeneration
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetCurrPcieLinkWidth
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetCurrentClocksThrottleReasons
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f
lea r9, str.NVML
lea r8, str.nvmlDeviceGetSupportedClocksThrottleReasons
lea rdx, [0x00548328]
mov rcx, rsi
xor edi, edi
call fcn.004032f0
jmp 0x471d9f