Function at 0x140041cd0
Capabilities:
Start service

Disassembly:
mov rcx, rdx
jmp 0x140041cd0
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 0x140041cf8
call fcn.14003f47c
and dword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
mov rcx, rbx
call fcn.1400416d0
mov esi, eax
test eax, eax
js 0x140041da9
cmp dword [rbp + 0x20], 4
jne 0x140041dfa
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 4
jbe 0x140041d61
mov rcx, rbx
call fcn.140009b30
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, [0x14005e43a]
mov rcx, rdi
call fcn.14000d994
mov rcx, rbx
call fcn.140041b58
mov edi, eax
test eax, eax
jns 0x140041dfa
mov rcx, rbx
call fcn.140009b30
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rax
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, 0x155
call fcn.140012a04
jmp 0x140041f12
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 2
jbe 0x140041dfa
mov rcx, rbx
call fcn.140009b30
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, [0x14005e3fd]
mov rcx, rdi
call fcn.14000cee0
and qword [rbp + 0x20], 0
mov r8d, 0x10
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.140011abc
mov edi, eax
test eax, eax
jns 0x140041e4d
mov rcx, rbx
call fcn.140009b30
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rax
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, 0x15f
call fcn.140012a04
jmp 0x140041f09
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 0x140041ec2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x420
jne 0x140041f25
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 4
jbe 0x140041ec2
mov rcx, rbx
call fcn.140009b30
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, [0x14005e43a]
mov rcx, rdi
call fcn.14000d994
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 4
jbe 0x140041f07
mov rcx, rbx
call fcn.140009b30
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, [0x14005e43a]
mov rcx, rdi
call fcn.14000d994
xor edi, edi
lea rcx, [rbp + 0x20]
call fcn.140015940
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140009b30
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r9, str.Fail_to_start_service__ws
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x16e
call fcn.140012a44
mov edi, eax
jmp 0x140041f09