Function at 0x1400505f8
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 [0x1400c9118]
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, 0x605
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.140022784
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], 0x60a
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.14004e0a4
mov r8, qword [rbp]
cmp r8, qword [rbx + 8]
je 0x1400508ad
lea rdx, [rbp]
mov rcx, rbx
call fcn.14001a7a0
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14000fe68
mov rbx, rax
lea rcx, [r15 + 0x2f0]
call fcn.14004c808
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 0x1400508ad
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.140023b78
mov r8d, eax
mov dword [rsp + 0x20], 0x61f
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 [0x1400a54e0], r15w
jne 0x14005081a
mov eax, r15d
jmp 0x140050826
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
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.1400653e0
mov r8, rax
mov rdx, r12
lea rcx, [rbp + 0x80]
call fcn.140004720
nop
mov ecx, esi
call fcn.140023b78
mov edx, eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x620
lea r8, [rbp + 0x80]
lea rcx, [rbp + 0xa0]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp + 0xa0]
call fcn.14005b684
nop
lea rcx, [rbp + 0x20]
call fcn.1400227dc
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140058200
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