Function at 0x14000a590
Capabilities:
Check if file exists
Delete registry value
Get common file path
Get file attributes
Get thread local storage value
Set thread local storage value
Stop service

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
lea rbp, [rax - 0xbb8]
sub rsp, 0xca0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140022218]
xor rax, rsp
mov qword [rbp + 0xb90], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r13, [0x140024670]
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x14000a602
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14000a602
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000a60d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, r13
mov r9d, 0x68
xor r8d, r8d
lea rdx, [0x14001d628]
mov rcx, rdi
call fcn.140007350
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x14000a650
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14000a650
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000a65b
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, r13
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], 0xff
mov ecx, dword [0x14002346c]
cmp ecx, 0xffffffff
je 0x14000a6ce
cmp dword [0x140023470], 0xffffffff
je 0x14000a6ce
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], rax
mov ecx, dword [0x140023470]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rdx, str.UninstallBasicAntivirus
mov ecx, dword [0x14002346c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x38]
mov ecx, dword [0x140023470]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14000a6dc
mov rcx, rdi
call fcn.140005d90
nop
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8026
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r11d, 0x200
mov ecx, r11d
lea rax, [rbp - 0x70]
cmp word [rax], 0
je 0x14000a716
add rax, 2
dec rcx
jne 0x14000a705
jmp 0x14000a76d
test rcx, rcx
je 0x14000a76d
mov rdx, r11
sub rdx, rcx
sub r11, rdx
lea rax, [rbp + rdx*2 - 0x70]
je 0x14000a765
lea rcx, [r11 + rdx + 0x7ffffdff]
lea r8, str.CenterToolsDriveLockAvBasic
sub r8, rax
nop dword [rax]
test rcx, rcx
je 0x14000a760
movzx edx, word [r8 + rax]
test dx, dx
je 0x14000a760
mov word [rax], dx
add rax, 2
dec rcx
dec r11
jne 0x14000a740
jmp 0x14000a765
test r11, r11
jne 0x14000a769
sub rax, 2
mov word [rax], r12w
lea r9, [rbp - 0x70]
lea r8, str._sqrts
mov edx, 0x400
lea rcx, [rbp + 0x790]
call fcn.140009410
lea r9, [rbp - 0x70]
lea r8, str._sqrts_vseqrt.dll
mov edx, 0x400
lea rcx, [rbp + 0x390]
call fcn.140009410
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea r14, [0x14001d4b8]
cmp eax, 0xffffffff
je 0x14000a8e6
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x60], rsi
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test rsi, rsi
je 0x14000a862
lea rcx, [rbp - 0x70]
call fcn.140009f90
mov r8d, 0xf01ff
lea rdx, str.vseqrts
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14000a842
lea r8, [rsp + 0x68]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test rbx, rbx
je 0x14000a858
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000a8c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x14000a896
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14000a896
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000a8a1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, r13
mov dword [rsp + 0x28], MsiSetPropertyW
mov qword [rsp + 0x20], r14
mov r9d, r12d
lea r8, str.OpenSCManager_failed
lea rdx, [0x14001d628]
mov rcx, rdi
call fcn.140007d00
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x14000a8de
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp + 0x790]
call fcn.14000a290
lea rcx, [rbp - 0x70]
call fcn.14000a290
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWARECenterToolsDLStatusAntivirus
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a955
lea rdx, str.EngineCode
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, str.BasicEngineVer
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWARECenterToolsDLStatus
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a99d
lea rdx, str.BasicAvLicensed
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x14000a9c8
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14000a9c8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000a9d3
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, r13
mov dword [rsp + 0x28], 0x9c
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [0x14001d628]
mov rcx, rdi
call fcn.140007770
nop
lea rcx, [rsp + 0x38]
call fcn.1400044b0
mov eax, 1
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.14000c410
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret