Function at 0x140061730
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.140148110
sub rsp, rax
mov rax, qword [0x140178010]
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 0x140061ab6
lea r13, [0x140179288]
mov r8d, r12d
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400617b8
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 0x140061ab6
mov r8d, esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14006187e
xor edx, edx
call fcn.140085e70
xor ebx, ebx
mov esi, r12d
mov edi, 0x400
test rax, rax
je 0x140061827
test ebx, ebx
jne 0x140061864
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.140085e70
add esi, r12d
test rax, rax
jne 0x1400617f8
test ebx, ebx
jne 0x140061864
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 0x140061864
cmp eax, 0xc
je 0x140061aff
cmp eax, 0x16
je 0x140061af4
cmp eax, 0x22
je 0x140061af4
cmp eax, 0x50
jne 0x140061ae9
lea rdx, [rsp + 0x40]
mov r8, r13
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140061ab9
mov r8d, 0x10020
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
jne 0x140061934
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
call fcn.140085e70
xor ebx, ebx
mov esi, r12d
mov edi, 0x400
test rax, rax
je 0x1400618ee
test ebx, ebx
jne 0x140061864
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.140085e70
add esi, r12d
test rax, rax
jne 0x1400618bb
test ebx, ebx
jne 0x140061864
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 0x140061864
cmp eax, 0xc
je 0x140061b20
cmp eax, 0x16
je 0x140061b15
cmp eax, 0x22
je 0x140061b15
cmp eax, 0x50
je 0x140061864
jmp 0x140061b0a
lea r8, [rsp + 0x20]
mov edx, r12d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, 0x400
test eax, eax
jne 0x140061a06
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x140061a06
cmp eax, 0x425
jne 0x140061975
cmp dword [rsp + 0x24], 3
je 0x140061a06
xor edx, edx
call fcn.140085e70
xor ebx, ebx
mov r15d, r12d
test rax, rax
je 0x1400619b6
test ebx, ebx
jne 0x1400619f3
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.140085e70
add r15d, r12d
test rax, rax
jne 0x140061986
test ebx, ebx
jne 0x1400619f3
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 0x1400619f3
cmp eax, 0xc
je 0x140061b41
cmp eax, 0x16
je 0x140061b36
cmp eax, 0x22
je 0x140061b36
cmp eax, 0x50
jne 0x140061b2b
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 0x140061ab6
xor edx, edx
call fcn.140085e70
mov esi, r12d
test rax, rax
je 0x140061a6b
test ebx, ebx
jne 0x140061aaa
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.140085e70
add esi, r12d
test rax, rax
jne 0x140061a3a
test ebx, ebx
jne 0x140061aaa
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 0x140061aaa
cmp eax, 0xc
je 0x140061b62
cmp eax, 0x16
je 0x140061b57
cmp eax, 0x22
je 0x140061b57
cmp eax, 0x50
jne 0x140061b4c
lea rdx, [rbp + 0x740]
jmp 0x140061869
mov eax, r12d
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.1401474d0
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.140001b20
int3
mov ecx, 0x80070057
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x80004005
call fcn.140001b20
int3
mov ecx, 0x80070057
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x80004005
call fcn.140001b20
int3
mov ecx, 0x80070057
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x80004005
call fcn.140001b20
int3
mov ecx, 0x80070057
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3