Function at 0x1400f5d50
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400f5e18
cmp dword [0x140274810], 2
jl 0x1400f5da9
test dword [0x14027485c], 0x10000
je 0x1400f5da9
lea ebx, [rax + 1]
jmp 0x1400f5dab
xor ebx, ebx
mov edx, 2
mov ecx, 0x10000
call fcn.1400e1c40
mov edi, eax
test ebx, ebx
jne 0x1400f5dc8
test eax, eax
je 0x1400f6023
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x40], eax
lea r14, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_service.c
lea rax, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
mov r9d, 2
mov qword [rsp + 0x38], rax
lea r15, str.update_service_failure_actions
mov dword [rsp + 0x30], 0x359
mov r8d, 0x10000
mov qword [rsp + 0x28], r14
mov edx, edi
mov ecx, ebx
mov qword [rsp + 0x20], r15
call fcn.1400ba210
jmp 0x1400f6023
mov r8d, 0xf01ff
mov qword [rsp + 0xb8], rsi
lea rdx, str.esifsvc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x1400f5ecb
cmp dword [0x140274810], 2
jl 0x1400f5e5c
test dword [0x14027485c], 0x10000
je 0x1400f5e5c
lea ebx, [rax + 1]
jmp 0x1400f5e5e
xor ebx, ebx
mov edx, 2
mov ecx, 0x10000
call fcn.1400e1c40
mov esi, eax
test ebx, ebx
jne 0x1400f5e7b
test eax, eax
je 0x1400f6012
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x40], eax
lea r14, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_service.c
lea rax, str.Error:_Unable_to_open_service_handle._Status___d_n
mov r9d, 2
mov qword [rsp + 0x38], rax
lea r15, str.update_service_failure_actions
mov dword [rsp + 0x30], 0x362
mov r8d, 0x10000
mov qword [rsp + 0x28], r14
mov edx, esi
mov ecx, ebx
mov qword [rsp + 0x20], r15
call fcn.1400ba210
jmp 0x1400f6012
mov ebx, 1
mov dword [rsp + 0x7c], 0x1388
lea rax, [rsp + 0x78]
mov dword [rsp + 0x78], ebx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0xffffffff
mov rcx, rsi
mov qword [rsp + 0x60], 0
lea edx, [rbx + 1]
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfig2W]
lea r14, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_service.c
lea r15, str.update_service_failure_actions
test eax, eax
jne 0x1400f5f9c
cmp dword [0x140274810], 2
mov qword [rsp + 0xb0], rbp
jl 0x1400f5f48
test dword [0x14027485c], 0x10000
je 0x1400f5f48
mov ebp, ebx
jmp 0x1400f5f4a
xor ebp, ebp
mov edx, 2
mov ecx, 0x10000
call fcn.1400e1c40
test ebp, ebp
jne 0x1400f5f61
test eax, eax
je 0x1400f5f94
lea rcx, str.Error:_Unable_to_update_service_failure_actions._n
mov r9d, 2
mov qword [rsp + 0x38], rcx
mov r8d, 0x10000
mov dword [rsp + 0x30], 0x376
mov edx, eax
mov qword [rsp + 0x28], r14
mov ecx, ebp
mov qword [rsp + 0x20], r15
call fcn.1400ba210
mov rbp, qword [rsp + 0xb0]
cmp dword [0x140274810], 2
jl 0x1400f5fb1
test dword [0x14027485c], 0x10000
jne 0x1400f5fb3
xor ebx, ebx
mov edx, 2
mov ecx, 0x10000
call fcn.1400e1c40
test ebx, ebx
jne 0x1400f5fca
test eax, eax
je 0x1400f6009
lea rcx, [0x140233bd0]
mov r9d, 2
mov qword [rsp + 0x40], rcx
mov r8d, 0x10000
lea rcx, str._S_service_failure_actions_successfully_updated._n
mov edx, eax
mov qword [rsp + 0x38], rcx
mov ecx, ebx
mov dword [rsp + 0x30], 0x37c
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.1400ba210
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140100920
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop rdi
ret