Function at 0x14002fed0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140293028]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rsi, rdx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x14002ffb5
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call fcn.1401a8d80
call fcn.140138af0
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 2
lea rcx, [rbp - 0x70]
call fcn.14000f010
nop
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp - 0x78], eax
setl byte [rbp + 0x88]
jl 0x14002ffa5
lea rdx, str.Failed_to_open_SCM:
lea rcx, [rbp - 0x80]
call fcn.1400127f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1402984b8]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140030190
mov byte [rbp + 0x88], 1
lea rcx, [rbp - 0x80]
call fcn.14000afe0
xor esi, esi
jmp 0x14003013e
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14002ffc2
mov rdx, qword [rsi]
mov r8d, 5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
setne r14b
xor edx, edx
test rax, rax
jne 0x140030046
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call fcn.1401a8d80
call fcn.140138af0
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 2
lea rcx, [rbp - 0x70]
call fcn.14000f010
nop
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp - 0x78], eax
setl byte [rbp + 0x88]
jl 0x14003011e
lea rdx, str.Failed_to_open_service_
lea rcx, [rbp - 0x80]
call fcn.1400219b0
jmp 0x1400300d7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14003012b
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call fcn.1401a8d80
call fcn.140138af0
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 2
lea rcx, [rbp - 0x70]
call fcn.14000f010
nop
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp - 0x78], eax
setl byte [rbp + 0x88]
jl 0x14003011e
lea rdx, str.Failed_to_query_service_state_for_
lea rcx, [rbp - 0x80]
call fcn.1400239a0
mov rdx, rsi
mov rcx, rax
call fcn.140021890
lea rdx, [0x14020ca54]
mov rcx, rax
call fcn.140030200
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1402984b8]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140030190
mov byte [rbp + 0x88], 1
lea rcx, [rbp - 0x80]
call fcn.14000afe0
xor esi, esi
jmp 0x14003012f
mov esi, dword [rsp + 0x4c]
test r14b, r14b
je 0x14003013e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x14003014c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140185380
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret