Function at 0x14002be80
Capabilities:
Modify service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r14d, r8d
mov rdi, rdx
mov qword [rbp - 0x50], rdx
xor r15b, r15b
mov rcx, qword [rcx + 8]
xor r12d, r12d
test rcx, rcx
je 0x14002c0c8
cmp qword [rdx + 0x18], 8
jb 0x14002becc
mov rdx, qword [rdx]
mov r8d, r9d
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov r8, r12
mov qword [rbp - 0x68], r12
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], rax
je 0x14002bf22
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
mov qword [rsp + 0x60], rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
mov qword [rbp - 0x68], r8
lea rax, [rsp + 0x60]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x30], rsi
lea rax, [rbp - 0x28]
mov qword [rbp - 0x60], rax
mov rcx, r12
mov qword [rbp + 0x10], rcx
test r8, r8
je 0x14002bf61
mov rax, qword [r8]
lea rdx, [rbp - 0x28]
mov rcx, r8
mov rax, qword [rax]
call qword [case.0x140026a06.0]
mov rcx, rax
mov qword [rbp + 0x10], rax
mov r8, qword [rbp - 0x68]
test r8, r8
je 0x14002bf85
mov rax, qword [r8]
lea rcx, [rsp + 0x60]
cmp r8, rcx
setne dl
mov rcx, r8
mov rax, qword [rax + 0x20]
call qword [case.0x140026a06.0]
mov rcx, qword [rbp + 0x10]
test rsi, rsi
je 0x14002c07c
mov dword [rbp - 0x58], r12d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov qword [rbp - 0x38], r12
mov rbx, r12
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x14002c001
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002c001
mov eax, dword [rbp - 0x58]
test eax, eax
je 0x14002c001
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.14002db20
lea r9, [rbp - 0x58]
mov r8d, dword [rbp - 0x58]
mov rbx, qword [rbp - 0x48]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
setne r15b
test eax, eax
je 0x14002c001
test rbx, rbx
je 0x14002c001
cmp r14d, dword [rbx + 4]
je 0x14002c03f
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 0xffffffff
mov r8d, r14d
mov edx, r9d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
setne r15b
test rbx, rbx
je 0x14002c078
mov rdx, qword [rbp - 0x38]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x14002c070
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14002c135
mov rbx, rcx
mov rcx, rbx
call fcn.140149194
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14002c0ab
mov qword [rbp - 0x58], rax
test rcx, rcx
je 0x14002c141
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
mov rax, qword [rax + 0x10]
call qword [case.0x140026a06.0]
mov qword [rbp - 0x30], r12
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14002c0c8
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x140026a06.0]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14002c103
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002c0fe
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002c13b
mov rcx, r8
call fcn.140149194
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
movzx eax, r15b
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140149500
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401501d4
nop
call fcn.1401501d4
nop
call fcn.140120f40
int3