Function at 0x140012d60
Capabilities:
Delete service
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 0x140013214
add rbx, 8
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140012dee
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 0x1400131ba
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.140013cc0
test al, al
jne 0x140012e88
mov ecx, 5
call fcn.14009c140
test eax, eax
je 0x140012e6d
cmp qword [rbx + 0x18], 8
jb 0x140012e34
mov rbx, qword [rbx]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::uninstall
lea rax, str.Failed_to_disable_the_lockdown_of_service__ls.
mov r9d, 0x8c
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 0x140013267
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rbx + 0x18], 8
jb 0x140012e9d
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 0x140012f06
lea ecx, [rax + 5]
call fcn.14009c140
test eax, eax
je 0x140012eff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov r9d, 0x98
lea r8, str.Intel::WindowsService::uninstall
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 0x140013267
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 0x140012f7a
call fcn.14009c140
test eax, eax
je 0x140012fc1
lea rax, str.Service_has_been_disabled
mov r9d, 0x9f
lea r8, str.Intel::WindowsService::uninstall
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea ecx, [rbx + 6]
call fcn.14000a9d0
jmp 0x140012fc1
call fcn.14009c140
test eax, eax
je 0x140012fc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov r9d, 0xa3
lea r8, str.Intel::WindowsService::uninstall
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 0x14001302f
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x14001302f
lea rax, [rsp + 0x74]
mov r9d, 0xaa
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::uninstall
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 0x140013090
lea rax, [rsp + 0x74]
mov r9d, 0xb2
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::uninstall
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 0x1400130bc
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x12c
jl 0x140013090
jmp 0x1400130f4
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x1400130f4
lea rax, str.Service_has_been_stopped
mov r9d, 0xba
lea r8, str.Intel::WindowsService::uninstall
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_DeleteService]
test eax, eax
je 0x140013154
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x1400131a3
lea rax, str.Service_was_deleted_from_SCM_successfully
mov r9d, 0xc3
lea r8, str.Intel::WindowsService::uninstall
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 0x140013263
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 0x1400131a3
lea rax, [rsp + 0x60]
mov r9d, 0xc9
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::uninstall
lea rax, str.Failed_to_delete_service_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
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140013263
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 0x140013209
lea rax, [rsp + 0x60]
mov r9d, 0xd2
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::uninstall
lea rax, str.Failed_to_open_service_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
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140013263
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 0x140013263
lea rax, [rsp + 0x60]
mov r9d, 0xdb
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::uninstall
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