Function at 0x140018fb0
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov rax, qword [0x1400a6188]
xor rax, rsp
mov qword [rbp + 7], rax
movzx eax, r9b
mov byte [rsp + 0x40], al
movzx r13d, r8b
mov qword [rbp - 0x69], rdx
mov r15, rcx
mov ebx, eax
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r15
lea r9, str.Service_Name___s__Running_Status_To_be_checked___d__To_Get_version_Info_Status___d
lea r8, str.Utils::IsServicePresent
xor edx, edx
call fcn.14002c750
xor edi, edi
mov ebx, edi
mov qword [rbp - 0x71], rbx
call fcn.140010cf0
cmp byte [rax + 0x64], dil
je 0x14001907f
lea ecx, [rdi + 0x28]
call fcn.140025d40
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140019078
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
call fcn.140010cf0
mov rdx, rax
lea r8, str.Utils::IsServicePresent
mov rcx, rbx
call fcn.140027d20
mov rbx, rax
jmp 0x14001907b
mov rbx, rdi
mov qword [rbp - 0x71], rbx
mov qword [rsp + 0x48], rdi
mov qword [rbp - 0x79], rdi
mov r14, rdi
mov dword [rbp - 0x59], edi
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], di
lea r8, [rbp - 0x79]
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.1400163b0
mov esi, eax
mov r12, qword [rbp - 0x79]
test eax, eax
jne 0x1400193ab
test r13b, r13b
je 0x140019176
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x20], r15
lea r9, str._s_Service_is_installed._Querying_status..
lea r8, str.Utils::IsServicePresent
lea edx, [rsi + 3]
call fcn.14002c750
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 0x24]
lea r8, [rbp - 0x31]
xor edx, edx
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x140019176
call fcn.140010cf0
mov rcx, rax
mov eax, dword [rbp - 0x2d]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
lea r9, str._s_Service_status__0x_08lx
lea r8, str.Utils::IsServicePresent
lea edx, [rsi + 3]
call fcn.14002c750
cmp dword [rbp - 0x2d], 4
jne 0x14001914e
mov esi, edi
call fcn.140010cf0
lea r9, str._s_Service_is_running
mov edx, 3
jmp 0x140019162
mov esi, 1
call fcn.140010cf0
lea r9, str._s_Service_is_not_running
lea edx, [rsi + 4]
mov qword [rsp + 0x20], r15
lea r8, str.Utils::IsServicePresent
mov rcx, rax
call fcn.14002c750
cmp byte [rsp + 0x40], 0
je 0x1400193ab
lea r9, [rbp - 0x59]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
test eax, eax
jne 0x140019227
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001947a
mov edi, dword [rbp - 0x59]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140019227
lea r9, [rbp - 0x59]
mov r8d, edi
mov rdx, rax
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
test eax, eax
jne 0x140019208
lea esi, [rax + 2]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str.QueryServiceConfig_failed_w_err_0x_08lx
lea r8, str.Utils::IsServicePresent
lea edx, [rsi + 3]
call fcn.14002c750
jmp 0x14001939b
mov rdx, qword [r14 + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140019213
lea rcx, [rbp - 0x51]
call fcn.14000fea0
mov r9, qword [rbp - 0x41]
test r9, r9
je 0x140019310
lea rax, [rbp - 0x51]
mov rcx, qword [rbp - 0x51]
mov r10, qword [rbp - 0x39]
cmp r10, 8
cmovae rax, rcx
lea r8, [r9 - 1]
lea r8, [rax + r8*2]
lea rax, [rbp - 0x51]
cmovae rax, rcx
sub r8, rax
sar r8, 1
cmp r9, r8
jb 0x1400194b4
mov rax, r9
sub rax, r8
mov edx, 1
cmp rax, rdx
cmovb rdx, rax
lea rax, [rbp - 0x51]
cmp r10, 8
cmovae rax, rcx
lea rcx, [rax + r8*2]
sub r9, rdx
mov qword [rbp - 0x41], r9
sub r9, r8
lea r8, [r9*2 + 2]
lea rdx, [rcx + rdx*2]
call fcn.14004b3c0
lea r9, [rbp - 0x51]
mov rcx, qword [rbp - 0x51]
mov r10, qword [rbp - 0x39]
cmp r10, 8
cmovae r9, rcx
lea rax, [rbp - 0x51]
cmovae rax, rcx
sub r9, rax
sar r9, 1
mov r8, qword [rbp - 0x41]
cmp r8, r9
jb 0x1400194ba
mov rax, r8
sub rax, r9
mov edx, 1
cmp rax, rdx
cmovb rdx, rax
lea rax, [rbp - 0x51]
cmp r10, 8
cmovae rax, rcx
lea rcx, [rax + r9*2]
sub r8, rdx
mov qword [rbp - 0x41], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call fcn.14004b3c0
lea rdi, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rdi, qword [rbp - 0x51]
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r15
lea r9, str._s_service_installed_path___s
lea r8, str.Utils::IsServicePresent
mov edx, 2
call fcn.14002c750
xor eax, eax
mov rdi, qword [rbp - 0x69]
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov dword [rdi + 0x30], eax
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rdx, qword [rbp - 0x51]
lea rcx, [rbp - 0x31]
call fcn.140017480
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
mov ecx, dword [rax + 0x30]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi + 0x20], xmm2
mov dword [rdi + 0x30], ecx
test r14, r14
je 0x1400193a9
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
xor edi, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400193bb
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test r12, r12
je 0x1400193c9
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x20], esi
lea r9, str.Return_Value___d
lea r8, str.Utils::IsServicePresent
mov edx, 1
call fcn.14002c750
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14001942e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019429
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400194ae
call fcn.140025d80
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], di
test rbx, rbx
je 0x140019458
mov rcx, rbx
call fcn.1400287c0
mov edx, 0x28
mov rcx, rbx
call fcn.140025d80
mov eax, esi
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400264a0
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov esi, 2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str.QueryServiceConfig_failed_w_err_0x_08lx
lea r8, str.Utils::IsServicePresent
lea edx, [rsi + 3]
call fcn.14002c750
jmp 0x1400193a9
call fcn.14004e3b0
nop
call fcn.14001c140
int3
call fcn.14001c140
int3