Function at 0x140004890
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140053080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r8
mov rbx, rdx
mov dword [rsp + 0x48], ecx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor ebp, ebp
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rbp
mov r8d, 0xd
lea rdx, str..TrueSight
lea rcx, [rsp + 0x58]
call fcn.140007a40
nop
lea rdx, str.___Using_Driver_Service_Name:
lea rcx, [0x140054460]
call fcn.140007440
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140004904
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, rax
call fcn.140009620
mov rcx, rax
call fcn.140007700
lea rdx, str.___Attempting_to_open_device:
lea rcx, [0x140054460]
call fcn.140007440
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov rcx, rax
call fcn.140009620
mov rcx, rax
call fcn.140007700
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004af4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.Error_message:
lea rcx, [0x140054460]
call fcn.140007440
mov rcx, rax
mov rdx, qword [rsp + 0x40]
call fcn.140007440
mov rcx, rax
call fcn.140007700
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rax, str.ERROR_FILE_NOT_FOUND
lea rbx, str.Unknown
cmp edi, 2
cmove rbx, rax
lea rdx, str.____Failed_to_open_device._Error:
lea rcx, [0x140054460]
call fcn.140007440
mov rcx, rax
mov edx, edi
call fcn.140005310
mov rcx, rax
lea rdx, [0x14004c6b8]
call fcn.140007440
mov rcx, rax
mov rdx, rbx
call fcn.140007440
mov rcx, rax
lea rdx, [0x14004c670]
call fcn.140007440
mov rcx, rax
call fcn.140007700
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004c06
cmp qword [rsi + 0x18], 7
jbe 0x140004a82
mov rsi, qword [rsi]
mov r8d, 4
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
lea rcx, [0x140054460]
test rax, rax
je 0x140004ad0
lea rdx, str.___Driver_service_exists__but_device_file_is_not_accessible.
call fcn.140007440
mov rcx, rax
call fcn.140007700
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x140004c48
lea rdx, str.____Driver_service_does_not_exist_or_is_not_accessible.
call fcn.140007440
mov rcx, rax
call fcn.140007700
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x140004c48
lea rdx, str.___Successfully_opened_device_handle.
lea rcx, [0x140054460]
call fcn.140007440
mov rcx, rax
call fcn.140007700
lea rdx, str.___Attempting_to_terminate_PID:
lea rcx, [0x140054460]
call fcn.140007440
mov rcx, rax
mov edx, dword [rsp + 0x48]
call fcn.140005310
mov rcx, rax
lea rdx, str.__Process:
call fcn.140007440
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140004b4a
mov rdx, qword [rbx]
lea rsi, [rbx + 0x10]
mov r8, qword [rsi]
mov rcx, rax
call fcn.140009620
lea rdx, [0x14004c670]
mov rcx, rax
call fcn.140007440
mov rcx, rax
call fcn.140007700
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov r9d, 4
lea r8, [rsp + 0x48]
mov edx, 0x22e044
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140004c0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.____DeviceIoControl_failed._Error:
lea rcx, [0x140054460]
call fcn.140007440
mov rcx, rax
mov edx, ebx
call fcn.140005310
mov rcx, rax
call fcn.140007700
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.____Failed_to_terminate_process._PID:
lea rcx, [0x140054460]
call fcn.140007440
mov rcx, rax
mov edx, dword [rsp + 0x48]
call fcn.140005310
mov rcx, rax
call fcn.140007700
xor bl, bl
jmp 0x140004c48
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.___Successfully_terminated_process:
lea rcx, [0x140054460]
call fcn.140007440
cmp qword [rbx + 0x18], 7
jbe 0x140004c30
mov rbx, qword [rbx]
mov r8, qword [rsi]
mov rdx, rbx
mov rcx, rax
call fcn.140009620
mov rcx, rax
call fcn.140007700
mov bl, 1
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140004c86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004ca9
call fcn.14000cb5c
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000c7f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
call fcn.140014eb8
int3