Function at 0x140024e10
Capabilities:
Delete file
Terminate process

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
mov r13d, r8d
mov r14, rcx
mov qword [rbp - 0x10], rdi
mov rcx, qword [rcx + 0x20]
lea r8, [rbp - 0x10]
mov r15d, edi
mov r12d, edi
mov ebx, edx
call fcn.140026af0
mov rdx, qword [rbp - 0x10]
test eax, eax
mov rcx, qword [r14 + 0x20]
cmove rdx, rdi
mov qword [rbp - 0x10], rdx
mov edx, ebx
call fcn.140026a50
mov rcx, qword [rbp - 0x10]
test eax, eax
je 0x140024e7d
test rcx, rcx
jne 0x140024e7d
lea eax, [rdi - 2]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
lea r8, [rbp - 0x18]
lea rdx, [rbp + 0x40]
call fcn.140031580
mov eax, dword [rbp + 0x40]
test eax, eax
jne 0x140024eaf
mov rcx, qword [rbp - 0x18]
call fcn.14004b4d4
mov eax, 0xffffffff
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov qword [rsp + 0x88], rsi
mov esi, edi
test eax, eax
je 0x140025084
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x1400a4968]
test rax, rax
je 0x140025074
cmp qword [rax], 0x240
jbe 0x140025074
mov r8, qword [rax + 0x240]
mov ebx, esi
test r8, r8
je 0x140025074
mov rcx, qword [rbp - 0x18]
lea rdx, [rbp - 0x1c]
mov rcx, qword [rcx + rbx*8]
call r8
test eax, eax
jne 0x140025074
cmp dword [r14 + 0x38], 2
jne 0x140024f52
mov rcx, qword [rbp - 0x18]
lea rdx, [rbp + 0x58]
mov rcx, qword [rcx + rbx*8]
call fcn.140040960
test eax, eax
je 0x140024f3b
cmp eax, 3
jne 0x140025074
mov ecx, dword [rbp + 0x58]
lea eax, [rcx - 3]
cmp eax, 1
jbe 0x140024ffb
test ecx, ecx
je 0x140024ffb
cmp dword [r14 + 0x38], 1
jne 0x140024f8c
mov rcx, qword [rbp - 0x18]
lea rdx, [rbp - 0x20]
mov rcx, qword [rcx + rbx*8]
call fcn.140040960
test eax, eax
je 0x140024f77
cmp eax, 3
jne 0x140025074
mov ecx, dword [rbp - 0x20]
lea eax, [rcx - 3]
cmp eax, 1
jbe 0x140024f86
test ecx, ecx
jne 0x140024f8c
mov r12d, 1
cmp dword [rbp - 0x1c], edi
je 0x140024f9b
test r12d, r12d
jne 0x140024f9b
inc r15d
jmp 0x140024fa3
mov rax, qword [rbp - 0x18]
mov qword [rax + rbx*8], rdi
inc esi
cmp esi, dword [rbp + 0x40]
jb 0x140024ed0
test r15d, r15d
je 0x140025084
mov esi, r13d
test r13d, r13d
je 0x140025024
lea rcx, str.NVSMI_SHOW_ALL_DEVICES
call fcn.140054b80
test rax, rax
jne 0x140025011
cmp r15d, r13d
jbe 0x140025024
lea rcx, str._nWARNING:_Only_monitoring_up_to_4_GPUs_is_supported_by_default._n
call fcn.140006be0
lea rcx, str.Set_NVSMI_SHOW_ALL_DEVICES1_to_increase_the_limit_up_to_16_GPUs._n
call fcn.140006be0
lea rcx, str.Performance_may_be_impacted_by_doing_so._n_n
call fcn.140006be0
jmp 0x140025024
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, rax
call fcn.1400547bc
cmp eax, 1
mov ecx, 0x20
cmove esi, ecx
mov ebx, edi
cmp dword [rbp + 0x40], ebx
jbe 0x140025067
nop dword [rax + rax]
mov rax, qword [rbp - 0x18]
mov ecx, ebx
mov rcx, qword [rax + rcx*8]
test rcx, rcx
je 0x140025060
lea rdx, [rbp + 0x58]
call fcn.14003d610
mov rcx, qword [r14 + 0x10]
lea rdx, [rbp + 0x58]
call fcn.14001d570
inc edi
test r13d, r13d
je 0x140025060
cmp edi, esi
jge 0x140025067
inc ebx
cmp ebx, dword [rbp + 0x40]
jb 0x140025030
mov rcx, qword [rbp - 0x18]
call fcn.14004b4d4
xor eax, eax
jmp 0x140025092
mov rcx, qword [rbp - 0x18]
call fcn.14004b4d4
mov eax, 0xfffffff9
jmp 0x140025092
mov rcx, qword [rbp - 0x18]
call fcn.14004b4d4
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret