Function at 0x140010d00
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1d0
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140084220]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x60], edi
xor eax, eax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rdi
mov r14d, edi
mov dword [rbp + 0x90], edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea rdx, [rbx + 0x68]
mov r8d, 0xf003f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r13, rax
lea rax, [0x140062260]
mov qword [rsp + 0x68], rax
lea rax, [0x140062268]
mov qword [rsp + 0x78], rax
mov esi, 1
mov dword [rsp + 0x60], esi
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
mov dword [rbp + 4], 0x88
mov qword [rsp + 0x70], rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 8]
call fcn.140005d60
nop
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x78], rax
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x74], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x64], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x64], edx
lea rcx, [rbp - 0x80]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x64], edx
mov dword [rbp - 8], 0x64
lea rdx, str.ReconfigureService__
lea rcx, [rsp + 0x78]
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp + 8]
call fcn.140008370
lea r12, vtable.std::ios_base.0
mov qword [rbp + 8], r12
lea rcx, [rbp + 8]
call fcn.140027088
lea r9, [rbp + 0x90]
xor edx, edx
lea r8d, [rdi + 0x40]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x140011502
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140011502
mov eax, dword [rbp + 0x90]
lea ebx, [rax + 0x40]
mov edx, eax
lea rcx, [rbp + 0x70]
call fcn.1400155a0
lea r9, [rbp + 0x90]
mov r8d, ebx
mov rbx, qword [rbp + 0x70]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea r15, [0x140062260]
test eax, eax
jne 0x140011070
mov qword [rsp + 0x68], r15
lea rax, [0x140062268]
mov qword [rsp + 0x78], rax
mov esi, 0x21
mov dword [rsp + 0x60], esi
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
mov dword [rbp + 4], 0x88
mov qword [rsp + 0x70], rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 8]
call fcn.140005d60
nop
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x78], rax
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x74], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x64], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x64], edx
lea rcx, [rbp - 0x80]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x64], edx
mov dword [rbp - 8], 0xa
lea rdx, str.error_QueryServiceConfig
lea rcx, [rsp + 0x78]
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp + 8]
call fcn.140008370
mov qword [rbp + 8], r12
lea rcx, [rbp + 8]
call fcn.140027088
test rbx, rbx
je 0x140011506
mov qword [rsp + 0x68], r15
lea rax, [0x140062268]
mov qword [rsp + 0x78], rax
bts esi, 0xa
mov dword [rsp + 0x60], esi
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
mov dword [rbp + 4], 0x88
mov qword [rsp + 0x70], rdi
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x10], rdi
mov dword [rbp + 0x1c], edi
mov dword [rbp + 0x20], 0x201
movdqa xmm0, xmmword [reloc.OLEAUT32.dll_SysStringLen]
movdqu xmmword [rbp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x38], xmm1
mov dword [rbp + 0x18], edi
mov ecx, 8
call fcn.1400275b0
mov r15, rax
test rax, rax
je 0x1400110f6
xor eax, eax
mov qword [r15], rax
mov cl, 1
call fcn.140026d20
mov qword [r15], rax
jmp 0x1400110f9
mov r15, rdi
mov qword [rbp + 0x48], r15
lea rax, [rbp - 0x80]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdi
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 8]
call fcn.140005d30
nop
mov rcx, rax
call fcn.140001850
mov r15, rax
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x140011144
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x140011144
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [r15]
mov dl, 0x20
mov rcx, r15
call qword [rax + 0x60]
mov word [rbp + 0x60], ax
cmp qword [rbp + 0x50], 0
jne 0x14001116d
mov edx, dword [rbp + 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp + 8]
call fcn.140005560
nop
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x78], rax
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x74], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x64], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x64], edx
lea rcx, [rbp - 0x80]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x64], edx
mov dword [rbp - 8], 0xa
lea rdx, str.Current_startup_type
lea rcx, [rsp + 0x78]
call fcn.140001460
mov rcx, rax
mov edx, dword [rbx + 4]
call fcn.1400086c0
mov r15, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r15
lea rdx, [rsp + 0x60]
call fcn.140005d30
nop
mov rcx, rax
call fcn.140001850
mov r12, rax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001128c
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001128c
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [r12]
mov dl, 0xa
mov rcx, r12
call qword [rax + 0x60]
movzx edx, ax
mov rcx, r15
call fcn.14000c170
mov rcx, r15
call fcn.140005c60
nop
lea rcx, [rbp + 8]
call fcn.140008370
lea r12, vtable.std::ios_base.0
mov qword [rbp + 8], r12
lea rcx, [rbp + 8]
call fcn.140027088
mov eax, dword [rbx + 4]
sub eax, 3
cmp eax, 1
jbe 0x14001150c
lea rax, [0x140062260]
mov qword [rsp + 0x68], rax
lea rax, [0x140062268]
mov qword [rsp + 0x78], rax
bts esi, 0xf
mov dword [rsp + 0x60], esi
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
mov dword [rbp + 4], 0x88
mov qword [rsp + 0x70], rdi
lea rcx, [rbp + 8]
call fcn.140004e10
lea rax, [rbp - 0x80]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdi
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 8]
call fcn.140005d30
nop
mov rcx, rax
call fcn.140001850
mov r15, rax
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x14001135f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001135f
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [r15]
mov dl, 0x20
mov rcx, r15
call qword [rax + 0x60]
mov word [rbp + 0x60], ax
cmp qword [rbp + 0x50], 0
jne 0x140011388
mov edx, dword [rbp + 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp + 8]
call fcn.140005560
nop
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x78], rax
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x74], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x64], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x64], edx
lea rcx, [rbp - 0x80]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x64], edx
mov dword [rbp - 8], 0x64
lea rdx, [0x140064250]
lea rcx, [rsp + 0x78]
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp + 8]
call fcn.140008370
mov qword [rbp + 8], r12
lea rcx, [rbp + 8]
call fcn.140027088
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, str.RPCSS
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8d, 3
or edx, r9d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14001150c
lea edx, [rax + 1]
lea rcx, [rsp + 0x68]
call fcn.140001ed0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.Changing_startup_type_to_SERVICE_DEMAND_START_Failed
call fcn.140001460
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp + 8]
call fcn.140008370
mov qword [rbp + 8], r12
lea rcx, [rbp + 8]
call fcn.140027088
jmp 0x140011506
mov rbx, qword [rbp + 0x70]
mov r14d, 0x80004005
lea rax, [0x140062260]
mov qword [rsp + 0x68], rax
lea rax, [0x140062268]
mov qword [rsp + 0x78], rax
bts esi, 0x14
mov dword [rsp + 0x60], esi
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
mov dword [rbp + 4], 0x88
mov qword [rsp + 0x70], rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 8]
call fcn.140005d60
nop
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x78], rax
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x74], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x64], edx
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x64], edx
lea rcx, [rbp - 0x80]
call fcn.140001a90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x64], edx
mov dword [rbp - 8], 0x64
lea rdx, str.ReconfigureStartup___done:
lea rcx, [rsp + 0x78]
call fcn.140001460
mov rcx, rax
test rax, rax
je 0x140011634
mov rax, qword [rax]
movsxd rdi, dword [rax + 4]
add rdi, rcx
and dword [rdi + 0x18], 0xfffff9ff
or dword [rdi + 0x18], 0x800
mov edx, r14d
call fcn.14000ceb0
mov rcx, rax
call fcn.14000ca60
nop
lea rcx, [rbp + 8]
call fcn.140008370
mov qword [rbp + 8], r12
lea rcx, [rbp + 8]
call fcn.140027088
nop
test rbx, rbx
je 0x140011677
mov rcx, rbx
call fcn.14002757c
mov eax, r14d
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140028900
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret