Function at 0x14004bf10
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x718
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x700], rax
mov dword [rsp + 0x48], 0
mov byte [rsp + 0x20], 0
mov r8d, 4
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14004c03f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, 1
lea rcx, [rsp + 0x3b0]
call fcn.14003aba0
nop
lea rdx, str.TamperProtectionControl:_OpenSCManager_failed__error
lea rcx, [rsp + 0x3b0]
call fcn.14001d2a0
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140005ba0
call fcn.14001c880
mov rcx, rax
call fcn.140011b70
mov r8d, 3
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140017560
nop
jmp 0x14004bfd8
mov byte [rsp + 0x188], 1
movzx eax, byte [rsp + 0x188]
test eax, eax
jne 0x14004c01f
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x3b0]
call fcn.14003aac0
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.14003d6b0
lea rcx, [rsp + 0x6a0]
call fcn.140019710
jmp 0x14004bfd0
lea rcx, [rsp + 0x80]
call fcn.1400162f0
nop
lea rcx, [rsp + 0x3b0]
call fcn.14002d320
jmp 0x14004c2ca
mov rcx, qword [rsp + 0x728]
call fcn.1400196d0
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14004c15e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x424
jne 0x14004c08f
mov byte [rsp + 0x20], 1
jmp 0x14004c159
mov edx, 1
lea rcx, [rsp + 0x4a0]
call fcn.14003aba0
nop
lea rdx, str.TamperProtectionControl:_OpenService_failed__error
lea rcx, [rsp + 0x4a0]
call fcn.14001d2a0
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
call fcn.140005ba0
call fcn.14001c880
mov rcx, rax
call fcn.140011b70
mov r8d, 3
mov rdx, rax
lea rcx, [rsp + 0x190]
call fcn.140017560
nop
jmp 0x14004c0f7
mov byte [rsp + 0x298], 1
movzx eax, byte [rsp + 0x298]
test eax, eax
jne 0x14004c13e
lea rdx, [rsp + 0x6c0]
lea rcx, [rsp + 0x4a0]
call fcn.14003aac0
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x190]
call fcn.14003d6b0
lea rcx, [rsp + 0x6c0]
call fcn.140019710
jmp 0x14004c0ef
lea rcx, [rsp + 0x190]
call fcn.1400162f0
nop
lea rcx, [rsp + 0x4a0]
call fcn.14002d320
jmp 0x14004c2bf
lea rdx, [rsp + 0x680]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14004c24f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov edx, 1
lea rcx, [rsp + 0x590]
call fcn.14003aba0
nop
lea rdx, str.TamperProtectionControl:_QueryServiceStatus_failed__error
lea rcx, [rsp + 0x590]
call fcn.14001d2a0
mov qword [rsp + 0x70], rax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x70]
call fcn.140005ba0
call fcn.14001c880
mov rcx, rax
call fcn.140011b70
mov r8d, 3
mov rdx, rax
lea rcx, [rsp + 0x2a0]
call fcn.140017560
nop
jmp 0x14004c1eb
mov byte [rsp + 0x3a8], 1
movzx eax, byte [rsp + 0x3a8]
test eax, eax
jne 0x14004c232
lea rdx, [rsp + 0x6e0]
lea rcx, [rsp + 0x590]
call fcn.14003aac0
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x2a0]
call fcn.14003d6b0
lea rcx, [rsp + 0x6e0]
call fcn.140019710
jmp 0x14004c1e3
lea rcx, [rsp + 0x2a0]
call fcn.1400162f0
nop
lea rcx, [rsp + 0x590]
call fcn.14002d320
jmp 0x14004c2b4
cmp dword [rsp + 0x684], 4
jne 0x14004c263
mov dword [rsp + 0x28], 1
jmp 0x14004c26b
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x21], al
mov eax, dword [rsp + 0x688]
and eax, 1
test eax, eax
je 0x14004c28c
mov dword [rsp + 0x2c], 1
jmp 0x14004c294
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14004c2af
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x14004c2b4
mov byte [rsp + 0x20], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x718
ret