Function at 0x14007f550
Capabilities:
Delete file
Delete service

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1401b89e8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov r8d, 0xf003f
mov esi, 1
xor edi, edi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x14007f5b3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.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.140010a00
jmp 0x14007f790
mov r8d, 0xf01ff
mov qword [rsp + 0x68], rbp
lea rdx, str.esifsvc
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x14007f5f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rbp + 3]
call fcn.140010a00
jmp 0x14007f775
lea r8, [rsp + 0x28]
mov qword [rsp + 0x60], rbx
mov edx, esi
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
jne 0x14007f633
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x426
je 0x14007f633
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdx, str.Error:_Unable_to_stop_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140010a00
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
mov ecx, eax
jne 0x14007f6b4
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x14007f6b4
cmp ecx, 0x7a
jne 0x14007f6b4
mov ecx, eax
call fcn.14007edd0
mov rdi, rax
test rax, rax
jne 0x14007f67e
lea rdx, str.Error:_Unable_to_allocate_memory_for_the_service_configuration._n
jmp 0x14007f6db
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
test eax, eax
jne 0x14007f6e7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdx, str.Error:_Unable_to_get_service_configuration_information._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140010a00
jmp 0x14007f6e5
test ecx, ecx
je 0x14007f6d4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdx, str.Error:_Unable_to_determine_service_configuration_size._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140010a00
jmp 0x14007f6e5
lea rdx, str.Error:_Unable_to_determine_service_configuration_size._n
mov ecx, 3
call fcn.140010a00
xor esi, esi
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x14007f71d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x430
je 0x14007f71d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdx, str.Error:_Unable_to_delete_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140010a00
jmp 0x14007f76c
test esi, esi
je 0x14007f754
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14007f754
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.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.140010a00
lea r8, str.Intel_R__Dynamic_Platform_and_Thermal_Framework_Service
mov ecx, 3
lea rdx, str._S_uninstalled_n
call fcn.140010a00
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x68]
test rdi, rdi
je 0x14007f790
mov rcx, rdi
call fcn.140096ac0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400897c0
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret