Function at 0x1400601bc
Capabilities:
Delete service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf78]
mov eax, 0x1050
call fcn.140142910
sub rsp, rax
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0xf40], rax
mov esi, 0xf003f
xor edx, edx
mov r8d, esi
xor ecx, ecx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea r12d, [rdi + 1]
mov rbx, rax
test rax, rax
je 0x140060542
lea r13, [0x1401733e8]
mov r8d, r12d
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140060244
mov rcx, rax
mov edi, r12d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x140060542
mov r8d, esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14006030a
xor edx, edx
call fcn.140083d28
xor ebx, ebx
mov esi, r12d
mov edi, 0x400
test rax, rax
je 0x1400602b3
test ebx, ebx
jne 0x1400602f0
mov r9d, edi
lea r8, [rsp + 0x40]
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, esi
mov ebx, eax
call fcn.140083d28
add esi, r12d
test rax, rax
jne 0x140060284
test ebx, ebx
jne 0x1400602f0
lea r8, str.Could_not_open_Service_Manager
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x1400602f0
cmp eax, 0xc
je 0x14006058b
cmp eax, 0x16
je 0x140060580
cmp eax, 0x22
je 0x140060580
cmp eax, 0x50
jne 0x140060575
lea rdx, [rsp + 0x40]
mov r8, r13
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140060545
mov r8d, 0x10020
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
jne 0x1400603c0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
call fcn.140083d28
xor ebx, ebx
mov esi, r12d
mov edi, 0x400
test rax, rax
je 0x14006037a
test ebx, ebx
jne 0x1400602f0
mov r9d, edi
lea r8, [rsp + 0x40]
mov edx, 0xd80c
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, esi
mov ebx, eax
call fcn.140083d28
add esi, r12d
test rax, rax
jne 0x140060347
test ebx, ebx
jne 0x1400602f0
lea r8, str.Could_not_open_service
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x1400602f0
cmp eax, 0xc
je 0x1400605ac
cmp eax, 0x16
je 0x1400605a1
cmp eax, 0x22
je 0x1400605a1
cmp eax, 0x50
je 0x1400602f0
jmp 0x140060596
lea r8, [rsp + 0x20]
mov edx, r12d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, 0x400
test eax, eax
jne 0x140060492
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x140060492
cmp eax, 0x425
jne 0x140060401
cmp dword [rsp + 0x24], 3
je 0x140060492
xor edx, edx
call fcn.140083d28
xor ebx, ebx
mov r15d, r12d
test rax, rax
je 0x140060442
test ebx, ebx
jne 0x14006047f
mov r9d, edi
lea r8, [rsp + 0x40]
mov edx, 0xd80e
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, r15d
mov ebx, eax
call fcn.140083d28
add r15d, r12d
test rax, rax
jne 0x140060412
test ebx, ebx
jne 0x14006047f
lea r8, str.Could_not_stop_service
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x14006047f
cmp eax, 0xc
je 0x1400605cd
cmp eax, 0x16
je 0x1400605c2
cmp eax, 0x22
je 0x1400605c2
cmp eax, 0x50
jne 0x1400605b7
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x140060542
xor edx, edx
call fcn.140083d28
mov esi, r12d
test rax, rax
je 0x1400604f7
test ebx, ebx
jne 0x140060536
mov r9d, edi
lea r8, [rbp + 0x740]
mov edx, 0xd80d
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, esi
mov ebx, eax
call fcn.140083d28
add esi, r12d
test rax, rax
jne 0x1400604c6
test ebx, ebx
jne 0x140060536
lea r8, str.Could_not_delete_service
mov rdx, rdi
lea rcx, [rbp + 0x740]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x140060536
cmp eax, 0xc
je 0x1400605ee
cmp eax, 0x16
je 0x1400605e3
cmp eax, 0x22
je 0x1400605e3
cmp eax, 0x50
jne 0x1400605d8
lea rdx, [rbp + 0x740]
jmp 0x1400602f5
mov eax, r12d
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.140141cf0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001b00
int3
mov ecx, 0x80070057
call fcn.140001b00
int3
mov ecx, 0x8007000e
call fcn.140001b00
int3
mov ecx, 0x80004005
call fcn.140001b00
int3
mov ecx, 0x80070057
call fcn.140001b00
int3
mov ecx, 0x8007000e
call fcn.140001b00
int3
mov ecx, 0x80004005
call fcn.140001b00
int3
mov ecx, 0x80070057
call fcn.140001b00
int3
mov ecx, 0x8007000e
call fcn.140001b00
int3
mov ecx, 0x80004005
call fcn.140001b00
int3
mov ecx, 0x80070057
call fcn.140001b00
int3
mov ecx, 0x8007000e
call fcn.140001b00
int3