Function at 0x14013b160
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 [0x140a23bc8]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, rcx
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 + 0x250], rax
test rax, rax
jne 0x14013b2ef
lea rcx, str.nvml.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x250], rax
test rax, rax
jne 0x14013b2ef
call fcn.140041750
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
movdqa xmm0, xmmword [0x1401f4c10]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov r8d, 5
lea rdx, str.white
lea rcx, [rsp + 0x48]
call fcn.140034be0
nop
movdqa xmm0, xmmword [0x1401f4c10]
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.140034be0
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 0x14013b297
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013b292
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013b6b4
call fcn.140177360
movdqa xmm0, xmmword [0x1401f4c10]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14013b438
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013b433
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013b6a8
jmp 0x14013b433
lea rdx, str.nvmlInit_v2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b08], rax
test rax, rax
jne 0x14013b43f
lea rdx, str.nvmlInit
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b08], rax
test rax, rax
jne 0x14013b43f
call fcn.140041750
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
movdqa xmm0, xmmword [0x1401f4c10]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov r8d, 5
lea rdx, str.white
lea rcx, [rsp + 0x48]
call fcn.140034be0
nop
movdqa xmm0, xmmword [0x1401f4c10]
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.140034be0
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 0x14013b3e8
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013b3e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013b6ba
call fcn.140177360
movdqa xmm0, xmmword [0x1401f4c10]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14013b438
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013b433
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013b6c0
call fcn.140177360
xor al, al
jmp 0x14013b681
call rax
test eax, eax
je 0x14013b556
call fcn.140041750
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
movdqa xmm0, xmmword [0x1401f4c10]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov r8d, 5
lea rdx, str.white
lea rcx, [rsp + 0x48]
call fcn.140034be0
nop
movdqa xmm0, xmmword [0x1401f4c10]
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.140034be0
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 0x14013b4fe
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013b4f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013b6a2
call fcn.140177360
movdqa xmm0, xmmword [0x1401f4c10]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14013b438
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013b433
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013b6ae
jmp 0x14013b433
lea rdx, str.nvmlDeviceGetHandleByPciBusId
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b10], rax
lea rdx, str.nvmlDeviceGetHandleByIndex_v2
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b18], rax
lea rdx, str.nvmlShutdown
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b20], rax
lea rdx, str.nvmlDeviceGetTemperature
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b28], rax
lea rdx, str.nvmlDeviceGetUUID
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b30], rax
lea rdx, str.nvmlDeviceGetFanSpeed
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b38], rax
lea rdx, str.nvmlDeviceGetPowerUsage
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b40], rax
lea rdx, str.nvmlDeviceGetPowerManagementLimit
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b48], rax
lea rdx, str.nvmlDeviceGetPowerManagementDefaultLimit
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b50], rax
lea rdx, str.nvmlDeviceGetPowerManagementLimitConstraints
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b58], rax
lea rdx, str.nvmlDeviceSetPowerManagementLimit
mov rcx, qword [rbx + 0x250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a32b60], rax
mov al, 1
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401777c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14019862c
nop
call fcn.14019862c
int3
call fcn.14019862c
nop
call fcn.14019862c
nop
call fcn.14019862c
nop
call fcn.14019862c
int3