Function at 0x140048a00
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140280d40]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
xor dil, dil
cmp qword [rcx + 0x18], 0
jne 0x140048a40
xor al, al
jmp 0x140048c15
xor r15d, r15d
mov qword [rbp - 0x40], r15
mov r8d, 0x80000000
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x40], rax
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140016f70
test al, al
je 0x140048a77
xor dil, dil
jmp 0x140048c08
mov qword [rbp - 0x48], r15
lea rbx, [rsi + 8]
cmp qword [rbx + 0x18], 7
jbe 0x140048a89
mov rbx, qword [rbx]
lea rcx, [rbp - 0x40]
call fcn.140016f80
mov r8d, 5
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp - 0x48], rax
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.140016f70
test al, al
je 0x140048ad1
lea rcx, [rbp - 0x40]
call fcn.140016f80
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor dil, dil
jmp 0x140048bfe
mov r14d, r15d
mov dword [rbp - 0x50], r15d
mov rbx, r15
lea rcx, [rbp - 0x48]
call fcn.140016f80
mov rcx, rax
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x140048b27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140048bd9
mov r14d, dword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, r14d
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
lea rcx, [rbp - 0x48]
call fcn.140016f80
mov rcx, rax
lea r9, [rbp - 0x50]
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140048bd9
test rbx, rbx
je 0x140048b6c
cmp dword [rbx + 4], 4
jne 0x140048b6c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140048bd9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [rbp - 0x50], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], eax
lea rcx, [rbp - 0x48]
call fcn.140016f80
mov rcx, rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140048bd9
cmp dword [rbp - 0x34], 4
jne 0x140048bd9
mov eax, dword [rbp - 0x1c]
mov dword [rsi + 0x50], eax
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dil, 1
lea rcx, [rbp - 0x40]
call fcn.140016f80
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rbp - 0x48]
call fcn.140016f80
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rbp - 0x48]
call fcn.140016f40
nop
lea rcx, [rbp - 0x40]
call fcn.140016f40
movzx eax, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140162ed0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret