Function at 0x14001a710
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rdx
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_5
mov qword [rsp + 0x30], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_6
mov qword [rsp + 0x38], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_7
mov qword [rsp + 0x40], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_8
mov qword [rsp + 0x48], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_9
mov qword [rsp + 0x50], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_10
mov qword [rsp + 0x58], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_11
mov qword [rsp + 0x60], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_12
mov qword [rsp + 0x68], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_13
mov qword [rsp + 0x70], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_14
mov qword [rsp + 0x78], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_15
mov qword [rbp - 0x80], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_16
mov qword [rbp - 0x78], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_17
mov qword [rbp - 0x70], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_18
mov qword [rbp - 0x68], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_19
mov qword [rbp - 0x60], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_20
mov qword [rbp - 0x58], rax
mov eax, dword [rdx + 0x1e8]
mov dword [rsp + 0x20], eax
mov r9, qword [rdx + 0x18]
mov r8d, 0x378
lea rdx, str.CBssForAPOChange::RemoveLegacyAPOKey
lea rcx, str._s__d_device_s_m_bRealtekApoRealReg_d
call fcn.14003f0e0
mov rcx, qword [rdi + 0x120]
mov r14, 0xffffffffffffffff
cmp dword [rcx - 0x10], 0
jge 0x14001a846
mov ebx, r14d
jmp 0x14001a869
lea rdx, [0x1400ab390]
call fcn.140091080
mov rbx, rax
test rax, rax
jne 0x14001a85f
mov ebx, r14d
jmp 0x14001a869
sub rbx, qword [rdi + 0x120]
sar rbx, 1
mov rcx, rdi
call fcn.14000d650
not ebx
shr ebx, 0x1f
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, 0x379
lea rdx, str.CBssForAPOChange::RemoveLegacyAPOKey
lea rcx, str._s__d_USB_d_BT_d
call fcn.14003f0e0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
xor r15d, r15d
mov qword [rbp - 0x28], r15
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x14001ad68
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x40], rbx
xor eax, eax
mov qword [rbp - 8], rax
mov esi, r15d
mov qword [rbp - 0x10], r15
mov dword [rbp - 8], r15d
mov qword [rbp], r15
movups xmm0, xmmword [0x1400abf48]
movups xmmword [rbp - 0x20], xmm0
cmp dword [rdi + 0x1e8], eax
jne 0x14001ac84
mov rdx, rdi
call fcn.14001c360
test eax, eax
je 0x14001ac84
mov rdx, qword [rdi + 0x130]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x14001a968
cmp dword [rdi + 0x10], r15d
jl 0x14001a957
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001a957
call fcn.1400051f0
mov rbx, rax
mov ecx, r14d
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x14001a94d
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
add rbx, 0x18
mov qword [rbp - 0x40], rbx
jmp 0x14001a968
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x40]
call fcn.140003400
mov rbx, qword [rbp - 0x40]
cmp dword [rbx - 8], 1
jle 0x14001a97e
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x40]
call fcn.140003340
mov rbx, qword [rbp - 0x40]
mov r9d, 0x2001b
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x10]
call fcn.14001cc20
mov r9, rbx
lea rdx, str.CBssForAPOChange::RemoveLegacyAPOKey
test eax, eax
jne 0x14001ac6a
mov r8d, 0x38b
lea rcx, str._s__d_open__s_success
call fcn.14003f0e0
mov r12, r15
mov rdi, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x10]
nop word [rax + rax]
mov ebx, r15d
movups xmm0, xmmword [0x1400abf48]
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x30], rdi
mov r13, qword [rsp + r12 + 0x30]
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x14001ad5d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov r14, rax
lea rcx, [rax + 0x18]
mov qword [rbp + 0x28], rcx
mov dword [rbp - 0x48], r15d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001aae2
mov eax, dword [rbp + 0x20]
dec eax
cmp eax, 1
ja 0x14001aae2
mov r15d, dword [rbp - 0x48]
shr r15d, 1
je 0x14001aadf
mov ecx, r15d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14008b448
mov rdi, rax
test rax, rax
je 0x14001aadf
lea edx, [r15 + r15]
mov dword [rbp - 0x44], edx
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x24]
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001aad7
mov eax, dword [rbp + 0x24]
dec eax
cmp eax, 1
ja 0x14001aad7
mov eax, dword [rbp - 0x44]
test eax, eax
je 0x14001aac5
test al, 1
jne 0x14001aad7
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x14001aaca
jmp 0x14001aad7
xor eax, eax
mov word [rdi], ax
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
mov rcx, rdi
call fcn.14008ae0c
xor r15d, r15d
mov eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x14001aafe
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14, qword [rsp + r12 + 0x70]
lea r8, [rbp - 0x38]
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.140017970
mov rax, qword [rbp - 0x20]
cmp rax, qword [0x1400abf48]
jne 0x14001ab36
mov rax, qword [rbp - 0x18]
cmp rax, qword [0x1400abf50]
jne 0x14001ab36
mov rdi, qword [rbp - 0x38]
jmp 0x14001ac1e
mov r8, qword [rbp - 0x30]
mov rsi, r8
mov rdi, qword [rbp - 0x38]
sub rsi, rdi
sar rsi, 4
cmp rsi, 1
jae 0x14001ab92
mov qword [rbp - 0x30], rdi
cmp qword [rbp - 0x28], rdi
je 0x14001ab69
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdi], xmm0
lea rax, [rdi + 0x10]
mov qword [rbp - 0x30], rax
jmp 0x14001ab79
lea r8, [rbp - 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.14001c780
lea r8, [rbp - 0x38]
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.140017bb0
mov rdi, qword [rbp - 0x38]
jmp 0x14001ac1e
mov rax, qword [rbp + 8]
mov qword [rbp + 0x10], rax
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.14001c930
test esi, esi
jle 0x14001abe6
mov rcx, rdi
mov edx, esi
mov r8, qword [rbp - 0x18]
mov r9, qword [rbp - 0x20]
mov r15d, 1
nop dword [rax]
mov rax, qword [rcx]
sub rax, r9
jne 0x14001abcf
mov rax, qword [rcx + 8]
sub rax, r8
test rax, rax
cmove ebx, r15d
add rcx, 0x10
sub rdx, r15
jne 0x14001abc0
test ebx, ebx
mov r15, rdx
jne 0x14001ac0e
mov rdx, qword [rbp + 0x10]
cmp qword [rbp + 0x18], rdx
je 0x14001ac01
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
add rdx, 0x10
mov qword [rbp + 0x10], rdx
jmp 0x14001ac0e
lea r8, [rbp - 0x20]
lea rcx, [rbp + 8]
call fcn.14001c780
lea r8, [rbp + 8]
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.140017bb0
mov rdx, r13
lea rcx, [rbp - 0x10]
call fcn.14001caf0
mov rdx, r13
mov rsi, qword [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
add r12, 8
cmp r12, 0x40
jl 0x14001a9d0
test rsi, rsi
je 0x14001ac5d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, r15
mov qword [rbp - 0x10], r15
mov rbx, qword [rbp - 0x40]
mov r14, 0xffffffffffffffff
jmp 0x14001ac84
mov dword [rsp + 0x20], eax
mov r8d, 0x3b4
lea rcx, str._s__d_open__s__x
call fcn.14003f0e0
mov rsi, qword [rbp - 0x10]
test rsi, rsi
je 0x14001ac93
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14001acad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14001acef
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ace9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ace9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008ae0c
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14001ad30
mov rdx, qword [rbp - 0x28]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ad2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ad2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008ae0c
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14008ade0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003700
nop
mov ecx, 0x80004005
call fcn.140003700
int3