Function at 0x140017480
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0x38], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
xor edx, edx
cmp rax, 0xffffffffffffffff
jne 0x1400174f2
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.OpenSCManager_Fail
call fcn.140005c50
mov eax, ebx
jmp 0x140017740
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0xc]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 3]
lea r8d, [r12 + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov ecx, dword [rbp - 0x10]
call fcn.14002c088
mov r14, rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0xc]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rbp - 0x10]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r14
xor edx, edx
lea r9d, [r12 + 3]
lea r8d, [r12 + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov esi, r12d
cmp dword [rbp - 0xc], r12d
jbe 0x14001771b
lea r15, str.ROG_Live_Service
nop word [rax + rax]
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], 0
xor r8d, r8d
lea rdx, [0x140059368]
lea rcx, [rbp - 8]
call fcn.140001bd0
nop
mov eax, esi
imul rbx, rax, 0x38
mov eax, dword [rbx + r14 + 0x14]
cmp eax, 4
jne 0x1400175d1
lea r8d, [rax + 3]
lea rdx, str.Running
jmp 0x1400175e1
cmp eax, 1
jne 0x1400175ea
lea r8d, [rax + 3]
lea rdx, str.Stop
lea rcx, [rbp - 8]
call fcn.140001bd0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r8d, 3
mov rdx, qword [rbx + r14]
lea rcx, [rsp + 0x60]
call fcn.14001b1d0
nop
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 0xf
mov byte [rbp + 0x18], 0
mov rdx, qword [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140017625
lea rcx, [rbp + 0x18]
call fcn.140001bd0
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x14001764d
call fcn.14002a2f8
lea rdi, [rbp - 8]
mov r8, qword [rbp - 8]
mov r9, qword [rbp + 0x10]
cmp r9, 0x10
cmovae rdi, r8
mov rdx, qword [rbx + r14]
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r15 + rax*2 + 2]
jne 0x140017696
add rax, 2
cmp rax, 0x11
je 0x14001776d
movzx ecx, word [rdx + rax*2]
cmp cx, word [r15 + rax*2]
je 0x140017670
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x1400176d9
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400176cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001780a
call fcn.14001fad4
mov r9, qword [rbp + 0x10]
mov r8, qword [rbp - 8]
cmp r9, 0x10
jb 0x140017710
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140017708
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017810
mov rcx, r8
call fcn.14001fad4
inc esi
cmp esi, dword [rbp - 0xc]
jb 0x140017590
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.ROG_Live_Service_is_not_installed.
call fcn.140005c50
mov rcx, r14
call fcn.14002a2f8
mov eax, 2
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14001fab0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
mov r8, rdi
lea rdx, str.ROG_Live_Service_is_alreadly_installed._Service_status___s_n
call fcn.140005c50
mov rcx, r14
call fcn.14002a2f8
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x1400177c9
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400177c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017816
call fcn.14001fad4
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140017800
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400177fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001781c
call fcn.14001fad4
mov eax, 1
jmp 0x140017740
call fcn.140029424
nop
call fcn.140029424
nop
call fcn.140029424
nop
call fcn.140029424
int3