Function at 0x14000b73c
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push r13
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x70], 0xfffffffffffffffe
mov r14d, r8d
mov esi, 0x8007000e
and dword [rsp + 0xb0], 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 rbx, rax
mov qword [rsp + 0x48], 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 + 0x58], rax
test rbx, rbx
je 0x14000b7e0
test rax, rax
je 0x14000b7e0
mov dword [rsp + 0xb0], 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
cmp eax, 1
je 0x14000b7e0
mov esi, 0x80004005
jmp 0x14000ba60
test r14d, r14d
je 0x14000b998
xor r14d, r14d
mov qword [rsp + 0x60], r14
and qword [rsp + 0x68], r14
and qword [rsp + 0x70], r14
and qword [rsp + 0xb8], r14
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]
test eax, eax
jne 0x14000b894
mov r14, qword [rsp + 0xb8]
mov qword [rsp + 0x60], r14
lea rdx, [0x14001f340]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.First_Help
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.Last_Counter
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.Last_Help
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test r14, r14
je 0x14000b894
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov ecx, 1
call fcn.140009d80
mov r13, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b981
and qword [rsp + 0xc8], 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 + 0xb8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001930c
mov rbx, rax
mov qword [rsp + 0xc8], rax
test rax, rax
je 0x14000b94b
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.140001bfc
mov edx, 1
mov rcx, rbx
call qword [sym.imp.loadperf.dll_LoadPerfCounterTextStringsW]
mov esi, eax
test eax, eax
je 0x14000b94b
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
jmp 0x14000b96b
test rbx, rbx
je 0x14000b978
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
nop
test r14, r14
je 0x14000ba35
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14000ba35
and qword [rsp + 0xc8], 0
lea r14, str.WmiApRpl
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea r13d, [rax + 4]
mov eax, 2
mul r13
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001930c
mov rbx, rax
mov qword [rsp + 0xc8], rax
test rax, rax
je 0x14000ba12
mov r9, r14
lea r8, str.xx__s
mov edx, r13d
mov rcx, rax
call fcn.140001bfc
mov edx, 1
mov rcx, rbx
call qword [sym.imp.loadperf.dll_UnloadPerfCounterTextStringsW]
mov esi, eax
test eax, eax
je 0x14000ba12
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
jmp 0x14000ba28
test rbx, rbx
je 0x14000ba35
mov rcx, rbx
call sub.msvcrt.dll_free
cmp dword [rsp + 0xb0], 0
je 0x14000ba5b
mov edx, 0xbb8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x48]
test eax, eax
je 0x14000ba60
jmp 0x14000b7d6
mov rbx, qword [rsp + 0x48]
test r15, r15
je 0x14000ba6f
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test rbx, rbx
je 0x14000ba7d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, esi
add rsp, 0x80
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret