Function at 0x140149b80
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1401d2670]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
lea rax, [rsp + 0x38]
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140149c09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1401d2a10]
lea rcx, [0x1401d2a10]
cmp r10, rcx
je 0x140149c02
test byte [r10 + 0x1c], 1
je 0x140149c02
cmp byte [r10 + 0x19], 3
jb 0x140149c02
mov rcx, qword [r10 + 0x10]
lea r8, [0x140192110]
mov edx, SafeArrayAccessData
mov r9d, eax
call fcn.14001f760
mov eax, ebx
jmp 0x140149e9c
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x88], rbp
cmp eax, 1
jne 0x140149c61
mov rax, qword [0x1401d2a10]
lea rcx, [0x1401d2a10]
cmp rax, rcx
je 0x140149e57
test byte [rax + 0x1c], 1
je 0x140149e57
cmp byte [rax + 0x19], 3
jb 0x140149e57
mov rcx, qword [rax + 0x10]
lea r8, [0x140192110]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
call fcn.14001f730
xor eax, eax
jmp 0x140149e94
mov rcx, rdi
cmp eax, 3
jne 0x140149c73
call fcn.140149ec0
jmp 0x140149e94
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1401496a0
mov ebx, eax
test eax, eax
jne 0x140149e5b
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x90], rsi
nop dword [rax + rax]
test rbx, rbx
je 0x140149d85
mov rcx, rbx
call fcn.140149b80
mov rcx, qword [rbx]
test rcx, rcx
je 0x140149cbf
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140149cce
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x28
mov rcx, rbx
call fcn.140144a10
mov eax, dword [rdi + 0x24]
cmp eax, dword [rdi + 0x20]
jb 0x140149ce8
mov rbx, rbp
jmp 0x140149ca0
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x18]
add rcx, rcx
mov rsi, qword [rax + rcx*8]
mov ecx, 0x28
call fcn.1401449d4
mov qword [rsp + 0x30], rax
mov rbx, rax
test rax, rax
je 0x140149d74
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
test rax, rax
je 0x140149d77
mov rdx, rsi
mov rcx, rax
call fcn.140149850
test eax, eax
je 0x140149d7d
mov rcx, qword [rbx]
test rcx, rcx
je 0x140149d4d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140149d5c
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x28
mov rcx, rbx
call fcn.140144a10
inc dword [rdi + 0x24]
mov rbx, rbp
jmp 0x140149ca0
mov rbx, rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [rdi + 0x24]
jmp 0x140149ca0
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rsi, qword [rsp + 0x90]
test eax, eax
jne 0x140149e12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x40]
mov ebx, eax
mov r9d, 0x24
lea rax, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140149e12
mov ecx, dword [rsp + 0x44]
dec ecx
test ecx, 0xfffffffd
je 0x140149e12
mov rax, qword [0x1401d2a10]
lea rcx, [0x1401d2a10]
cmp rax, rcx
je 0x140149e92
test byte [rax + 0x1c], 1
je 0x140149e92
cmp byte [rax + 0x19], 3
jb 0x140149e92
mov edx, 0x17
jmp 0x140149e7f
mov rcx, rdi
call fcn.140149ec0
test eax, eax
je 0x140149e57
mov r10, qword [0x1401d2a10]
lea rcx, [0x1401d2a10]
cmp r10, rcx
je 0x140149e57
test byte [r10 + 0x1c], 1
je 0x140149e57
cmp byte [r10 + 0x19], 3
jb 0x140149e57
mov rcx, qword [r10 + 0x10]
lea r8, [0x140192110]
mov edx, 0x18
mov r9d, eax
call fcn.14001f760
xor eax, eax
jmp 0x140149e94
mov rax, qword [0x1401d2a10]
lea rcx, [0x1401d2a10]
cmp rax, rcx
je 0x140149e92
test byte [rax + 0x1c], 1
je 0x140149e92
cmp byte [rax + 0x19], 3
jb 0x140149e92
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov rcx, qword [rax + 0x10]
lea r8, [0x140192110]
mov r9d, ebx
call fcn.14001f760
mov eax, ebx
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401449b0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
ret