Function at 0x140010650
Capabilities:
Check for time delay via gettickcount
Modify service
Query service status
Start service

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rdx
mov r8, rdx
cmp qword [rdx + 0x18], 8
jb 0x14001069e
mov r8, qword [rdx]
lea rdx, str.StartServiceStatus_name:__s
call fcn.14000f4e0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
jne 0x140010720
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
lea rdx, str.StartServiceStatus_OpenSCManager_fail
mov rcx, rsi
call fcn.14000f4e0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140010719
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140010714
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010bd5
mov rcx, r8
call fcn.14003dc60
xor ebp, ebp
jmp 0x140010b99
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001072d
mov rdx, qword [rbx]
mov r8d, 0xf01ff
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov r15, rax
test rax, rax
jne 0x1400107a1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
lea rdx, str.StartServiceStatus_OpenService_fail
mov rcx, rsi
call fcn.14000f4e0
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140010719
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140010714
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010bdb
jmp 0x140010711
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
xor ebp, ebp
test eax, eax
jne 0x1400107e3
lea rdx, str.StartServiceStatus_QueryServiceStatusEx_fail
mov rcx, rsi
call fcn.14000f4e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x140010b39
mov r8, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x1400107f3
mov r8, qword [rbx]
mov r10, qword [rbx + 0x10]
cmp r10, 0x13
jne 0x140010826
mov rdx, r10
lea rcx, str.ArmouryCrateService
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140010826
add rcx, 2
sub rdx, 1
jne 0x140010810
jmp 0x140010868
mov r8, rbx
cmp r9, 8
jb 0x140010832
mov r8, qword [rbx]
cmp r10, 0x10
jne 0x140010b28
mov rdx, r10
lea rcx, str.ROG_Live_Service
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140010b28
add rcx, 2
sub rdx, 1
jne 0x140010850
mov eax, dword [rsp + 0x7c]
dec eax
test eax, 0xfffffffd
je 0x140010881
lea rdx, str.ssStatus.dwCurrentState___SERVICE_STOPPED__ssStatus.dwCurrentState___SERVICE_STOP_PENDING
jmp 0x140010b2f
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r14d, eax
mov edi, dword [rsp + 0x8c]
lea rdx, str.Wait_for_the_service_to_stop_before_attempting_to_start_it.
mov rcx, rsi
call fcn.14000f4e0
mov r13d, 0x2710
cmp dword [rsp + 0x7c], 3
jne 0x140010940
mov eax, 0xcccccccd
mul dword [rsp + 0x90]
shr edx, 3
cmp edx, 0x3e8
jae 0x1400108cf
mov edx, 0x3e8
jmp 0x1400108d6
cmp edx, r13d
cmova edx, r13d
mov ecx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x140010a5a
cmp dword [rsp + 0x8c], edi
jbe 0x140010921
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r14d, eax
mov edi, dword [rsp + 0x8c]
jmp 0x140010935
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x186a0
ja 0x140010a4e
cmp dword [rsp + 0x7c], 3
je 0x1400108b1
lea rdx, str.ChangeServiceConfig
mov rcx, rsi
call fcn.14000f4e0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov edx, 0xffffffff
mov r9d, edx
mov r8d, 2
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1400109a5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.StartServiceStatus_ChangeServiceConfig_fail__GetLastError:__d
mov rcx, rsi
call fcn.14000f4e0
lea rdx, str.StartService
mov rcx, rsi
call fcn.14000f4e0
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
je 0x1400107d6
lea rdx, [0x1400cbb10]
mov rcx, rsi
call fcn.14000f4e0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400107d6
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r14d, eax
mov edi, dword [rsp + 0x8c]
lea rdx, str.wait_Service
mov rcx, rsi
call fcn.14000f4e0
cmp dword [rsp + 0x7c], 2
jne 0x140010b02
nop dword [rax + rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x90]
shr edx, 3
cmp edx, 0x3e8
jae 0x140010a7f
mov edx, 0x3e8
jmp 0x140010a86
lea rdx, str.Timeout_waiting_for_service_to_stop_n
jmp 0x1400107ce
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.QueryServiceStatusEx_failed___d__n
mov rcx, rsi
call fcn.14000f4e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x140010b39
cmp edx, r13d
cmova edx, r13d
mov ecx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x140010aea
cmp dword [rsp + 0x8c], edi
jbe 0x140010acd
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r14d, eax
mov edi, dword [rsp + 0x8c]
jmp 0x140010add
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x186a0
ja 0x140010b02
cmp dword [rsp + 0x7c], 2
je 0x140010a30
jmp 0x140010b02
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.QueryServiceStatusEx_failed___d__n
mov rcx, rsi
call fcn.14000f4e0
mov rcx, rsi
cmp dword [rsp + 0x7c], 4
jne 0x140010b15
lea rdx, str.SERVICE_RUNNING
jmp 0x140010b32
lea rdx, str.status___SERVICE_RUNNING
call fcn.14000f4e0
mov edi, 1
jmp 0x140010b39
lea rdx, str.name___ArmouryCrateService__name___ROG_Live_Service
mov rcx, rsi
call fcn.14000f4e0
mov edi, ebp
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov r8d, edi
lea rdx, str.StartServiceStatus_return_result:__d
mov rcx, rsi
call fcn.14000f4e0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140010b99
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140010b94
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010be1
mov rcx, r8
call fcn.14003dc60
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov eax, edi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14003d6b0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400875c4
int3
call fcn.1400875c4
int3
call fcn.1400875c4
int3