Function at 0x140013730
Capabilities:
Modify service
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r14, rcx
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.1400ae360
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xor edx, edx
xor ecx, ecx
mov r8d, 0x40000000
mov r15b, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
je 0x140013c37
cmp qword [r14 + 0x20], 8
lea rdi, [r14 + 8]
mov rdx, rdi
jb 0x1400137c2
mov rdx, qword [rdi]
mov r8d, 0xf01ff
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x68], rax
mov rsi, rax
test rax, rax
jne 0x14001388b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rsi + 5]
mov dword [rsp + 0x60], eax
call fcn.14009c140
test eax, eax
je 0x14001382a
lea rax, [rsp + 0x60]
mov r9d, 0x144
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::start
lea rax, str.OpenService_failed_with_error__lu
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
lea ecx, [rsi + 5]
call fcn.14000aa30
xor r15b, r15b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 5
mov dword [rsp + 0x60], eax
call fcn.14009c140
test eax, eax
je 0x140013c2c
lea rax, [rsp + 0x60]
mov r9d, 0x18f
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::start
lea rax, str.Failed_to_create_service:__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, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140013c86
xor ebx, ebx
mov edx, 0xffffffff
mov qword [rsp + 0x50], rbx
mov r9d, edx
mov qword [rsp + 0x48], rbx
mov rcx, rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea r8d, [rbx + 2]
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 0x1400138ff
call fcn.14009c140
test eax, eax
je 0x140013946
lea rax, str.Service_has_been_set_to_auto_start
mov r9d, 0x14b
lea r8, str.Intel::WindowsService::start
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea ecx, [rbx + 6]
call fcn.14000a9d0
jmp 0x140013946
call fcn.14009c140
test eax, eax
je 0x140013946
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov r9d, 0x14f
lea r8, str.Intel::WindowsService::start
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_set_service_to_auto_start__error___lu
mov qword [rsp + 0x20], rax
call fcn.14000aa30
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x14001399a
cmp qword [rdi + 0x18], 8
mov rax, rdi
jb 0x140013961
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
lea r8, str.Intel::WindowsService::start
lea rax, [rsp + 0x60]
mov r9d, 0x155
mov qword [rsp + 0x28], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea rax, str.Service__ls_opened_successfuly_into_SCM
mov ecx, 6
mov qword [rsp + 0x20], rax
call fcn.14000aaa0
lea r8, [rbp - 0x60]
mov dword [rbp - 0x60], ebx
mov edx, 3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 6
mov dword [rsp + 0x60], eax
call fcn.14009c140
test eax, eax
je 0x1400139fb
lea rax, [rsp + 0x60]
mov r9d, 0x15a
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::start
lea rax, str.Change_service_to_delay_start__result:__lu
mov ecx, 6
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
call fcn.14000aa30
cmp qword [r14 + 0x40], 8
lea rax, [r14 + 0x28]
jb 0x140013a09
mov rax, qword [rax]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xorps xmm0, xmm0
mov qword [rbp - 0x38], 1
lea rax, [rbp - 0x38]
mov dword [rbp - 0x30], 1
lea r8, [rsp + 0x78]
mov qword [rbp - 0x68], rax
mov edx, 2
mov qword [rbp - 0x2c], 0x3a98
mov rcx, rsi
mov dword [rbp - 0x24], ebx
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x78], 0x15180
mov qword [rbp - 0x70], 3
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov r8d, 1
lea rdx, [rsp + 0x68]
call fcn.140013cc0
test al, al
jne 0x140013adb
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x140013ad4
cmp qword [rdi + 0x18], 8
jb 0x140013a9b
mov rdi, qword [rdi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::start
lea rax, str.Failed_to_enable_the_lockdown_of_service__ls.
mov r9d, 0x16b
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
mov ecx, 6
call fcn.14000aaa0
xor al, al
jmp 0x140013c8a
mov rdi, qword [rsp + 0x68]
lea rdx, [rbp - 0x58]
xor eax, eax
xorps xmm0, xmm0
mov rcx, rdi
mov qword [rbp - 0x48], rax
movups xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x40], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [rbp - 0x54]
mov ecx, 6
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x140013b85
call fcn.14009c140
test eax, eax
je 0x140013b4b
lea rax, [rbp - 0x54]
mov r9d, 0x173
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::start
lea rax, str.Services_current_state_is__lu__trying_to_start_it
mov ecx, 6
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
call fcn.14000aa30
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ecx, 6
mov dword [rsp + 0x60], eax
call fcn.14009c140
test eax, eax
je 0x140013bc1
lea rax, [rbp - 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
call fcn.140014140
jmp 0x140013bc1
call fcn.14009c140
test eax, eax
je 0x140013bc1
lea rax, [rbp - 0x54]
mov r9d, 0x179
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::start
lea rax, str.Service_is_already_running_or_pending_start__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
lea rdx, [rbp - 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rbp - 0x54], 4
je 0x140013beb
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x12c
jl 0x140013bc1
jmp 0x140013c23
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x140013c23
lea rax, str.Service_has_been_started
mov r9d, 0x182
lea r8, str.Intel::WindowsService::start
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, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140013c86
xor r15b, r15b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 5
mov dword [rsp + 0x60], eax
call fcn.14009c140
test eax, eax
je 0x140013c86
lea rax, [rsp + 0x60]
mov r9d, 0x197
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::start
lea rax, str.Failed_to_open_SCM:__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, r15b
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400ab6c0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret