Function at 0x140003a00
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x140022200]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140003a5d
lea rdx, str.Failed_to_open_Service_Control_Manager.
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140015260
add rsp, 0x50
pop rsi
ret
cmp qword [0x140022268], 8
lea rdx, [0x140022250]
mov qword [rsp + 0x60], rbx
mov r8d, 0xf01ff
cmovae rdx, qword [0x140022250]
mov rcx, rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140003ad2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_open_service._Error_code:
mov ebx, eax
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
mov edx, ebx
call fcn.140006a50
mov rcx, rax
call fcn.14000cf30
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140003c21
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140003b32
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_stop_driver_service._Error_code:
mov ebx, eax
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
mov edx, ebx
call fcn.140006a50
mov rcx, rax
call fcn.14000cf30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140003ba2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_uninstall_driver_service_after_force_stop._Error_code:
jmp 0x140003b82
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140003b68
cmp dword [rsp + 0x24], 3
jne 0x140003b68
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140003b44
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140003bb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_uninstall_driver_service._Error_code:
lea rcx, [0x140023b40]
mov ebx, eax
call fcn.14000ccb0
mov rcx, rax
mov edx, ebx
call fcn.140006a50
mov rcx, rax
call fcn.14000cf30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140003c21
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0xe
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rcx, [0x140023880]
call fcn.14000cf30
lea rdx, str.Driver_service_uninstalled_successfully.
mov rcx, rax
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140015260
add rsp, 0x50
pop rsi
ret