Function at 0x14002d490
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rbp], rax
mov r15, r9
mov r12d, r8d
mov rbx, rdx
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x78], rdx
mov r8d, dword [rbp + 0x80]
xor sil, sil
mov byte [rsp + 0x20], sil
xor r13d, r13d
mov edi, r13d
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14002d6a9
cmp qword [rdx + 0x18], 8
jb 0x14002d4f7
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x68], r13
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmmword [rbp - 0x40], xmm0
mov r8, r13
mov qword [rsp + 0x70], r13
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], rdi
je 0x14002d551
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
mov qword [rsp + 0x38], rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
mov qword [rsp + 0x70], r8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x70], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x78], rax
mov rcx, r13
mov qword [rbp - 0x30], rcx
test r8, r8
je 0x14002d593
mov rax, qword [r8]
lea rdx, [rbp - 0x68]
mov rcx, r8
mov rax, qword [rax]
call qword [case.0x140026a06.0]
mov rcx, rax
mov qword [rbp - 0x30], rax
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x14002d5b7
mov rax, qword [r8]
lea rcx, [rsp + 0x38]
cmp r8, rcx
setne dl
mov rcx, r8
mov rax, qword [rax + 0x20]
call qword [case.0x140026a06.0]
mov rcx, qword [rbp - 0x30]
test r14, r14
je 0x14002d65d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r13, rax
mov sil, 1
mov r14d, dword [rbp + 0x78]
mov rbx, qword [rsp + 0x28]
nop word [rax + rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], eax
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
cmovne edi, dword [rbp - 0x1c]
cmp edi, r12d
je 0x14002d630
test r15, r15
je 0x14002d625
mov edx, r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14002d635
xor sil, sil
jmp 0x14002d635
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002d635
mov byte [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
test sil, sil
je 0x14002d64d
cmp edi, r12d
je 0x14002d64d
sub eax, r13d
cmp eax, dword [rbp + 0x70]
jb 0x14002d5e0
mov rcx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x80]
movzx esi, byte [rsp + 0x20]
xor r13d, r13d
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x14002d68c
mov qword [rbp - 0x80], rax
test rcx, rcx
je 0x14002d71f
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
mov rax, qword [rax + 0x10]
call qword [case.0x140026a06.0]
mov qword [rbp - 0x70], r13
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002d6a9
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x140026a06.0]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002d6e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002d6df
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002d725
mov rcx, r8
call fcn.140149194
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
movzx eax, sil
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140149500
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140120f40
nop
call fcn.1401501d4
int3