Function at 0x140006f40
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, str._Enter_UninstallService__
xor ecx, ecx
call fcn.1400013f0
xor eax, eax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea r8d, [rax + 1]
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140006fcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140001560
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenSCManager_failed_w_err_0x_08lx_n
xor ecx, ecx
mov r8d, eax
call fcn.1400013f0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007310
add rsp, 0x50
pop rdi
ret
mov r8d, 0x10024
mov qword [rsp + 0x60], rbx
lea rdx, str.ELANFPService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000701f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140001560
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenService_failed_w_err_0x_08lx_n
xor ecx, ecx
mov r8d, eax
call fcn.1400013f0
jmp 0x140007168
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140007106
lea rdx, str.ELANFPService
lea rcx, str.Stopping__s.
call fcn.140001560
lea r8, str.ELANFPService
xor ecx, ecx
lea rdx, str.Stopping__s.
call fcn.1400013f0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400070c0
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x1400070c4
lea rcx, [0x140028094]
call fcn.140001560
lea rdx, [0x140028094]
xor ecx, ecx
call fcn.1400013f0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140007080
mov eax, dword [rsp + 0x24]
lea rdx, str.ELANFPService
cmp eax, 1
jne 0x1400070e5
lea rcx, [0x140028098]
call fcn.140001560
lea rdx, [0x140028098]
jmp 0x1400070f8
lea rcx, str._n_s_failed_to_stop._n
call fcn.140001560
lea rdx, str._n_s_failed_to_stop._n
lea r8, str.ELANFPService
xor ecx, ecx
call fcn.1400013f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140007140
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140001560
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.DeleteService_failed_w_err_0x_08lx_n
xor ecx, ecx
mov r8d, eax
call fcn.1400013f0
jmp 0x140007168
lea rdx, str.ELANFPService
lea rcx, str._s_is_removed._n
call fcn.140001560
lea r8, str.ELANFPService
xor ecx, ecx
lea rdx, str._s_is_removed._n
call fcn.1400013f0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14000717f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007310
add rsp, 0x50
pop rdi
ret