Function at 0x1401473a0
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x1401ce680]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_30
rep stosb byte [rdi], al
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14014741d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.14003b570
jmp 0x1401475b3
mov r8d, 0x10024
mov rdx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140147461
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.14003b570
jmp 0x1401475b3
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140147506
mov rdx, qword [rsp + 0x290]
lea rcx, str.Stopping__s.
call fcn.14003b570
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401474d5
cmp dword [rsp + 0x4c], 3
jne 0x1401474d1
lea rcx, reloc.WLDAP32.dll_Ordinal_46
call fcn.14003b570
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401474d3
jmp 0x1401474d5
jmp 0x14014749d
cmp dword [rsp + 0x4c], 1
jne 0x1401474f2
mov rdx, qword [rsp + 0x290]
lea rcx, str._n_s_is_stopped._n
call fcn.14003b570
jmp 0x140147506
mov rdx, qword [rsp + 0x290]
lea rcx, str._n_s_failed_to_stop._n
call fcn.14003b570
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140147533
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.14003b570
jmp 0x1401475b3
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, str.SYSTEMCurrentControlSetServicesEventLogApplication_s
mov r8, 0xffffffffffffffff
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14003b660
cmp eax, 0xffffffff
jne 0x140147572
lea rcx, str.Service_name_is_too_long._Cannot_register_service_with_Windows_Event_Log._n
call fcn.14003b570
jmp 0x1401475b3
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14014759f
mov edx, dword [rsp + 0x40]
lea rcx, str.Service_cannot_be_unregistered_with_Windows_Event_Log._Error_deleting_key:__d
call fcn.14003b570
mov rdx, qword [rsp + 0x290]
lea rcx, str._s_is_removed._n
call fcn.14003b570
cmp qword [rsp + 0x38], 0
je 0x1401475cf
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x30], 0
je 0x1401475eb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14010f1d0
add rsp, 0x280
pop rdi
ret