Function at 0x14000d964
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov esi, r8d
mov rbx, rcx
mov r14d, 0x8007000e
and dword [rsp + 0xc8], 0
lea rax, vtable.__SmartHANDLE.0
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x50], rax
lea r8, str.GlobalWMI_RevAdap_Set
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0x50], rax
lea r8, str.GlobalWMI_RevAdap_ACK
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov r15, rax
mov qword [rsp + 0x60], rax
test r12, r12
je 0x14000da11
test rax, rax
je 0x14000da11
mov dword [rsp + 0xc8], 1
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
cmp eax, 1
jne 0x14000ddb5
test esi, esi
je 0x14000dc9a
xor esi, esi
mov qword [rsp + 0x68], rsi
and qword [rsp + 0x70], rsi
and qword [rsp + 0x78], rsi
and qword [rsp + 0xb8], rsi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x10002
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesWmiApRplPerformance
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000daea
mov rsi, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rsi
lea rdx, [0x140020d88]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
lea rdx, str.First_Help
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
lea rdx, str.Last_Counter
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
lea rdx, str.Last_Help
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test rsi, rsi
je 0x14000daea
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor esi, esi
mov qword [rsp + 0x68], rsi
lea rdx, str.LoadPerfCounterTextStringsW
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000db5e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test rsi, rsi
je 0x14000db2e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
test r15, r15
je 0x14000db43
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test r12, r12
je 0x14000db57
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000dde7
mov ecx, 1
call fcn.14000c3c0
mov r13, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000dc7d
and qword [rsp + 0x30], 0
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rbx, rax
lea rcx, str.WmiApRpl
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea rcx, [rbx + 8]
add rcx, rax
mov ecx, ecx
mov qword [rsp + 0xb8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000dc36
lea rax, str.WmiApRpl
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, str.xx__s_s.ini
mov rdx, qword [rsp + 0xb8]
mov rcx, rbx
call fcn.14000390c
movabs r10, 0xe9900741185bc170
mov edx, 1
mov rcx, rbx
mov rax, qword [rsp + 0x38]
call qword [0x14001f658]
mov r14d, eax
test eax, eax
je 0x14000dc36
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x14000dc59
test rbx, rbx
je 0x14000dc6d
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
test rsi, rsi
je 0x14000dd93
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14000dd93
and qword [rsp + 0x30], 0
lea rdx, str.UnloadPerfCounterTextStringsW
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov r13, rax
test rax, rax
jne 0x14000dcd2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000db2e
lea rsi, str.WmiApRpl
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea ecx, [rax + 4]
mov qword [rsp + 0xb8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000dd66
mov r9, rsi
lea r8, str.xx__s
mov rdx, qword [rsp + 0xb8]
mov rcx, rax
call fcn.14000390c
movabs r10, 0xe9900741185bc170
mov edx, 1
mov rcx, rbx
mov rax, r13
call qword [0x14001f658]
mov r14d, eax
test eax, eax
je 0x14000dd66
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x14000dd7f
test rbx, rbx
je 0x14000dd93
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
cmp dword [rsp + 0xc8], 0
je 0x14000ddbb
mov edx, 0xbb8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14000ddbb
mov r14d, 0x80004005
test r15, r15
je 0x14000ddd0
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test r12, r12
je 0x14000dde4
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, r14d
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rsi
ret