Function at 0x14000ae40
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [r11 - 0x70], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov esi, r8d
mov rbx, rcx
mov r14d, 0x8007000e
and dword [rsp + 0xd8], 0
lea rax, vtable.__SmartHANDLE.0
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x58], rax
lea r8, str.GlobalWMI_RevAdap_Set
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_OpenEventW]
mov r12, rax
mov qword [rsp + 0x58], rax
lea r8, str.GlobalWMI_RevAdap_ACK
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_OpenEventW]
mov r15, rax
mov qword [rsp + 0x68], rax
test r12, r12
je 0x14000aee3
test rax, rax
je 0x14000aee3
mov dword [rsp + 0xd8], 1
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
cmp eax, 1
jne 0x14000b1e0
test esi, esi
je 0x14000b0f4
xor esi, esi
mov qword [rsp + 0x70], rsi
and qword [rsp + 0x78], rsi
and qword [rsp + 0x80], rsi
and qword [rsp + 0xc8], rsi
lea rax, [rsp + 0xc8]
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]
test eax, eax
jne 0x14000af97
mov rsi, qword [rsp + 0xc8]
mov qword [rsp + 0x70], rsi
lea rdx, [0x14001e4c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.First_Help
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.Last_Counter
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.Last_Help
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test rsi, rsi
je 0x14000af97
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor esi, esi
mov qword [rsp + 0x70], rsi
lea rdx, str.LoadPerfCounterTextStringsW
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000afed
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x14000afc9
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test r15, r15
je 0x14000afd8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test r12, r12
je 0x14000afe6
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
jmp 0x14000b206
mov ecx, 1
call fcn.1400095c8
mov r13, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000b0dd
and qword [rsp + 0x30], 0
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov ebx, eax
lea rcx, str.WmiApRpl
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea ecx, [rax + 8]
add ecx, ebx
mov qword [rsp + 0xc8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018538
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b0a4
lea rax, str.WmiApRpl
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, str.xx__s_s.ini
mov rdx, qword [rsp + 0xc8]
mov rcx, rbx
call fcn.140001b38
mov edx, 1
mov rcx, rbx
mov rax, qword [rsp + 0x38]
call qword [0x14001dbc0]
mov r14d, eax
test eax, eax
je 0x14000b0a4
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
jmp 0x14000b0c7
test rbx, rbx
je 0x14000b0d4
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
nop
test rsi, rsi
je 0x14000b1c4
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14000b1c4
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]
mov r13, rax
test rax, rax
jne 0x14000b120
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
jmp 0x14000afc9
lea rsi, str.WmiApRpl
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea ecx, [rax + 4]
mov qword [rsp + 0xc8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018538
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b19e
mov r9, rsi
lea r8, str.xx__s
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.140001b38
mov edx, 1
mov rcx, rbx
mov rax, r13
call qword [0x14001dbc0]
mov r14d, eax
test eax, eax
je 0x14000b19e
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
jmp 0x14000b1b7
test rbx, rbx
je 0x14000b1c4
mov rcx, rbx
call sub.msvcrt.dll_free
cmp dword [rsp + 0xd8], 0
je 0x14000b1e6
mov edx, 0xbb8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
test eax, eax
je 0x14000b1e6
mov r14d, 0x80004005
test r15, r15
je 0x14000b1f5
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test r12, r12
je 0x14000b203
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, r14d
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rsi
ret