Function at 0x140004c90
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, str.Service::install
mov ecx, 0x1000
call fcn.1400067d0
xor r14d, r14d
mov edi, r14d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140004d2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, str.Service::install___line_162_:_failed_to_connect_to_SCM__error_d
lea rdx, str.failed_to_connect_to_SCM__error_d
cmp byte [0x14001efcb], dil
cmovne rdx, rax
mov ecx, 0x10
call fcn.1400067d0
mov eax, 0x427
jmp 0x14000501a
mov r8d, 0xf01ff
lea rdx, str.FvSvc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004d91
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140005120
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140004d91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, str.Service::install___line_183_:_failed_to_re_connect_to_SCM_after_uninstall__error_d
lea rdx, str.failed_to_re_connect_to_SCM_after_uninstall__error_d
jmp 0x140004d0c
lea r15, str.FrameView_SDK_service
mov qword [rsp + 0x78], r15
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
or rbx, 0xffffffffffffffff
cmp word [rsp + 0xa0], 0
jne 0x140004df9
mov r8, r14
jmp 0x140004e0f
lea rax, [rsp + 0xa0]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x140004e04
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call fcn.140005c70
mov r8d, 1
lea rdx, [0x140014c38]
lea rcx, [rsp + 0x80]
call fcn.140005c70
lea rdx, str._service
cmp word [str._service], 0
jne 0x140004e54
mov rbx, r14
jmp 0x140004e5e
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140004e54
mov r8, rbx
lea rcx, [rsp + 0x80]
call fcn.140005c70
mov ebx, 0xa
dec ebx
lea rax, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 2
mov r8, r15
lea rdx, str.FvSvc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140004f33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add eax, 0xfffffbd0
cmp eax, 1
ja 0x140004f0b
lea ecx, [rsi + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x140004e73
jmp 0x140004f81
lea rax, str.Service::install___line_230_:_CreateService_failed__error_d
lea rdx, str.CreateService_failed__error_d
cmp byte [0x14001efcb], 0
cmovne rdx, rax
mov r8d, edi
mov ecx, 0x10
call fcn.1400067d0
jmp 0x140004f81
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140004f78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, str.Service::install___line_241_:_ChangeServiceConfig2_failed_to_setup_description__error_d
lea rdx, str.ChangeServiceConfig2_failed_to_setup_description__error_d
cmp byte [0x14001efcb], 0
cmovne rdx, rax
mov r8d, edi
mov ecx, 0x10
call fcn.1400067d0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [rdi - 0x430]
cmp eax, 1
cmovbe edi, r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rax, qword [rsp + 0x98]
cmp rax, 8
jb 0x140005018
inc rax
mov rcx, qword [rsp + 0x80]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x140004fc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140005013
test byte [rsp + 0x80], 0x1f
je 0x140004fe3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004ff3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140005003
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140005010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140011a78
mov eax, edi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400115c0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret