Function at 0x140051ee8
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
movzx edi, dl
mov rsi, rcx
lea r14, str..._nsService.cpp
mov rdx, r14
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, 0x1a6
lea rdx, str.SetInteractWithDesktop___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]
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov r8d, edi
mov dword [rsp + 0x20], 0x1ab
lea rdx, str.InteractWithDesktop_d___s:_d_
mov rcx, r12
call qword [rbx + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
xor r13d, r13d
mov ebx, dword [rsi + 0x2b8]
test dil, dil
je 0x140051ff0
bts ebx, 8
jmp 0x140051ff4
btr ebx, 8
lea rcx, [rsi + 0x2f0]
call fcn.14004cbe8
mov qword [rsp + 0x50], r13
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 r8d, 0xffffffff
mov r9d, r8d
mov edx, ebx
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x140052172
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x3e5
je 0x140052172
test eax, eax
je 0x140052172
mov rdx, r14
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], 0x1bf
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 0x1400520e5
mov rax, r13
jmp 0x1400520f1
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, 0x1c0
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.1400230c8
lea rdx, [0x1400c7a90]
lea rcx, [rbp + 0x80]
call fcn.14005ba94
nop
mov dword [rsi + 0x2b8], ebx
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