Function at 0x1400181c8
Capabilities:
Delete service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
mov eax, 0x560
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x550], rax
xor ebx, ebx
mov qword [rsp + 0x68], rbx
movdqa xmm0, xmmword [0x14031bbe0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], bx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], rbx
lea esi, [rbx + 7]
mov qword [rsp + 0xa0], rsi
lea rdx, str.RegisteredAddons
lea rcx, [rsp + 0x88]
call fcn.14000ae4c
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.14000e528
mov r14b, al
mov rcx, qword [rsp + 0xa0]
mov edi, 0x1000
cmp rcx, 8
jb 0x1400182a6
lea rcx, [rcx*2 + 2]
mov rdx, qword [rsp + 0x88]
mov rax, rdx
cmp rcx, rdi
jb 0x14001829d
mov rdx, qword [rdx - 8]
sub rax, rdx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001829d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14b, r14b
je 0x1400183b2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0x88], rbx
movdqa xmm0, xmmword [0x14031bbe0]
movdqu xmmword [rsp + 0x98], xmm0
mov word [rsp + 0x88], bx
lea rdx, [0x140288424]
lea rcx, [rsp + 0x88]
call fcn.14000ae4c
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.140029e64
lea rcx, [rsp + 0x88]
call fcn.14000ac30
mov r14, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xb0]
cmp r14, r15
je 0x1400183a5
mov rdx, r14
lea rcx, [rsp + 0xf0]
call fcn.140015388
lea rcx, [rsp + 0xf0]
call fcn.14003ce24
lea rcx, [rsp + 0x198]
call fcn.14000ac30
lea rcx, [rsp + 0x178]
call fcn.14000ac30
lea rcx, [rsp + 0x158]
call fcn.14000ac30
lea rcx, [rsp + 0x130]
call fcn.14000ac30
lea rcx, [rsp + 0x110]
call fcn.14000ac30
lea rcx, [rsp + 0xf0]
call fcn.14000ac30
add r14, 0x20
jmp 0x14001832f
lea rcx, [rsp + 0xa8]
call fcn.14002b134
call fcn.140012ea0
lea rcx, [rsp + 0x68]
call fcn.14000ac30
jmp 0x1400183cd
lea r14, str.OfficeSvcManager
mov rcx, r14
call fcn.140017880
test al, al
je 0x14001859d
lea rcx, [rsp + 0x38]
call fcn.140191618
nop
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov word [rsp + 0x68], bx
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14000ae4c
nop
mov r8d, 0x10000
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.140191704
test al, al
je 0x14001843c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14001844d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x140018797
mov rax, qword [rsp + 0x80]
cmp rax, 8
jb 0x14001848e
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
cmp rax, rdi
jb 0x140018488
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140018488
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0xa8], rbx
movdqa xmm0, xmmword [0x14031bbe0]
movdqu xmmword [rsp + 0xb8], xmm0
mov word [rsp + 0xa8], bx
mov rdx, r14
lea rcx, [rsp + 0xa8]
call fcn.14000ae4c
mov qword [rsp + 0x68], rbx
movdqa xmm0, xmmword [0x14031bbe0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], bx
lea rdx, str.Service
lea rcx, [rsp + 0x68]
call fcn.14000ae4c
mov qword [rsp + 0x88], rbx
movdqa xmm0, xmmword [0x14031bbe0]
movdqu xmmword [rsp + 0x98], xmm0
mov word [rsp + 0x88], bx
lea rdx, str.Successfully_unregistered.
lea rcx, [rsp + 0x88]
call fcn.14000ae4c
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xc8]
call fcn.14000d964
mov qword [rsp + 0x20], rax
lea r9, str.C2RMan::UnregisterService
mov ecx, 0x236d5495
mov r8d, 0x32
call fcn.14000d110
lea rcx, [rsp + 0xd0]
call fcn.14000ac30
lea rcx, [rsp + 0x88]
call fcn.14000ac30
lea rcx, [rsp + 0x68]
call fcn.14000ac30
lea rcx, [rsp + 0xa8]
call fcn.14000ac30
lea rcx, [rsp + 0x38]
call fcn.1401916c4
mov al, 1
jmp 0x140018769
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rsi
mov word [rsp + 0x88], bx
mov rdx, r14
lea rcx, [rsp + 0x88]
call fcn.14000ae4c
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov word [rsp + 0x68], bx
lea rdx, str.Service
lea rcx, [rsp + 0x68]
call fcn.14000ae4c
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rsi
mov word [rsp + 0xa8], bx
lea rdx, str.Failed_to_unregister.
lea rcx, [rsp + 0xa8]
call fcn.14000ae4c
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xc8]
call fcn.14000d964
mov qword [rsp + 0x20], rax
lea r9, str.C2RMan::UnregisterService
mov ecx, 0x236d5494
mov r8d, 0xa
call fcn.14000d110
lea rcx, [rsp + 0xd0]
call fcn.14000ac30
mov rax, qword [rsp + 0xc0]
cmp rax, 8
jb 0x1400186b8
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0xa8]
mov rdx, rcx
cmp rax, rdi
jb 0x1400186b2
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400186b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rsi
mov word [rsp + 0xa8], bx
mov rax, qword [rsp + 0x80]
cmp rax, 8
jb 0x140018711
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
cmp rax, rdi
jb 0x14001870b
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14001870b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov word [rsp + 0x68], bx
mov rax, qword [rsp + 0xa0]
cmp rax, 8
jb 0x140018767
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, rdi
jb 0x140018761
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140018761
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor al, al
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.14024c6d0
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, str.failed_to_delete_service__s
lea rcx, [rsp + 0x1c0]
call fcn.1401920b0
lea rdx, [0x140325060]
lea rcx, [rsp + 0x1c0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3