Function at 0x140030c10
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 - 0x20]
sub rsp, 0x120
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rbx, rdx
test rdx, rdx
jne 0x140030c90
mov r8d, 0x1bd
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140075db0
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400f4410
lea r11, [rsp + 0x120]
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 [rbp - 0x80], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_6
mov qword [rbp - 0x78], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_7
mov qword [rbp - 0x70], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_8
mov qword [rbp - 0x68], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_9
mov qword [rbp - 0x60], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_10
mov qword [rbp - 0x58], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_11
mov qword [rbp - 0x50], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_12
mov qword [rbp - 0x48], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_13
mov qword [rsp + 0x40], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_14
mov qword [rsp + 0x48], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_15
mov qword [rsp + 0x50], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_16
mov qword [rsp + 0x58], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_17
mov qword [rsp + 0x60], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_18
mov qword [rsp + 0x68], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_19
mov qword [rsp + 0x70], rax
lea rax, str.d04e05a6_594b_4fb6_a80d_01af5eed7d1d_20
mov qword [rsp + 0x78], rax
mov r9, qword [rdx + 0x10]
mov r8d, 0x1e0
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_EpId_s
call fcn.140075db0
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
xor esi, esi
mov qword [rbp - 0x30], rsi
movdqu xmmword [rbp - 0x18], xmm1
mov r12d, esi
mov qword [rbp - 8], rsi
movups xmmword [rbp], xmm0
mov qword [rbp], rsi
mov dword [rbp + 8], esi
mov qword [rbp + 0x10], rsi
movups xmm0, xmmword [0x14011f908]
movups xmmword [rbp - 0x28], xmm0
add rbx, 0x138
mov r8, qword [rbx]
cmp dword [r8 - 8], 1
jle 0x140030dbc
mov edx, dword [r8 - 0x10]
mov rcx, rbx
call fcn.14000c5e0
mov r8, qword [rbx]
mov rdx, 0xffffffff80000002
mov r9d, 0x2001b
lea rcx, [rbp]
call fcn.140035040
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140030de0
mov eax, esi
jmp 0x140030df2
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400310b4
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400310b4
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
test edi, edi
jne 0x140030ff3
mov r13, rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 8
mov rbx, qword [rbp - 0x40]
nop word [rax + rax]
mov edi, esi
movups xmm0, xmmword [0x14011f908]
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x38], rbx
lea r8, [rbp - 0x28]
mov rdx, qword [rbp + r13 - 0x80]
lea rcx, [rbp]
call fcn.14002f3d0
mov r15, qword [rsp + r13 + 0x40]
lea r8, [rbp - 0x40]
mov rdx, r15
lea rcx, [rbp]
call fcn.14002efa0
mov rax, qword [rbp - 0x28]
cmp rax, qword [0x14011f908]
jne 0x140030e8b
mov rax, qword [rbp - 0x20]
cmp rax, qword [0x14011f910]
jne 0x140030e8b
mov rbx, qword [rbp - 0x40]
jmp 0x140030faa
mov r14, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
sub r14, rbx
mov rsi, r14
sar rsi, 4
cmp rsi, 1
jae 0x140030ee7
mov qword [rbp - 0x38], rbx
cmp rbx, qword [rbp - 0x30]
je 0x140030ebe
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbx], xmm0
lea rax, [rbx + 0x10]
mov qword [rbp - 0x38], rax
jmp 0x140030ece
lea r8, [rbp - 0x28]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140034be0
lea r8, [rbp - 0x40]
mov rdx, r15
lea rcx, [rbp]
call fcn.14002f1d0
mov rbx, qword [rbp - 0x40]
jmp 0x140030fa8
mov r15, qword [rbp - 0x18]
mov qword [rbp - 0x10], r15
mov rax, r12
sub rax, r15
sar rax, 4
cmp rsi, rax
jbe 0x140030f19
lfence
mov rdx, rsi
lea rcx, [rbp - 0x18]
call fcn.140034e20
mov rbx, qword [rbp - 0x40]
mov r12, qword [rbp - 8]
mov r15, qword [rbp - 0x18]
mov r8, r14
mov rdx, rbx
mov rcx, r15
call fcn.1400faeb0
lea rdx, [r14 + r15]
mov qword [rbp - 0x10], rdx
test esi, esi
jle 0x140030f6f
mov rcx, rbx
mov r8d, esi
mov r9, qword [rbp - 0x20]
mov r10, qword [rbp - 0x28]
mov r13d, 1
mov rax, qword [rcx]
sub rax, r10
jne 0x140030f56
mov rax, qword [rcx + 8]
sub rax, r9
test rax, rax
cmove edi, r13d
add rcx, 0x10
sub r8, r13
jne 0x140030f47
test edi, edi
mov r13, qword [rsp + 0x30]
jne 0x140030f92
cmp rdx, r12
je 0x140030f85
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdx], xmm0
add rdx, 0x10
mov qword [rbp - 0x10], rdx
jmp 0x140030f92
lea r8, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call fcn.140034be0
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + r13 + 0x40]
lea rcx, [rbp]
call fcn.14002f1d0
mov r12, qword [rbp - 8]
xor esi, esi
mov rdi, qword [rbp + r13 - 0x80]
mov rdx, rdi
lea rcx, [rbp]
call fcn.140034f00
mov rdx, rdi
mov rdi, qword [rbp]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
add r13, 8
mov qword [rsp + 0x30], r13
sub qword [rsp + 0x38], 1
jne 0x140030e30
test rdi, rdi
je 0x14003101b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rsi
jmp 0x14003101b
mov dword [rsp + 0x20], edi
mov r9, qword [rbx]
mov r8d, 0x219
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_open__s__x
call fcn.140075db0
mov rbx, qword [rbp - 0x40]
mov rdi, qword [rbp]
test rdi, rdi
je 0x14003102a
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14003106b
sub r12, rcx
and r12, 0xfffffffffffffff0
mov rax, rcx
cmp r12, 0x1000
jb 0x140031062
add r12, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031062
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r12
call fcn.1400f4438
nop
test rbx, rbx
je 0x140030c63
mov rdx, qword [rbp - 0x30]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400310a7
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400310a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400f4438
jmp 0x140030c63
mov ecx, 0x80070057
call fcn.14000ce90
int3