Function at 0x140003410
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x140003638
lea rdx, str.AERTFilters
mov r8d, 0x10024
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbx, rax
je 0x14000357a
lea r8, [0x140017568]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140003500
lea rdx, str.Andrea_RT_Filters_Service
lea rcx, str.Stopping__s.
call fcn.140004d10
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140017568]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400034db
mov eax, dword [0x14001756c]
cmp eax, 3
jne 0x1400034e1
lea rcx, [0x1400128d8]
call fcn.140004d10
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140017568]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400034a5
mov eax, dword [0x14001756c]
cmp eax, 1
lea rdx, str.Andrea_RT_Filters_Service
lea rcx, str._n_s_stopped._n
je 0x1400034fb
lea rcx, str._n_s_failed_to_stop._n
call fcn.140004d10
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14000353d
lea rdx, str.Andrea_RT_Filters_Service
lea rcx, str._s_removed._n
call fcn.140004d10
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [0x140017460]
mov edx, 0x100
call fcn.140003730
lea rcx, str.DeleteService_failed____s_n
mov rdx, rax
call fcn.140004d10
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r8d, eax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor edx, edx
mov ecx, 0x3100
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x1400035fb
add eax, 0xe
cmp eax, 0x100
jg 0x1400035fb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov rax, qword [rsp + 0x50]
mov byte [rcx + rax - 2], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsp + 0x50]
lea r8, str._s__0x_x_
lea rcx, [0x140017460]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.1400046b0
jmp 0x140003601
mov byte [0x140017460], bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140003611
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x140017460]
lea rcx, str.OpenService_failed____s_n
call fcn.140004d10
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r8d, eax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor edx, edx
mov ecx, 0x3100
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x1400036b9
add eax, 0xe
cmp eax, 0x100
jg 0x1400036b9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov rax, qword [rsp + 0x50]
mov byte [rcx + rax - 2], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsp + 0x50]
lea r8, str._s__0x_x_
lea rcx, [0x140017460]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.1400046b0
jmp 0x1400036bf
mov byte [0x140017460], bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400036cf
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x140017460]
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140004d10
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret