Function at 0x1400035f0
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push r14
sub rsp, 0xc0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140090750]
xor rax, rsp
mov qword [rsp + 0xb0], rax
call fcn.1400023d0
mov rcx, rax
lea rdi, str.LanWlanSwitchingService
mov qword [rsp + 0x20], rdi
lea r9, str.Service_Name___s
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
xor edx, edx
call fcn.14001c1e0
xor esi, esi
mov ebx, esi
mov qword [rsp + 0x38], rbx
call fcn.1400023d0
cmp byte [rax + 0x64], sil
je 0x140003693
lea ecx, [rsi + 0x28]
call fcn.14001e180
mov rbx, rax
mov qword [rsp + 0x48], rax
call fcn.1400023d0
mov rdx, rax
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov rcx, rbx
call fcn.140017870
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], 7
mov word [rsp + 0x78], si
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x1400036f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400023d0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str.OpenSCManager_failed_w_err_0x_08lx
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
lea edx, [r14 + 5]
call fcn.14001c1e0
lea esi, [r14 - 2]
jmp 0x140003883
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x14000376e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x140003753
lea esi, [rbp - 2]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400023d0
lea r9, str.OpenService_failed_w_err_0x_08lx
mov dword [rsp + 0x20], edi
mov rcx, rax
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov edx, 5
call fcn.14001c1e0
jmp 0x14000386c
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400023d0
lea r9, str.Service_does_not_exist._Error_0x_08lx
jmp 0x140003736
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x9c], 0x1d4c0
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0xa4], 0x3a980
mov dword [rsp + 0xa8], 1
mov dword [rsp + 0xac], 0x57e40
mov dword [rsp + 0x50], 0xe10
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x68], 3
lea rax, [rsp + 0x98]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x50]
mov edx, 2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14000381e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400023d0
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.14001c1e0
mov esi, 1
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14000386c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400023d0
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.14001c1e0
or esi, 0x10
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x140003883
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.1400023d0
mov rcx, rax
mov dword [rsp + 0x20], esi
lea r9, str.Return_Value___d
lea r8, str.Utils::SetServiceRestartRecoveryOnFailure
mov edx, 1
call fcn.14001c1e0
nop
test rbx, rbx
je 0x1400038c2
mov rcx, rbx
call fcn.140018310
mov edx, 0x28
mov rcx, rbx
call fcn.14001e178
mov eax, esi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14001da60
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret