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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140e22df8]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, rcx
lea rcx, str.nvml.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x2e0], rax
test rax, rax
jne 0x140107c0f
mov r8d, 0x100
lea rdx, [rsp + 0x70]
lea rcx, str._ProgramFiles_NVIDIA_CorporationNVSMI_nvml.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x2e0], rax
test rax, rax
jne 0x140107c0f
call fcn.1400f53f0
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
movdqa xmm0, xmmword [0x140215b80]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov r8d, 5
lea rdx, str.white
lea rcx, [rsp + 0x48]
call fcn.140038020
nop
movdqa xmm0, xmmword [0x140215b80]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov r8d, 0x22
lea rdx, str.Failed_to_initialize_nvml_library.
lea rcx, [rsp + 0x28]
call fcn.140038020
nop
mov r9b, 1
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call rbx
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140107bb7
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107bb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107fc9
call fcn.140143924
movdqa xmm0, xmmword [0x140215b80]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140107f9a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107f95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107fc3
jmp 0x140107f95
lea rdx, str.nvmlInit_v2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334c0], rax
test rax, rax
je 0x140107c3b
call rax
cmp qword [0x140e334c0], 0
je 0x140107c3b
test eax, eax
je 0x140107c77
lea rdx, str.nvmlInit
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334c0], rax
test rax, rax
je 0x140107e99
call rax
cmp qword [0x140e334c0], 0
je 0x140107e99
test eax, eax
jne 0x140107e99
lea rdx, str.nvmlDeviceGetHandleByPciBusId
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334c8], rax
lea rdx, str.nvmlDeviceGetHandleByIndex_v2
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334d0], rax
lea rdx, str.nvmlShutdown
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334d8], rax
lea rdx, str.nvmlDeviceGetTemperature
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334e0], rax
lea rdx, str.nvmlDeviceGetUUID
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334e8], rax
lea rdx, str.nvmlDeviceGetFanSpeed
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334f0], rax
lea rdx, str.nvmlDeviceGetPowerUsage
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e334f8], rax
lea rdx, str.nvmlDeviceGetPowerManagementLimit
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e33500], rax
lea rdx, str.nvmlDeviceGetPowerManagementDefaultLimit
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e33508], rax
lea rdx, str.nvmlDeviceGetPowerManagementLimitConstraints
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e33510], rax
lea rdx, str.nvmlDeviceSetPowerManagementLimit
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e33518], rax
lea rdx, str.nvmlDeviceGetUtilizationRates
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e33520], rax
lea rdx, str.nvmlDeviceGetPciInfo_v3
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e33528], rax
lea rdx, str.nvmlDeviceGetMemoryInfo
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e33530], rax
lea rdx, str.nvmlSystemGetDriverVersion
mov rcx, qword [rbx + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140e33538], rax
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140108b20
mov rbx, rax
lea rcx, [0x140e22998]
cmp rcx, rax
je 0x140107e55
call fcn.140037720
movups xmm0, xmmword [rbx]
movups xmmword [0x140e22998], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x140e229a8], xmm1
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140107e92
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107e8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107fcf
call fcn.140143924
mov al, 1
jmp 0x140107f9c
call fcn.1400f53f0
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
movdqa xmm0, xmmword [0x140215b80]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov r8d, 5
lea rdx, str.white
lea rcx, [rsp + 0x48]
call fcn.140038020
nop
movdqa xmm0, xmmword [0x140215b80]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov r8d, 0x2c
lea rdx, str.Failed_to_initialize_nvml_library_functions.
lea rcx, [rsp + 0x28]
call fcn.140038020
nop
mov r9b, 1
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call rbx
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140107f4e
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107f49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107fd5
call fcn.140143924
movdqa xmm0, xmmword [0x140215b80]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140107f9a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107f95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107fbd
call fcn.140143924
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140143d80
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140165594
int3
call fcn.140165594
nop
call fcn.140165594
nop
call fcn.140165594
nop
call fcn.140165594
int3