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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea r8d, [rax + 1]
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140004667
mov rax, qword [0x140024980]
lea rbx, [0x140024980]
cmp rax, rbx
je 0x140004836
test byte [rax + 0x1c], 1
je 0x140004836
cmp byte [rax + 0x19], 2
jb 0x140004836
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140024980]
lea edx, [rsi + 0x10]
mov r9d, eax
lea r8, [0x1400205b0]
mov rcx, qword [rcx + 0x10]
call fcn.140001210
jmp 0x140004836
mov r8d, 0x10024
mov qword [rsp + 0x60], rdi
lea rdx, str.iBtSiva
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400046dd
mov rax, qword [0x140024980]
lea rbx, [0x140024980]
cmp rax, rbx
je 0x14000481a
test byte [rax + 0x1c], 1
je 0x14000481a
cmp byte [rax + 0x19], 2
jb 0x14000481a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rdi + 0x11]
mov rcx, qword [0x140024980]
lea r8, [0x1400205b0]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001210
jmp 0x14000481a
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
lea rbx, [0x140024980]
test eax, eax
je 0x1400047b8
mov rcx, qword [0x140024980]
cmp rcx, rbx
je 0x14000472c
test byte [rcx + 0x1c], 1
je 0x14000472c
cmp byte [rcx + 0x19], 2
jb 0x14000472c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400205b0]
mov edx, 0x12
call fcn.1400011e0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140004766
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14000476a
mov ecx, 0xfa
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 0x140004740
mov eax, dword [rsp + 0x24]
cmp eax, 1
jne 0x14000478b
mov rcx, qword [0x140024980]
cmp rcx, rbx
je 0x1400047b8
test byte [rcx + 0x1c], al
je 0x1400047b8
cmp byte [rcx + 0x19], 2
jb 0x1400047b8
lea edx, [rax + 0x12]
jmp 0x1400047a8
mov rcx, qword [0x140024980]
cmp rcx, rbx
je 0x1400047b8
test byte [rcx + 0x1c], 1
je 0x1400047b8
cmp byte [rcx + 0x19], 2
jb 0x1400047b8
mov edx, 0x14
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400205b0]
call fcn.1400011e0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400047ed
mov rax, qword [0x140024980]
cmp rax, rbx
je 0x14000481a
test byte [rax + 0x1c], 1
je 0x14000481a
cmp byte [rax + 0x19], 2
jb 0x14000481a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x15
jmp 0x1400046be
mov rcx, qword [0x140024980]
cmp rcx, rbx
je 0x14000481a
test byte [rcx + 0x1c], 1
je 0x14000481a
cmp byte [rcx + 0x19], 2
jb 0x14000481a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400205b0]
mov edx, 0x16
call fcn.1400011e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140004831
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400048c0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret