Function at 0x14004200c
Capabilities:
Start service

Disassembly:
mov rcx, rdx
jmp 0x14004200c
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbx, rcx
cmp qword [rcx + 0x10], 0
jne 0x140042034
call fcn.14003f884
and dword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
mov rcx, rbx
call fcn.1400419cc
mov esi, eax
test eax, eax
js 0x1400420e7
cmp dword [rbp + 0x20], 4
jne 0x140042138
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 4
jbe 0x14004209d
mov rcx, rbx
call fcn.1400101b0
mov qword [rbp + 0x20], rax
lea rax, str.Cannot_start_disabled_service___enable
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005e928]
mov rcx, rdi
call fcn.140012440
mov rcx, rbx
call fcn.140041e90
mov edi, eax
test eax, eax
jns 0x140042138
cmp qword [rbx + 0x18], 8
jb 0x1400420b9
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rbx
lea rax, str.Could_not_change_the_start_type_of_disabled_service__ws
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x172
call fcn.140016e78
jmp 0x140042252
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 2
jbe 0x140042138
mov rcx, rbx
call fcn.1400101b0
mov qword [rbp + 0x28], rax
lea rax, str.Could_not_get_service_start_type
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x20], esi
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005e8eb]
mov rcx, rdi
call fcn.14000f868
and qword [rbp + 0x20], 0
mov r8d, 0x10
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.14000fa90
mov edi, eax
test eax, eax
jns 0x14004218d
cmp qword [rbx + 0x18], 8
jb 0x14004215f
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rbx
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x17c
call fcn.140016e78
jmp 0x140042249
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
nop dword [rax + rax]
test eax, eax
jne 0x140042202
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x420
jne 0x140042265
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 4
jbe 0x140042202
mov rcx, rbx
call fcn.1400101b0
mov qword [rbp + 0x28], rax
lea rax, str.Service_already_running
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005e928]
mov rcx, rdi
call fcn.140012440
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 4
jbe 0x140042247
mov rcx, rbx
call fcn.1400101b0
mov qword [rbp + 0x28], rax
lea rax, str.Successfully_started_service
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005e928]
mov rcx, rdi
call fcn.140012440
xor edi, edi
lea rcx, [rbp + 0x20]
call fcn.14001a1dc
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
cmp qword [rbx + 0x18], 8
jb 0x14004226f
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x20], rbx
lea r9, str.Fail_to_start_service__ws
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x18b
call fcn.140016eb8
mov edi, eax
jmp 0x140042249