Function at 0x1402719c4
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 [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rdx, [rbp - 0x39]
mov rdi, rcx
call fcn.140271f2c
or r13, 0xffffffffffffffff
mov dword [rbp - 0x31], eax
xor r12d, r12d
lea r15, [0x1402cb810]
test eax, eax
js 0x140271af2
cmp dword [rbp - 0x39], 4
jne 0x140271b88
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140271aa1
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 0x140271a4e
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x140271a69
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140271a5f
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, [0x14035418e]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001078
mov edx, 3
mov rcx, rdi
call fcn.140271d6c
mov ebx, eax
test eax, eax
jns 0x140271b88
cmp qword [rdi + 0x18], 8
jb 0x140271ac2
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, 0x64
call fcn.14006982c
mov eax, ebx
jmp 0x140271d14
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140271b88
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 0x140271b35
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x140271b50
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140271b46
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, [0x140354115]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rbp - 0x39], r12
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.1402714a0
mov rbx, qword [rbp - 0x39]
mov esi, eax
test eax, eax
jns 0x140271be0
cmp qword [rdi + 0x18], 8
jb 0x140271bb2
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, 0x6e
call fcn.14006982c
jmp 0x140271d04
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x140271c89
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x420
jne 0x140271d3c
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140271c89
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 0x140271c36
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x140271c51
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140271c47
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, [0x14035418e]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001078
call fcn.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x140271d01
cmp qword [rdi + 0x18], 8
lea rax, str.Successfully_started_service
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x3a
jb 0x140271cb4
mov rdi, qword [rdi]
mov rax, r12
test rdi, rdi
je 0x140271ccc
mov r15, rdi
mov rax, r13
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140271cc2
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, [0x14035418e]
xor r8d, r8d
mov dword [rsp + 0x20], 4
call fcn.140001078
mov esi, r12d
test rbx, rbx
je 0x140271d12
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14027a710
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 0x140271d46
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, 0x7d
call fcn.1401d35cc
mov esi, eax
jmp 0x140271d04