Function at 0x140013290
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.1400ae360
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xor edx, edx
xor ecx, ecx
mov r8d, 0x40000000
mov r14b, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x1400136aa
add rbx, 8
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001331e
mov rdx, qword [rbx]
mov r8d, 0x60000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140013650
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.140013cc0
test al, al
jne 0x1400133b8
mov ecx, 5
call fcn.14009c140
test eax, eax
je 0x14001339d
cmp qword [rbx + 0x18], 8
jb 0x140013364
mov rbx, qword [rbx]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::stop
lea rax, str.Failed_to_disable_the_lockdown_of_service__ls.
mov r9d, 0xf0
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
mov ecx, 5
call fcn.14000aaa0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400136fd
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rbx + 0x18], 8
jb 0x1400133cd
mov rbx, qword [rbx]
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140013436
lea ecx, [rax + 5]
call fcn.14009c140
test eax, eax
je 0x14001342f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov r9d, 0xfc
lea r8, str.Intel::WindowsService::stop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea rax, str.Failed_to_open_service_handle__lu.
lea ecx, [rdi + 5]
mov qword [rsp + 0x20], rax
call fcn.14000aa30
xor al, al
jmp 0x1400136fd
xor ebx, ebx
mov edx, 0xffffffff
mov qword [rsp + 0x50], rbx
mov r9d, edx
mov qword [rsp + 0x48], rbx
mov rcx, rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea r8d, [rbx + 4]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [rbx + 6]
test eax, eax
je 0x1400134aa
call fcn.14009c140
test eax, eax
je 0x1400134f1
lea rax, str.Service_has_been_disabled
mov r9d, 0x103
lea r8, str.Intel::WindowsService::stop
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea ecx, [rbx + 6]
call fcn.14000a9d0
jmp 0x1400134f1
call fcn.14009c140
test eax, eax
je 0x1400134f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov r9d, 0x107
lea r8, str.Intel::WindowsService::stop
mov ecx, 6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea rax, str.Not_able_to_disable_service__error___lu
mov qword [rsp + 0x20], rax
call fcn.14000aa30
xor eax, eax
lea rdx, [rsp + 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x80], rax
mov rcx, rdi
mov dword [rbp - 0x78], eax
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [rsp + 0x74]
dec eax
test eax, 0xfffffffd
je 0x14001355f
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x14001355f
lea rax, [rsp + 0x74]
mov r9d, 0x10e
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::stop
lea rax, str.Services_current_state_is__lu__trying_to_stop_it
mov ecx, 6
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
call fcn.14000aa30
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x1400135c0
lea rax, [rsp + 0x74]
mov r9d, 0x112
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::stop
lea rax, str.Sent_stop_command_to_service__current_status___lu
mov ecx, 6
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
call fcn.14000aa30
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rsp + 0x74], 1
je 0x140013601
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x12c
jl 0x1400135c0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400136f9
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x140013639
lea rax, str.Service_has_been_stopped
mov r9d, 0x11a
lea r8, str.Intel::WindowsService::stop
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov ecx, 6
call fcn.14000a9d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400136f9
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 6
mov dword [rsp + 0x60], eax
call fcn.14009c140
test eax, eax
je 0x14001369f
lea rax, [rsp + 0x60]
mov r9d, 0x127
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::stop
lea rax, str.Failed_to_open_service_with_error__lu
mov ecx, 6
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
call fcn.14000aa30
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400136f9
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 5
mov dword [rsp + 0x60], eax
call fcn.14009c140
test eax, eax
je 0x1400136f9
lea rax, [rsp + 0x60]
mov r9d, 0x130
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::stop
lea rax, str.Failed_to_open_SCM_with_error__lu
mov ecx, 5
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
call fcn.14000aa30
movzx eax, r14b
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400ab6c0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret