Function at 0x140021800
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400a6188]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9, str.Service_Name___s
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
xor edx, edx
call fcn.14002c750
xor r12d, r12d
mov ebx, r12d
mov qword [rbp - 0x49], rbx
call fcn.140010cf0
mov esi, r12d
cmp byte [rax + 0x64], sil
je 0x1400218c2
lea ecx, [r12 + 0x28]
call fcn.140025d40
mov rbx, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x1400218b8
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
call fcn.140010cf0
mov rdx, rax
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov rcx, rbx
call fcn.140027d20
mov rbx, rax
jmp 0x1400218bb
mov rbx, r12
mov qword [rbp - 0x49], rbx
mov rsi, rbx
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r12
movdqa xmm0, xmmword [0x1400739d0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r12w
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x59]
mov rcx, rdi
call fcn.1400163b0
mov r14d, eax
mov r15, qword [rbp - 0x51]
test eax, eax
jne 0x1400219db
mov dword [rbp + 0x17], 1
mov dword [rbp + 0x1b], 0x1d4c0
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 0x3a980
mov dword [rbp + 0x27], 1
mov dword [rbp + 0x2b], 0x57e40
mov dword [rbp - 0x39], 0xe10
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov dword [rbp - 0x21], 3
lea rax, [rbp + 0x17]
mov qword [rbp - 0x19], rax
mov r14d, r12d
lea r8, [rbp - 0x39]
mov edx, 2
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14002198e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
call fcn.140010cf0
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.14002c750
mov r14d, 1
mov dword [rbp - 0x11], 1
lea r8, [rbp - 0x11]
mov edx, 4
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1400219db
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
call fcn.140010cf0
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.14002c750
or r14d, 0x10
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1400219ea
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test r15, r15
je 0x1400219f8
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x20], r14d
lea r9, str.Return_Value___d
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov edx, 1
call fcn.14002c750
nop
test rsi, rsi
je 0x140021a38
mov rcx, rbx
call fcn.1400287c0
mov edx, 0x28
mov rcx, rbx
call fcn.140025d80
mov eax, r14d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400264a0
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