Function at 0x140026df0
Capabilities:
Delete file

Disassembly:
push rsi
sub rsp, 0x160
mov rax, qword [0x1400b2d98]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [0x140027360]
mov r9d, 7
mov qword [rsp + 0x28], rax
lea r8, [0x1400b2930]
lea rax, [0x1400275e0]
mov qword [rsp + 0x20], rax
call fcn.140025480
mov rsi, rax
test rax, rax
jne 0x140026e45
lea eax, [rsi - 1]
jmp 0x1400272cc
xor ecx, ecx
mov qword [rsp + 0x180], rbx
call fcn.140001230
test eax, eax
jne 0x140026e71
mov rcx, rsi
call fcn.1400253e0
lea rdx, str.Failed_to_redirect_output_n
mov ecx, 0x3e7
call fcn.14001ac00
mov edx, 6
mov rcx, rsi
lea r8d, [rdx - 4]
call fcn.140025680
mov ebx, eax
test eax, eax
je 0x140026ecb
mov rcx, rsi
call fcn.1400253e0
cmp ebx, 0xfffffffb
jne 0x140026ea5
xor edx, edx
xor ecx, ecx
call fcn.14001ac00
xor eax, eax
jmp 0x1400272c4
cmp ebx, 0xfffffff8
jne 0x140026f88
lea rcx, str.Please_run_this_as_root__n
call fcn.1400013f0
lea rdx, [0x140076d52]
mov ecx, 0x3e7
call fcn.14001ac00
cmp dword [rsi + 0x74], 0
mov qword [rsp + 0x158], rbp
mov qword [rsp + 0x150], rdi
je 0x140026fea
lea rdx, [0x140091eb0]
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.140050f40
mov rbx, rax
test rax, rax
je 0x140026fd4
lea r8, [rsp + 0x30]
mov rcx, rax
lea rdx, [0x140091eb4]
call fcn.140026da0
mov rcx, rbx
test eax, eax
jle 0x140026fcf
mov ebp, dword [rsp + 0x30]
call fcn.140050acc
mov r8d, ebp
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x102
jne 0x140026fd4
mov r9d, ebp
lea r8, str.taskkill__pid__d__f
lea edx, [rbx - 2]
lea rcx, [rsp + 0x40]
call fcn.140001470
lea rcx, [rsp + 0x40]
call fcn.14005f23c
test eax, eax
jne 0x1400272e5
jmp 0x140026fa0
lea rdx, str.Failed_to_process_command_line__n_n
mov ecx, 0x3e7
call fcn.14001ac00
mov eax, ebx
jmp 0x1400272c4
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140026fd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.DeleteFile_failed___d__n_n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_nvsmi_stats_daemon.c:220
call fcn.1400012a0
jmp 0x140026fd4
call fcn.140050acc
mov rcx, rsi
call fcn.1400253e0
lea rdx, [0x140076d52]
xor ecx, ecx
call fcn.14001ac00
lea rdx, [0x140091eb0]
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.140050f40
mov rbx, rax
test rax, rax
je 0x14002708c
lea r8, [rsp + 0x30]
mov rcx, rax
lea rdx, [0x140091eb4]
call fcn.140026da0
mov rcx, rbx
test eax, eax
jle 0x140027087
mov ebp, dword [rsp + 0x30]
call fcn.140050acc
mov r8d, ebp
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x102
jne 0x14002708c
mov edx, ebp
lea rcx, str.Daemon_already_running_with_pid__ld_n
call fcn.140008340
mov rcx, rsi
call fcn.1400253e0
lea rdx, [0x140076d52]
mov ecx, 0x3e7
call fcn.14001ac00
jmp 0x14002708c
call fcn.140050acc
lea rdx, [0x140091eb0]
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.140050f40
mov rbx, rax
test rax, rax
je 0x140027107
lea r8, [rsp + 0x30]
mov rcx, rax
lea rdx, [0x140091eb4]
call fcn.140026da0
mov rcx, rbx
test eax, eax
jle 0x140027102
mov ebp, dword [rsp + 0x30]
call fcn.140050acc
mov r8d, ebp
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x102
je 0x140027308
jmp 0x140027107
call fcn.140050acc
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.14005f154
call sub.KERNEL32.dll_GetCurrentProcessId
lea rdx, [0x140091eb8]
mov edi, eax
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.140050f40
mov rbx, rax
test rax, rax
je 0x140027321
mov r8d, edi
lea rdx, str._ld_n
mov rcx, rax
call fcn.140001250
mov rcx, rbx
call fcn.140050acc
call fcn.14004a1d0
test eax, eax
je 0x14002716e
mov rcx, rsi
call fcn.1400253e0
mov eax, 0xffffffff
jmp 0x1400272b4
lea rdx, [0x140084450]
lea rcx, [0x1400b3ed8]
call fcn.14004a2f0
test eax, eax
je 0x14002719e
mov rcx, rsi
call fcn.1400253e0
lea rdx, str.Mismatch_in_versions_between_nvidia_smi_and_NVML._nAre_you_sure_you_are_using_nvidia_smi_provided_with_the_driver__n
mov ecx, 0x3e7
call fcn.14001ac00
call fcn.140037310
test eax, eax
je 0x1400271c0
mov rcx, rsi
call fcn.1400253e0
lea rdx, str.Failed_to_install_the_control_handler_n_n
mov ecx, 0x3e7
call fcn.14001ac00
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x10]
call fcn.140026170
mov ebx, eax
test eax, eax
je 0x1400271f6
lea rdx, str.Failed_to_find_any_supported_device_n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_nvsmi_stats_daemon.c:444
call fcn.1400012a0
mov rcx, rsi
call fcn.1400253e0
mov eax, ebx
jmp 0x1400272b4
lea rdx, str.nvsmi_daemon_started_n
lea rcx, str.DEBUG_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_nvsmi_stats_daemon.c:449
call fcn.1400012a0
mov rcx, rsi
call fcn.14001f1f0
mov rbx, rax
test rax, rax
jne 0x140027245
lea rdx, str.Failed_to_Initialize_Monitor_Handler_n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_nvsmi_stats_daemon.c:458
call fcn.1400012a0
mov rcx, rsi
call fcn.1400253e0
xor edx, edx
mov ecx, 0x3e7
call fcn.14001ac00
lea eax, [rbx - 3]
jmp 0x1400272b4
mov rcx, rbx
call fcn.14001f370
mov edi, eax
test eax, eax
je 0x140027286
lea rdx, str.Failed_to_Run_Monitor_Handler_n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_nvsmi_stats_daemon.c:469
call fcn.1400012a0
mov rcx, rbx
call fcn.14001f1b0
mov rcx, rsi
call fcn.1400253e0
xor edx, edx
mov ecx, 0x3e7
call fcn.14001ac00
mov eax, edi
jmp 0x1400272b4
mov rcx, rbx
call fcn.14001f1b0
mov rcx, rsi
call fcn.1400253e0
lea rdx, str.nvsmi_daemon_terminated_n
lea rcx, str.DEBUG_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_nvsmi_stats_daemon.c:482
call fcn.1400012a0
xor edx, edx
xor ecx, ecx
call fcn.14001ac00
xor eax, eax
mov rbp, qword [rsp + 0x158]
mov rdi, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140038b30
add rsp, 0x160
pop rsi
ret
lea r8, [rsp + 0x40]
lea rdx, str.Failed_to__s__n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_nvsmi_stats_daemon.c:215
call fcn.1400012a0
mov ecx, 1
call fcn.14005d2ac
int3
mov edx, ebp
lea rcx, str.Daemon_already_running_with_pid__ld_n
call fcn.140008340
mov ecx, 1
call fcn.14005d2ac
int3
lea rdx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
lea rcx, str.Error_writing_pidfile__s_n
call fcn.140008340
lea rdx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
lea rcx, str.Daemon_failed_to_write_PID_to_file__s_n
call fcn.140008340
mov ecx, 1
call fcn.14005d2ac
int3