Function at 0x14006d790
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1401339d8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
call fcn.140014190
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9, str.Service_Name___s
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
xor edx, edx
call fcn.14009cf00
xor r12d, r12d
mov ebx, r12d
mov qword [rbp - 0x49], rbx
mov r15d, r12d
call fcn.140014190
cmp byte [rax + 0x64], r15b
je 0x14006d845
lea ecx, [r12 + 0x28]
call fcn.140095e50
mov rbx, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14006d83b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
call fcn.140014190
mov rdx, rax
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov rcx, rbx
call fcn.140098570
mov rbx, rax
jmp 0x14006d83e
mov rbx, r12
mov qword [rbp - 0x49], rbx
mov r15, rbx
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x11], r12
mov qword [rbp - 1], r12
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r12w
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x59]
mov rcx, rdi
call fcn.140035a80
mov esi, eax
mov r14, qword [rbp - 0x51]
test eax, eax
jne 0x14006d95e
mov dword [rbp + 0xf], 1
mov dword [rbp + 0x13], 0x1d4c0
mov dword [rbp + 0x17], 1
mov dword [rbp + 0x1b], 0x3a980
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 0x57e40
mov dword [rbp - 0x41], 0xe10
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x29], 3
lea rax, [rbp + 0xf]
mov qword [rbp - 0x21], rax
mov esi, r12d
lea r8, [rbp - 0x41]
mov edx, 2
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14006d912
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
call fcn.140014190
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str.ChangeServiceConfig2__SERVICE_CONFIG_FAILURE_ACTIONS__failed_w_err_0x_08lx_n
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov edx, 5
call fcn.14009cf00
mov esi, 1
mov dword [rbp - 0x19], 1
lea r8, [rbp - 0x19]
mov edx, 4
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14006d95e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
call fcn.140014190
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str.ChangeServiceConfig2__SERVICE_CONFIG_FAILURE_ACTIONS_FLAG__failed_w_err_0x_08lx_n
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov edx, 5
call fcn.14009cf00
or esi, 0x10
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14006d96d
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test r14, r14
je 0x14006d97b
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
call fcn.140014190
mov rcx, rax
mov dword [rsp + 0x20], esi
lea r9, str.Return_Value___d
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov edx, 1
call fcn.14009cf00
nop
test r15, r15
je 0x14006d9ba
mov rcx, rbx
call fcn.140099040
mov edx, 0x28
mov rcx, rbx
call fcn.140095e90
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400964b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret