Function at 0x14024f99c
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 [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12d, r12d
mov rdi, rcx
cmp qword [rcx + 0x10], r12
jne 0x14024f9d9
call fcn.1402b9bb8
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.14024ff14
or r13, 0xffffffffffffffff
mov dword [rbp - 0x31], eax
lea r15, [0x140344690]
test eax, eax
js 0x14024fad8
cmp dword [rbp - 0x39], 4
jne 0x14024fb6e
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14024fa87
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 0x14024fa34
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x14024fa4f
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14024fa45
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, [0x1403e1ab9]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001158
mov edx, 3
mov rcx, rdi
call fcn.14024fd54
mov ebx, eax
test eax, eax
jns 0x14024fb6e
cmp qword [rdi + 0x18], 8
jb 0x14024faa8
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.140177750
mov eax, ebx
jmp 0x14024fcfa
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x14024fb6e
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 0x14024fb1b
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x14024fb36
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14024fb2c
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, [0x1403e1b9e]
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.14024f3dc
mov rbx, qword [rbp - 0x39]
mov esi, eax
test eax, eax
jns 0x14024fbc6
cmp qword [rdi + 0x18], 8
jb 0x14024fb98
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.140177750
jmp 0x14024fcea
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 0x14024fc6f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x420
jne 0x14024fd22
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14024fc6f
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 0x14024fc1c
mov rax, qword [rdi]
mov rdx, r15
mov rcx, r12
test rax, rax
je 0x14024fc37
mov rdx, rax
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14024fc2d
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, [0x1403e1ab9]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001158
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x14024fce7
cmp qword [rdi + 0x18], 8
lea rax, str.Successfully_started_service
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x3a
jb 0x14024fc9a
mov rdi, qword [rdi]
mov rax, r12
test rdi, rdi
je 0x14024fcb2
mov r15, rdi
mov rax, r13
inc rax
cmp word [rdi + rax*2], r12w
jne 0x14024fca8
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, [0x1403e1ab9]
xor r8d, r8d
mov dword [rsp + 0x20], 4
call fcn.140001158
mov esi, r12d
test rbx, rbx
je 0x14024fcf8
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.1402dfdb0
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 0x14024fd2c
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.1401ff8d0
mov esi, eax
jmp 0x14024fcea