Function at 0x14004f7df
Capabilities:
Delete service
Query service status

Disassembly:
jmp 0x1400699c0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x14013a908]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x14014e19a]
call fcn.1400529c1
cmp dword [rbp + 0x188], 3
jbe 0x140069a35
mov r8, qword [rbp + 0x180]
mov edx, 3
lea rcx, str.____Reached_maximun_number_of_attempts___i__to_uninstall_the_service__s_n
call fcn.14004f249
xor eax, eax
jmp 0x140069bf1
xor r9d, r9d
mov r8d, 1
mov edx, 0x20
mov rcx, qword [rbp + 0x180]
call fcn.140050fa9
test eax, eax
je 0x140069a6b
mov rdx, qword [rbp + 0x180]
lea rcx, str.____s_service_stopped_n
call fcn.14004f249
jmp 0x140069af4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x140069a8d
mov rdx, qword [rbp + 0x180]
lea rcx, str.____s_service_not_running_n
call fcn.14004f249
jmp 0x140069af4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x425
jne 0x140069aba
mov rdx, qword [rbp + 0x180]
lea rcx, str.____s_service_cannot_accept_control_messages_at_this_time__waiting..._n
call fcn.14004f249
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140069af4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceUninstall___ServiceUninstall__0x_08x__n
call fcn.14004f249
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x188]
inc eax
mov edx, eax
mov rcx, qword [rbp + 0x180]
call fcn.14004f7df
jmp 0x140069bf1
mov dword [rbp + 0x44], 0
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x140069bc5
mov r8d, 0x10004
mov rdx, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x140069bbb
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140069bbb
cmp dword [rbp + 0xc], 1
je 0x140069b9e
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x188]
inc eax
mov edx, eax
mov rcx, qword [rbp + 0x180]
call fcn.14004f7df
jmp 0x140069bf1
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rbp + 0x44], 0
jne 0x140069bee
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x188]
inc eax
mov edx, eax
mov rcx, qword [rbp + 0x180]
call fcn.14004f7df
jmp 0x140069bf1
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14010f9d0]
call fcn.140051f80
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140050bd0
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret