Function at 0x1400f7b20
Capabilities:
Delete directory
Delete file
Delete service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r15d, r15d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
mov r8d, 0xf003f
mov edi, r15d
mov esi, 1
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x1400f7b88
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rsi + 2]
call fcn.140046fa0
jmp 0x1400f7e00
mov r8d, 0xf01ff
mov qword [rsp + 0x2a8], rbp
lea rdx, str.esifsvc
mov rcx, r14
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x1400f7bcb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rbp + 3]
call fcn.140046fa0
jmp 0x1400f7de2
lea r8, [rsp + 0x28]
mov qword [rsp + 0x2a0], rbx
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.DLL_ControlService]
test eax, eax
jne 0x1400f7c0e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x426
je 0x1400f7c0e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.Error:_Unable_to_stop_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140046fa0
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.DLL_QueryServiceConfigW]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
test ebx, ebx
jne 0x1400f7c8a
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x1400f7c8a
cmp ecx, 0x7a
jne 0x1400f7c8a
mov ecx, eax
call fcn.1400f71d0
mov rdi, rax
test rax, rax
jne 0x1400f7c54
lea rdx, str.Error:_Unable_to_allocate_memory_for_the_service_configuration._n
jmp 0x1400f7cb1
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.DLL_QueryServiceConfigW]
test eax, eax
jne 0x1400f7cbe
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.Error:_Unable_to_get_service_configuration_information._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140046fa0
jmp 0x1400f7cbb
test ecx, ecx
je 0x1400f7caa
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.Error:_Unable_to_determine_service_configuration_size._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140046fa0
jmp 0x1400f7cbb
lea rdx, str.Error:_Unable_to_determine_service_configuration_size._n
mov ecx, 3
call fcn.140046fa0
mov esi, r15d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.DLL_DeleteService]
test eax, eax
jne 0x1400f7cf7
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x430
je 0x1400f7cf7
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.Error:_Unable_to_delete_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140046fa0
jmp 0x1400f7dd1
test esi, esi
je 0x1400f7db9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x1400f7d37
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.Error:_Service_deleted__but_unable_to_delete_executable_file._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140046fa0
jmp 0x1400f7db9
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.140104310
mov eax, dword [0x1402363a0]
lea rcx, [rsp + 0x60]
movups xmm0, xmmword [str.IntelIPF_]
mov r8, qword [rdi + 0x10]
mov edx, 0x104
mov dword [rsp + 0x58], eax
movzx eax, word [0x1402363a4]
movups xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x5c], ax
call fcn.14014a538
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140105f00
mov rbx, rax
test rax, rax
je 0x1400f7db9
lea rcx, [rsp + 0x60]
mov word [rax + 0x12], r15w
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x1400f7db9
lea rcx, [rsp + 0x60]
mov word [rbx + 8], r15w
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
lea r8, [0x140235f90]
mov ecx, 3
lea rdx, str._S_uninstalled_n
call fcn.140046fa0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rbx, qword [rsp + 0x2a0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rbp, qword [rsp + 0x2a8]
test rdi, rdi
je 0x1400f7e00
mov rcx, rdi
call fcn.1401120d4
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140102a00
mov rsi, qword [rsp + 0x2b0]
add rsp, 0x280
pop r15
pop r14
pop rdi
ret