Function at 0x14000b350
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_1_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_1_0.dll_OpenEventW]
mov r15, rax
mov qword [rsp + 0x68], rax
test r12, r12
je 0x14000b3f3
test rax, rax
je 0x14000b3f3
mov dword [rsp + 0xd8], 1
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp eax, 1
jne 0x14000b6f5
test esi, esi
je 0x14000b609
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 0x14000b4a7
mov rsi, qword [rsp + 0xc8]
mov qword [rsp + 0x70], rsi
lea rdx, [0x14001f518]
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 0x14000b4a7
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 0x14000b4fd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x14000b4d9
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test r15, r15
je 0x14000b4e8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test r12, r12
je 0x14000b4f6
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
jmp 0x14000b71b
mov ecx, 1
call fcn.140009b60
mov r13, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000b5f2
and qword [rsp + 0x30], 0
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
mov rbx, rax
lea rcx, str.WmiApRpl
call qword [sym.imp.msvcrt.dll_wcslen]
lea rcx, [rbx + 8]
add rcx, rax
mov ecx, ecx
mov qword [rsp + 0xc8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140019928
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b5b9
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.140001c58
mov edx, 1
mov rcx, rbx
mov rax, qword [rsp + 0x38]
call qword [0x14001ec20]
mov r14d, eax
test eax, eax
je 0x14000b5b9
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
jmp 0x14000b5dc
test rbx, rbx
je 0x14000b5e9
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
nop
test rsi, rsi
je 0x14000b6d9
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14000b6d9
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 0x14000b635
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x14000b4d9
lea rsi, str.WmiApRpl
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcslen]
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.140019928
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b6b3
mov r9, rsi
lea r8, str.xx__s
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.140001c58
mov edx, 1
mov rcx, rbx
mov rax, r13
call qword [0x14001ec20]
mov r14d, eax
test eax, eax
je 0x14000b6b3
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
jmp 0x14000b6cc
test rbx, rbx
je 0x14000b6d9
mov rcx, rbx
call sub.msvcrt.dll_free
cmp dword [rsp + 0xd8], 0
je 0x14000b6fb
mov edx, 0xbb8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x14000b6fb
mov r14d, 0x80004005
test r15, r15
je 0x14000b70a
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test r12, r12
je 0x14000b718
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