Function at 0x1402a69c0
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 [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12d, r12d
mov rdi, rcx
cmp qword [rcx + 0x10], r12
jne 0x1402a69fd
call fcn.140298678
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.1402a6f38
or r13, 0xffffffffffffffff
mov dword [rbp - 0x31], eax
lea r15, [0x14030cae0]
test eax, eax
js 0x1402a6afc
cmp dword [rbp - 0x39], 4
jne 0x1402a6b92
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402a6aab
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 0x1402a6a58
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x1402a6a73
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1402a6a69
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, [0x1403a3f04]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001158
mov edx, 3
mov rcx, rdi
call fcn.1402a6d78
mov ebx, eax
test eax, eax
jns 0x1402a6b92
cmp qword [rdi + 0x18], 8
jb 0x1402a6acc
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, 0x151
call fcn.14016b7bc
mov eax, ebx
jmp 0x1402a6d1e
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x1402a6b92
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 0x1402a6b3f
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x1402a6b5a
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1402a6b50
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, [0x1403a3f35]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rbp - 0x39], r12
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.1402a63f4
mov rbx, qword [rbp - 0x39]
mov esi, eax
test eax, eax
jns 0x1402a6bea
cmp qword [rdi + 0x18], 8
jb 0x1402a6bbc
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, 0x15b
call fcn.14016b7bc
jmp 0x1402a6d0e
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 0x1402a6c93
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x420
jne 0x1402a6d46
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402a6c93
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 0x1402a6c40
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x1402a6c5b
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1402a6c51
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, [0x1403a3f04]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001158
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x1402a6d0b
cmp qword [rdi + 0x18], 8
lea rax, str.Successfully_started_service
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x3a
jb 0x1402a6cbe
mov rdi, qword [rdi]
mov rax, r12
test rdi, rdi
je 0x1402a6cd6
mov r15, rdi
mov rax, r13
inc rax
cmp word [rdi + rax*2], r12w
jne 0x1402a6ccc
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, [0x1403a3f04]
xor r8d, r8d
mov dword [rsp + 0x20], 4
call fcn.140001158
mov esi, r12d
test rbx, rbx
je 0x1402a6d1c
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.1402ae860
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 0x1402a6d50
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, 0x16a
call fcn.1401ea930
mov esi, eax
jmp 0x1402a6d0e