Function at 0x1400245c0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, rdx
test rdx, rdx
jne 0x140024640
mov r8d, 0x175
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14005b9a0
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400c17f0
lea r11, [rsp + 0x130]
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
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_5
mov qword [rsp + 0x50], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_6
mov qword [rsp + 0x58], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_7
mov qword [rsp + 0x60], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_8
mov qword [rsp + 0x68], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_9
mov qword [rsp + 0x70], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_10
mov qword [rsp + 0x78], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_11
mov qword [rbp - 0x80], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_12
mov qword [rbp - 0x78], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_13
mov qword [rbp - 0x70], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_14
mov qword [rbp - 0x68], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_15
mov qword [rbp - 0x60], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_16
mov qword [rbp - 0x58], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_17
mov qword [rbp - 0x50], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_18
mov qword [rbp - 0x48], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_19
mov qword [rbp - 0x40], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_20
mov qword [rbp - 0x38], rax
mov r9, qword [rdx + 0x10]
mov r8d, SafeArrayCopyData
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_EpId_s
call fcn.14005b9a0
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
xor r15d, r15d
mov qword [rbp - 0x20], r15
movdqu xmmword [rbp - 8], xmm1
mov esi, r15d
mov qword [rbp + 8], r15
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x10], r15
mov dword [rbp + 0x18], r15d
mov qword [rbp + 0x20], r15
movups xmm0, xmmword [0x1400e6458]
movups xmmword [rbp - 0x18], xmm0
add rbx, 0x130
mov r8, qword [rbx]
cmp dword [r8 - 8], 1
jle 0x14002476c
mov edx, dword [r8 - 0x10]
mov rcx, rbx
call fcn.140003f70
mov r8, qword [rbx]
mov rdx, 0xffffffff80000002
mov r9d, 0x2001b
lea rcx, [rbp + 0x10]
call fcn.1400280a0
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140024791
mov eax, r15d
jmp 0x1400247a3
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140024b07
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140024b07
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r15w
test edi, edi
jne 0x140024a40
mov dword [rsp + 0x30], r15d
mov r14, r15
mov qword [rsp + 0x38], r15
mov rbx, qword [rbp - 0x30]
nop word [rax + rax]
mov edi, r15d
movups xmm0, xmmword [0x1400e6458]
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + r14 + 0x50]
lea rcx, [rbp + 0x10]
call fcn.140023040
mov r13, qword [rbp + r14 - 0x70]
mov qword [rsp + 0x40], r13
lea r8, [rbp - 0x30]
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.140022c10
mov rax, qword [rbp - 0x18]
cmp rax, qword [0x1400e6458]
jne 0x140024841
mov rax, qword [rbp - 0x10]
cmp rax, qword [0x1400e6460]
jne 0x140024841
mov rbx, qword [rbp - 0x30]
jmp 0x1400249e9
mov r12, qword [rbp - 0x28]
mov rbx, qword [rbp - 0x30]
sub r12, rbx
mov r15, r12
sar r15, 4
cmp r15, 1
jae 0x14002489d
mov qword [rbp - 0x28], rbx
cmp rbx, qword [rbp - 0x20]
je 0x140024874
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbx], xmm0
lea rax, [rbx + 0x10]
mov qword [rbp - 0x28], rax
jmp 0x140024884
lea r8, [rbp - 0x18]
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140027d30
lea r8, [rbp - 0x30]
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.140022e40
mov rbx, qword [rbp - 0x30]
jmp 0x1400249e6
mov r14, qword [rbp - 8]
mov qword [rbp], r14
mov rdx, rsi
sub rdx, r14
sar rdx, 4
cmp r15, rdx
jbe 0x140024953
movabs r8, 0xfffffffffffffff
cmp r15, r8
ja 0x140024b01
mov rcx, rdx
shr rcx, 1
mov rax, r8
sub rax, rcx
cmp rdx, rax
jbe 0x1400248e1
mov rsi, r8
jmp 0x1400248ec
lea rsi, [rdx + rcx]
cmp rsi, r15
cmovb rsi, r15
test r14, r14
je 0x140024932
shl rdx, 4
cmp rdx, 0x1000
jb 0x14002491a
add rdx, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x140024a39
mov r14, rcx
mov rcx, r14
call fcn.1400c1818
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], 0
lfence
mov rdx, rsi
call fcn.140027e90
mov r14, rax
mov qword [rbp - 8], rax
shl rsi, 4
add rsi, rax
mov qword [rbp + 8], rsi
mov rbx, qword [rbp - 0x30]
mov r8, r12
mov rdx, rbx
mov rcx, r14
call fcn.1400c7c20
lea rdx, [r14 + r12]
mov qword [rbp], rdx
test r15d, r15d
jle 0x1400249aa
mov rcx, rbx
mov r8d, r15d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x18]
mov r13d, 1
mov rax, qword [rcx]
sub rax, r10
jne 0x140024991
mov rax, qword [rcx + 8]
sub rax, r9
test rax, rax
cmove edi, r13d
add rcx, 0x10
sub r8, r13
jne 0x140024982
mov r13, qword [rsp + 0x40]
test edi, edi
jne 0x1400249cd
cmp rdx, rsi
je 0x1400249c0
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rdx], xmm0
add rdx, 0x10
mov qword [rbp], rdx
jmp 0x1400249cd
lea r8, [rbp - 0x18]
lea rcx, [rbp - 8]
call fcn.140027d30
lea r8, [rbp - 8]
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.140022e40
mov rsi, qword [rbp + 8]
mov r14, qword [rsp + 0x38]
xor r15d, r15d
mov rdi, qword [rsp + r14 + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x10]
call fcn.140027f60
mov rdx, rdi
mov rdi, qword [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
add r14, 8
mov qword [rsp + 0x38], r14
cmp eax, 8
jl 0x1400247e0
test rdi, rdi
je 0x140024a68
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, r15
jmp 0x140024a68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x20], edi
mov r9, qword [rbx]
mov r8d, 0x1d1
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_open__s__x
call fcn.14005b9a0
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp + 0x10]
test rdi, rdi
je 0x140024a77
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140024ab8
sub rsi, rcx
and rsi, 0xfffffffffffffff0
mov rax, rcx
cmp rsi, 0x1000
jb 0x140024aaf
add rsi, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024aaf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
call fcn.1400c1818
nop
test rbx, rbx
je 0x140024613
mov rdx, qword [rbp - 0x20]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140024af4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024af4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400c1818
jmp 0x140024613
call fcn.140027e70
int3
mov ecx, 0x80070057
call fcn.140004820
int3