Function at 0x140009b70
Capabilities:
Modify service

Disassembly:
push rbx
push rbp
push rdi
mov eax, 0x2080
call fcn.140014d20
sub rsp, rax
mov rax, qword [0x14008c320]
xor rax, rsp
mov qword [rsp + 0x2070], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140009bf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x10]
lea rdi, str.Failed_to_open_SCM._Error__lu
mov dword [rsp + 0x28], eax
lea r9d, [rbp + 1]
mov r8d, 0xfe
mov qword [rsp + 0x20], rdi
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
call fcn.140012d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea ecx, [rbp + 0x15]
mov r8d, eax
call fcn.140004740
jmp 0x140009e19
lea rdi, [rbx + 0x3a0]
mov qword [rsp + 0x20a8], rsi
mov rdx, rdi
mov r8d, 3
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140009c73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x10]
lea rsi, str.Failed_to_open_service__S._Error__lu
mov dword [rsp + 0x30], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
mov qword [rsp + 0x28], rdi
mov r9d, 1
mov r8d, 0x109
mov qword [rsp + 0x20], rsi
call fcn.140012d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
mov rdx, rsi
mov r9d, eax
mov ecx, 0x16
call fcn.140004740
jmp 0x140009e08
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20b0], r14
mov r8d, 0x2000
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x140009cdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x10]
lea r14, str.Failed_to_query_service_configuration_for__S._Error__lu
mov dword [rsp + 0x30], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
mov qword [rsp + 0x28], rdi
mov r9d, 1
mov r8d, 0x11a
mov qword [rsp + 0x20], r14
call fcn.140012d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x17
jmp 0x140009de9
mov rax, qword [rsp + 0x74]
cmp eax, 3
je 0x140009d1f
mov rcx, qword [rbx + 0x10]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
mov dword [rsp + 0x30], eax
mov r9d, 3
lea rax, str.Leaving_service__S_start_type__lu_unchanged
mov qword [rsp + 0x28], rdi
mov r8d, 0x122
mov qword [rsp + 0x20], rax
call fcn.140012d40
jmp 0x140009df7
mov r9d, dword [rsp + 0x78]
xor eax, eax
mov edx, dword [rsp + 0x70]
mov rcx, rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea r8d, [rax + 2]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x140009da7
mov rcx, qword [rbx + 0x10]
lea rax, str.Changed_service__S_start_type_to_auto_start
mov qword [rsp + 0x28], rdi
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
mov r9d, 3
mov qword [rsp + 0x20], rax
mov r8d, 0x134
call fcn.140012d40
mov edx, 0x200
mov rcx, rbx
call fcn.14000aa30
mov edx, 0x100
mov rcx, rbx
call fcn.14000aa30
jmp 0x140009df7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x10]
lea r14, str.Failed_to_change_service_to_auto_start_for__S._Error__lu
mov dword [rsp + 0x30], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
mov qword [rsp + 0x28], rdi
mov r9d, 1
mov r8d, 0x144
mov qword [rsp + 0x20], r14
call fcn.140012d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov r9d, eax
mov r8, rdi
mov rdx, r14
call fcn.140004740
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x20b0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x20a8]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.1400141d0
add rsp, 0x2080
pop rdi
pop rbp
pop rbx
ret