Function at 0x140010ec0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2f0
mov rax, qword [0x14009d2d0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0xd0]
call fcn.1400464e0
mov r8d, 0x104
lea rdx, [rsp + 0xd2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140011103
cmp eax, 0x104
je 0x140011103
mov r8d, 0x22
mov word [rsp + 0xd0], r8w
lea ecx, [rax + 1]
mov word [rsp + rcx*2 + 0xd0], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140011174
xor esi, esi
mov word [rsp + rcx + 0xd0], si
mov rcx, rdi
call fcn.140011290
test eax, eax
jne 0x14001114f
mov r8d, 0xf01ff
mov rdx, qword [rdi]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x140010fdb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea ecx, [rsi + 5]
call fcn.14002bb50
test eax, eax
je 0x140010fd6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_call_OpenService__error_code___d
mov qword [rsp + 0x20], rax
mov r9d, 0x135
lea r8, str.SecurityCenter::CMSCServiceInstallerLogic_class_SecurityCenter::CMSCServiceTypedefs_class_SecurityCenter::CMSCServiceDep_::UpdateServiceSettings
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExeMSCServiceInstaller.h
lea ecx, [rsi + 5]
call fcn.140001f30
nop
jmp 0x14001114f
mov qword [rsp + 0x80], 0xffffffffffffffff
mov rax, qword [rdi + 0x10]
mov r8, qword [rsp + 0x80]
shr r8, 0x20
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
mov edx, 0xffffffff
mov r9d, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140011083
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov ecx, 5
call fcn.14002bb50
test eax, eax
je 0x140011083
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_call_ChangeServiceConfig_when_setting_service_dependency__error_code___d
mov qword [rsp + 0x20], rax
mov r9d, 0x148
lea r8, str.SecurityCenter::CMSCServiceInstallerLogic_class_SecurityCenter::CMSCServiceTypedefs_class_SecurityCenter::CMSCServiceDep_::UpdateServiceSettings
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExeMSCServiceInstaller.h
mov ecx, 5
call fcn.140001f30
mov rdx, rbx
call fcn.140011180
mov rax, qword [rdi + 8]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1400110f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov ecx, 5
call fcn.14002bb50
test eax, eax
je 0x1400110f8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_call_ChangeServiceConfig2_when_setting_service_Description__error_code___d
mov qword [rsp + 0x20], rax
mov r9d, 0x198
lea r8, str.SecurityCenter::CMSCServiceInstallerLogic_class_SecurityCenter::CMSCServiceTypedefs_class_SecurityCenter::CMSCServiceDep_::SetServiceDescription
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExeMSCServiceInstaller.h
mov ecx, 5
call fcn.140001f30
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001114f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov ecx, 5
call fcn.14002bb50
test eax, eax
je 0x14001114f
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_call_GetModuleFileNameW__error_code___d
mov qword [rsp + 0x20], rax
mov r9d, 0x123
lea r8, str.SecurityCenter::CMSCServiceInstallerLogic_class_SecurityCenter::CMSCServiceTypedefs_class_SecurityCenter::CMSCServiceDep_::UpdateServiceSettings
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExeMSCServiceInstaller.h
mov ecx, 5
call fcn.140001f30
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140043760
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140043914
int3