Function at 0x140050a1c
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x190
mov qword [rsp + 0x188], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
lea rbp, [rax - 0x138]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rsi, rdx
mov r15, rcx
lea r12, str..._nsService.cpp
mov rdx, r12
lea rcx, [rbp + 0x60]
call fcn.140009aa8
nop
lea r14, [r15 + 0x40]
mov rbx, qword [r14]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0x602
lea rdx, str.RemoveServiceDependency___s:_d_
mov rcx, r14
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
lea rdx, [r15 + 0x10]
mov r8b, 1
lea rcx, [rbp + 0x20]
call fcn.140022a08
nop
mov rax, qword [r15]
mov rcx, r15
call qword [rax + pe_nt_image_headers64]
mov rdx, r12
lea rcx, [rbp + 0x60]
call fcn.140009aa8
nop
mov rdi, qword [r14]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rbx, rax
mov r8, qword [rsi]
mov rcx, rsi
call qword [r8 + 0x1f0]
mov r8, rax
mov dword [rsp + 0x20], 0x607
mov r9, rbx
lea rdx, str.Name_s___s:_d_
mov rcx, r14
call qword [rdi + 0x140]
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
lea rbx, [r15 + 0x2d8]
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp]
call fcn.14004e4a0
mov r8, qword [rbp]
cmp r8, qword [rbx + 8]
je 0x140050cd1
lea rdx, [rbp]
mov rcx, rbx
call fcn.14001a7cc
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14000fe24
mov rbx, rax
lea rcx, [r15 + 0x2f0]
call fcn.14004cbe8
mov rdi, qword [rax + 8]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x1e8]
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
or edx, 0xffffffff
mov r9d, edx
mov r8d, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
sete bl
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
test bl, bl
je 0x140050cd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rdx, r12
lea rcx, [rbp + 0x60]
call fcn.140009aa8
nop
mov rdi, qword [r14]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rbx, rax
mov ecx, esi
call fcn.140023e14
mov r8d, eax
mov dword [rsp + 0x20], 0x61c
mov r9, rbx
lea rdx, str.ChangeServiceConfig0x_x___s:_d_
mov rcx, r14
call qword [rdi + 0x130]
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], r15
mov word [rbp + 0x60], r15w
cmp word [0x1400a6650], r15w
jne 0x140050c3e
mov eax, r15d
jmp 0x140050c4a
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0x60]
call fcn.1400045d0
nop
mov qword [rbp + 0x98], 0xf
mov qword [rbp + 0x90], r15
mov byte [rbp + 0x80], r15b
mov rcx, r12
call fcn.1400657f0
mov r8, rax
mov rdx, r12
lea rcx, [rbp + 0x80]
call fcn.140004720
nop
mov ecx, esi
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x61d
lea r8, [rbp + 0x80]
lea rcx, [rbp + 0xa0]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0xa0]
call fcn.14005ba94
nop
lea rcx, [rbp + 0x20]
call fcn.140022a60
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140058630
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret