Function at 0x14028e23c
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12d, r12d
mov rdi, rcx
cmp qword [rcx + 0x10], r12
jne 0x14028e279
call fcn.140329e68
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.14028e7e0
or r13, 0xffffffffffffffff
mov dword [rbp - 0x31], eax
lea r15, [0x1403cb630]
test eax, eax
js 0x14028e378
cmp dword [rbp - 0x39], 4
jne 0x14028e40e
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14028e327
cmp qword [rdi + 0x18], 8
lea rax, str.Cannot_start_disabled_service___enable
mov qword [rbp - 9], rax
mov rax, rdi
mov qword [rbp - 1], 0x4e
jb 0x14028e2d4
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x14028e2ef
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14028e2e5
lea eax, [rcx*2 + 2]
mov qword [rbp + 7], rdx
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], r12d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140486688]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001208
mov edx, 3
mov rcx, rdi
call fcn.14028e60c
mov ebx, eax
test eax, eax
jns 0x14028e40e
cmp qword [rdi + 0x18], 8
jb 0x14028e348
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_change_the_start_type_of_disabled_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov edx, 0x165
call fcn.14018588c
mov eax, ebx
jmp 0x14028e5ac
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x14028e40e
cmp qword [rdi + 0x18], 8
lea rax, [rbp - 0x31]
mov qword [rbp - 9], rax
lea rax, str.Could_not_get_service_start_type
mov qword [rbp + 7], rax
mov rax, rdi
mov qword [rbp - 1], 4
mov qword [rbp + 0xf], 0x42
jb 0x14028e3bb
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x14028e3d6
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14028e3cc
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r12d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140486764]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rbp - 0x39], r12
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14028dc1c
mov rbx, qword [rbp - 0x39]
mov esi, eax
test eax, eax
jns 0x14028e466
cmp qword [rdi + 0x18], 8
jb 0x14028e438
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, 0x16f
call fcn.14018588c
jmp 0x14028e596
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
nop dword [rax + rax]
test eax, eax
jne 0x14028e51b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x420
jne 0x14028e5d4
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14028e51b
cmp qword [rdi + 0x18], 8
lea rax, str.Service_already_running
mov qword [rbp - 9], rax
mov rax, rdi
mov qword [rbp - 1], 0x30
jb 0x14028e4c8
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x14028e4e3
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14028e4d9
lea eax, [rcx*2 + 2]
mov qword [rbp + 7], rdx
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], r12d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140486688]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001208
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x14028e593
cmp qword [rdi + 0x18], 8
lea rax, str.Successfully_started_service
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x3a
jb 0x14028e546
mov rdi, qword [rdi]
mov rax, r12
test rdi, rdi
je 0x14028e55e
mov r15, rdi
mov rax, r13
inc rax
cmp word [rdi + rax*2], r12w
jne 0x14028e554
lea eax, [rax*2 + 2]
mov qword [rbp + 7], r15
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], r12d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140486688]
xor r8d, r8d
mov dword [rsp + 0x20], 4
call fcn.140001208
mov esi, r12d
test rbx, rbx
je 0x14028e5aa
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
cmp qword [rdi + 0x18], 8
jb 0x14028e5de
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea r9, str.Fail_to_start_service__ws
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov qword [rsp + 0x20], rdi
mov edx, 0x17e
call fcn.1402297e4
mov esi, eax
jmp 0x14028e596