Function at 0x140026e60
Capabilities:
Delete file

Disassembly:
push rsi
sub rsp, 0x160
mov rax, qword [0x1400b2de8]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [0x1400273d0]
mov r9d, 7
mov qword [rsp + 0x28], rax
lea r8, [0x1400b2980]
lea rax, [0x140027650]
mov qword [rsp + 0x20], rax
call fcn.1400254d0
mov rsi, rax
test rax, rax
jne 0x140026eb5
lea eax, [rsi - 1]
jmp 0x14002733c
xor ecx, ecx
mov qword [rsp + 0x180], rbx
call fcn.140001230
test eax, eax
jne 0x140026ee1
mov rcx, rsi
call fcn.140025430
lea rdx, str.Failed_to_redirect_output_n
mov ecx, 0x3e7
call fcn.14001aba0
mov edx, 6
mov rcx, rsi
lea r8d, [rdx - 4]
call fcn.1400256d0
mov ebx, eax
test eax, eax
je 0x140026f3b
mov rcx, rsi
call fcn.140025430
cmp ebx, 0xfffffffb
jne 0x140026f15
xor edx, edx
xor ecx, ecx
call fcn.14001aba0
xor eax, eax
jmp 0x140027334
cmp ebx, 0xfffffff8
jne 0x140026ff8
lea rcx, str.Please_run_this_as_root__n
call fcn.1400013f0
lea rdx, [0x140076d52]
mov ecx, 0x3e7
call fcn.14001aba0
cmp dword [rsi + 0x74], 0
mov qword [rsp + 0x158], rbp
mov qword [rsp + 0x150], rdi
je 0x14002705a
lea rdx, [0x140092180]
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.1400510e0
mov rbx, rax
test rax, rax
je 0x140027044
lea r8, [rsp + 0x30]
mov rcx, rax
lea rdx, [0x140092184]
call fcn.140026e10
mov rcx, rbx
test eax, eax
jle 0x14002703f
mov ebp, dword [rsp + 0x30]
call fcn.140050c6c
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 0x140027044
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.14005f3dc
test eax, eax
jne 0x140027355
jmp 0x140027010
lea rdx, str.Failed_to_process_command_line__n_n
mov ecx, 0x3e7
call fcn.14001aba0
mov eax, ebx
jmp 0x140027334
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140027044
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_r537_56_apps_nvml_nvsmi_stats_daemon.c:220
call fcn.1400012a0
jmp 0x140027044
call fcn.140050c6c
mov rcx, rsi
call fcn.140025430
lea rdx, [0x140076d52]
xor ecx, ecx
call fcn.14001aba0
lea rdx, [0x140092180]
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.1400510e0
mov rbx, rax
test rax, rax
je 0x1400270fc
lea r8, [rsp + 0x30]
mov rcx, rax
lea rdx, [0x140092184]
call fcn.140026e10
mov rcx, rbx
test eax, eax
jle 0x1400270f7
mov ebp, dword [rsp + 0x30]
call fcn.140050c6c
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 0x1400270fc
mov edx, ebp
lea rcx, str.Daemon_already_running_with_pid__ld_n
call fcn.140008150
mov rcx, rsi
call fcn.140025430
lea rdx, [0x140076d52]
mov ecx, 0x3e7
call fcn.14001aba0
jmp 0x1400270fc
call fcn.140050c6c
lea rdx, [0x140092180]
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.1400510e0
mov rbx, rax
test rax, rax
je 0x140027177
lea r8, [rsp + 0x30]
mov rcx, rax
lea rdx, [0x140092184]
call fcn.140026e10
mov rcx, rbx
test eax, eax
jle 0x140027172
mov ebp, dword [rsp + 0x30]
call fcn.140050c6c
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 0x140027378
jmp 0x140027177
call fcn.140050c6c
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.14005f2f4
call sub.KERNEL32.dll_GetCurrentProcessId
lea rdx, [0x140092188]
mov edi, eax
lea rcx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
call fcn.1400510e0
mov rbx, rax
test rax, rax
je 0x140027391
mov r8d, edi
lea rdx, str._ld_n
mov rcx, rax
call fcn.140001250
mov rcx, rbx
call fcn.140050c6c
call fcn.14004a370
test eax, eax
je 0x1400271de
mov rcx, rsi
call fcn.140025430
mov eax, 0xffffffff
jmp 0x140027324
lea rdx, [0x140084670]
lea rcx, [0x1400b3f38]
call fcn.14004a490
test eax, eax
je 0x14002720e
mov rcx, rsi
call fcn.140025430
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.14001aba0
call fcn.1400374b0
test eax, eax
je 0x140027230
mov rcx, rsi
call fcn.140025430
lea rdx, str.Failed_to_install_the_control_handler_n_n
mov ecx, 0x3e7
call fcn.14001aba0
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x10]
call fcn.1400261c0
mov ebx, eax
test eax, eax
je 0x140027266
lea rdx, str.Failed_to_find_any_supported_device_n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r537_56_apps_nvml_nvsmi_stats_daemon.c:444
call fcn.1400012a0
mov rcx, rsi
call fcn.140025430
mov eax, ebx
jmp 0x140027324
lea rdx, str.nvsmi_daemon_started_n
lea rcx, str.DEBUG_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r537_56_apps_nvml_nvsmi_stats_daemon.c:449
call fcn.1400012a0
mov rcx, rsi
call fcn.14001f1e0
mov rbx, rax
test rax, rax
jne 0x1400272b5
lea rdx, str.Failed_to_Initialize_Monitor_Handler_n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r537_56_apps_nvml_nvsmi_stats_daemon.c:458
call fcn.1400012a0
mov rcx, rsi
call fcn.140025430
xor edx, edx
mov ecx, 0x3e7
call fcn.14001aba0
lea eax, [rbx - 3]
jmp 0x140027324
mov rcx, rbx
call fcn.14001f360
mov edi, eax
test eax, eax
je 0x1400272f6
lea rdx, str.Failed_to_Run_Monitor_Handler_n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r537_56_apps_nvml_nvsmi_stats_daemon.c:469
call fcn.1400012a0
mov rcx, rbx
call fcn.14001f1a0
mov rcx, rsi
call fcn.140025430
xor edx, edx
mov ecx, 0x3e7
call fcn.14001aba0
mov eax, edi
jmp 0x140027324
mov rcx, rbx
call fcn.14001f1a0
mov rcx, rsi
call fcn.140025430
lea rdx, str.nvsmi_daemon_terminated_n
lea rcx, str.DEBUG_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r537_56_apps_nvml_nvsmi_stats_daemon.c:482
call fcn.1400012a0
xor edx, edx
xor ecx, ecx
call fcn.14001aba0
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.140038cd0
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_r537_56_apps_nvml_nvsmi_stats_daemon.c:215
call fcn.1400012a0
mov ecx, 1
call fcn.14005d44c
int3
mov edx, ebp
lea rcx, str.Daemon_already_running_with_pid__ld_n
call fcn.140008150
mov ecx, 1
call fcn.14005d44c
int3
lea rdx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
lea rcx, str.Error_writing_pidfile__s_n
call fcn.140008150
lea rdx, str.C:Program_FilesNVIDIA_CorporationNVSMI_nvsmi_pid.txt
lea rcx, str.Daemon_failed_to_write_PID_to_file__s_n
call fcn.140008150
mov ecx, 1
call fcn.14005d44c
int3