Function at 0x14005115c
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rax - 0x128]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov r14, rdx
mov rsi, rcx
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
lea r12, [rsi + 0x40]
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0xe3
lea rdx, str.SetDisplayName___s:_d_
mov rcx, r12
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rdx, [rsi + 0x10]
mov r8b, 1
lea rcx, [rbp]
call fcn.140022a08
nop
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + pe_nt_image_headers64]
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rdi, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rbx, rax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x1f0]
mov r8, rax
mov dword [rsp + 0x20], 0xe8
mov r9, rbx
lea rdx, str.DisplayName_s___s:_d_
mov rcx, r12
call qword [rdi + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rcx, [rsi + 0x2f0]
call fcn.14004cbe8
mov rbx, qword [rax + 8]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x1f0]
mov qword [rsp + 0x50], rax
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
or edx, 0xffffffff
mov r9d, edx
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x1400513f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x3e5
je 0x1400513f4
test eax, eax
je 0x1400513f4
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov r14, qword [r12]
lea rdi, [rsi + 0x270]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rsi, rax
mov ecx, r15d
call fcn.140023e14
mov ebx, eax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0xf9
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea rdx, str.ChangeServiceConfig__s_0x_x___s:_d_
mov rcx, r12
call qword [r14 + 0x130]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp word [0x1400a6650], r13w
jne 0x140051367
mov eax, r13d
jmp 0x140051373
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0x40]
call fcn.1400045d0
nop
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
lea rcx, str..._nsService.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x60]
call fcn.140004720
nop
mov ecx, r15d
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xfa
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.1400230c8
lea rdx, [0x1400c7a90]
lea rcx, [rbp + 0x80]
call fcn.14005ba94
nop
lea rcx, [rsi + 0x288]
mov rdx, r14
call fcn.14000a95c
nop
lea rcx, [rbp]
call fcn.140022a60
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140058630
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret