Function at 0x14001b550
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 [0x1400ff010]
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 + 0x1ec]
mov dword [rsp + 0x20], eax
mov r9, qword [rdx + 0x18]
mov r8d, 0x2da
lea rdx, str.CBssForAPOChange::RemoveLegacyAPOKey
lea rcx, str._s__d_device_s_m_bRealtekApoRealReg_d
call fcn.1400430e0
mov rcx, qword [rdi + 0x120]
mov r14, 0xffffffffffffffff
cmp dword [rcx - 0x10], 0
jge 0x14001b686
mov ebx, r14d
jmp 0x14001b6a9
lea rdx, [0x1400b24a0]
call fcn.1400981d0
mov rbx, rax
test rax, rax
jne 0x14001b69f
mov ebx, r14d
jmp 0x14001b6a9
sub rbx, qword [rdi + 0x120]
sar rbx, 1
mov rcx, rdi
call fcn.14000dcf0
not ebx
shr ebx, 0x1f
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, 0x2db
lea rdx, str.CBssForAPOChange::RemoveLegacyAPOKey
lea rcx, str._s__d_USB_d_BT_d
call fcn.1400430e0
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.140003db0
mov rcx, rax
test rax, rax
je 0x14001bba8
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 [0x1400b3118]
movups xmmword [rbp - 0x20], xmm0
cmp dword [rdi + 0x1ec], eax
jne 0x14001bac4
mov rdx, rdi
call fcn.14001d1b0
test eax, eax
je 0x14001bac4
mov rdx, qword [rdi + 0x130]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x14001b7a8
cmp dword [rdi + 0x10], r15d
jl 0x14001b797
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001b797
call fcn.1400056a0
mov rbx, rax
mov ecx, r14d
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x14001b78d
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 0x14001b7a8
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x40]
call fcn.140003840
mov rbx, qword [rbp - 0x40]
cmp dword [rbx - 8], 1
jle 0x14001b7be
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x40]
call fcn.140003780
mov rbx, qword [rbp - 0x40]
mov r9d, 0x2001b
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x10]
call fcn.14001da70
mov r9, rbx
lea rdx, str.CBssForAPOChange::RemoveLegacyAPOKey
test eax, eax
jne 0x14001baaa
mov r8d, 0x2ed
lea rcx, str._s__d_open__s_success
call fcn.1400430e0
mov r12, r15
mov rdi, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x10]
nop word [rax + rax]
mov ebx, r15d
movups xmm0, xmmword [0x1400b3118]
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x30], rdi
mov r13, qword [rsp + r12 + 0x30]
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x14001bb9d
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 0x14001b922
mov eax, dword [rbp + 0x20]
dec eax
cmp eax, 1
ja 0x14001b922
mov r15d, dword [rbp - 0x48]
shr r15d, 1
je 0x14001b91f
mov ecx, r15d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140092598
mov rdi, rax
test rax, rax
je 0x14001b91f
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 0x14001b917
mov eax, dword [rbp + 0x24]
dec eax
cmp eax, 1
ja 0x14001b917
mov eax, dword [rbp - 0x44]
test eax, eax
je 0x14001b905
test al, 1
jne 0x14001b917
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x14001b90a
jmp 0x14001b917
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.140091f5c
xor r15d, r15d
mov eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x14001b93e
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.140018130
mov rax, qword [rbp - 0x20]
cmp rax, qword [0x1400b3118]
jne 0x14001b976
mov rax, qword [rbp - 0x18]
cmp rax, qword [0x1400b3120]
jne 0x14001b976
mov rdi, qword [rbp - 0x38]
jmp 0x14001ba5e
mov r8, qword [rbp - 0x30]
mov rsi, r8
mov rdi, qword [rbp - 0x38]
sub rsi, rdi
sar rsi, 4
cmp rsi, 1
jae 0x14001b9d2
mov qword [rbp - 0x30], rdi
cmp qword [rbp - 0x28], rdi
je 0x14001b9a9
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdi], xmm0
lea rax, [rdi + 0x10]
mov qword [rbp - 0x30], rax
jmp 0x14001b9b9
lea r8, [rbp - 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.14001d5d0
lea r8, [rbp - 0x38]
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.140018370
mov rdi, qword [rbp - 0x38]
jmp 0x14001ba5e
mov rax, qword [rbp + 8]
mov qword [rbp + 0x10], rax
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.14001d780
test esi, esi
jle 0x14001ba26
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 0x14001ba0f
mov rax, qword [rcx + 8]
sub rax, r8
test rax, rax
cmove ebx, r15d
add rcx, 0x10
sub rdx, r15
jne 0x14001ba00
test ebx, ebx
mov r15, rdx
jne 0x14001ba4e
mov rdx, qword [rbp + 0x10]
cmp qword [rbp + 0x18], rdx
je 0x14001ba41
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
add rdx, 0x10
mov qword [rbp + 0x10], rdx
jmp 0x14001ba4e
lea r8, [rbp - 0x20]
lea rcx, [rbp + 8]
call fcn.14001d5d0
lea r8, [rbp + 8]
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.140018370
mov rdx, r13
lea rcx, [rbp - 0x10]
call fcn.14001d940
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 0x14001b810
test rsi, rsi
je 0x14001ba9d
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 0x14001bac4
mov dword [rsp + 0x20], eax
mov r8d, 0x316
lea rcx, str._s__d_open__s__x
call fcn.1400430e0
mov rsi, qword [rbp - 0x10]
test rsi, rsi
je 0x14001bad3
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 0x14001baed
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 0x14001bb2f
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bb29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bb29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140091f5c
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14001bb70
mov rdx, qword [rbp - 0x28]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bb6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bb6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140091f5c
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140091f30
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.140003b40
nop
mov ecx, 0x80004005
call fcn.140003b40
int3