Function at 0x1400031b0
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xb0
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140090750]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, rcx
call fcn.1400023d0
mov rcx, rax
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
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.14001c1e0
mov ebx, r15d
mov qword [rsp + 0x48], rbx
call fcn.1400023d0
cmp byte [rax + 0x64], r15b
je 0x14000325d
lea ecx, [r15 + 0x28]
call fcn.14001e180
mov rbx, rax
mov qword [rsp + 0x58], rax
call fcn.1400023d0
mov rdx, rax
lea r8, str.Utils::IsServicePresent
mov rcx, rbx
call fcn.140017870
mov rbx, rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
mov esi, 0xfffffffd
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x1400032c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400023d0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str.OpenSCManager_failed_w_err_0x_08lx
lea r8, str.Utils::IsServicePresent
lea edx, [rsi + 8]
call fcn.14001c1e0
lea esi, [r14 - 2]
jmp 0x140003411
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x14000332f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x14000330d
lea esi, [rbp - 2]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400023d0
mov dword [rsp + 0x20], edi
lea r9, str.OpenService_failed_w_err_0x_08lx
jmp 0x1400033e6
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400023d0
mov dword [rsp + 0x20], edi
lea r9, str.Service_does_not_exist._Error_0x_08lx
jmp 0x1400033e6
call fcn.1400023d0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9, str._s_Service_is_installed._Querying_status..
lea r8, str.Utils::IsServicePresent
mov edx, 3
call fcn.14001c1e0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400033fa
call fcn.1400023d0
mov rcx, rax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, str._s_Service_is_running_status__0x_08lx
lea r8, str.Utils::IsServicePresent
mov edx, 3
call fcn.14001c1e0
cmp dword [rsp + 0x84], 4
jne 0x1400033d0
mov esi, r15d
call fcn.1400023d0
mov qword [rsp + 0x20], rdi
lea r9, str._s_Service_is_running
mov edx, 3
jmp 0x1400033eb
mov esi, 1
call fcn.1400023d0
mov qword [rsp + 0x20], rdi
lea r9, str._s_Service_is_not_running
mov edx, 5
lea r8, str.Utils::IsServicePresent
mov rcx, rax
call fcn.14001c1e0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x140003411
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.1400023d0
mov rcx, rax
mov dword [rsp + 0x20], esi
lea r9, str.Return_Value___d
lea r8, str.Utils::IsServicePresent
mov edx, 1
call fcn.14001c1e0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140003474
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000346f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400034d1
call fcn.14001e178
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
test rbx, rbx
je 0x1400034a2
mov rcx, rbx
call fcn.140018310
mov edx, 0x28
mov rcx, rbx
call fcn.14001e178
mov eax, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14001da60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400416f8
nop
int3