Function at 0x140027120
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 [0x140178010]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rbx, rdx
test rdx, rdx
jne 0x1400271a0
mov r8d, 0x1bc
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14006dd20
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400df340
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, 0x1df
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_EpId_s
call fcn.14006dd20
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 [0x140106098]
movups xmmword [rbp - 0x28], xmm0
add rbx, 0x130
mov r8, qword [rbx]
cmp dword [r8 - 8], 1
jle 0x1400272cc
mov edx, dword [r8 - 0x10]
mov rcx, rbx
call fcn.140004680
mov r8, qword [rbx]
mov rdx, 0xffffffff80000002
mov r9d, 0x2001b
lea rcx, [rbp]
call fcn.14002b400
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400272f0
mov eax, esi
jmp 0x140027302
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400275c4
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400275c4
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
test edi, edi
jne 0x140027503
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 [0x140106098]
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.1400258e0
mov r15, qword [rsp + r13 + 0x40]
lea r8, [rbp - 0x40]
mov rdx, r15
lea rcx, [rbp]
call fcn.1400254b0
mov rax, qword [rbp - 0x28]
cmp rax, qword [0x140106098]
jne 0x14002739b
mov rax, qword [rbp - 0x20]
cmp rax, qword [0x1401060a0]
jne 0x14002739b
mov rbx, qword [rbp - 0x40]
jmp 0x1400274ba
mov r14, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
sub r14, rbx
mov rsi, r14
sar rsi, 4
cmp rsi, 1
jae 0x1400273f7
mov qword [rbp - 0x38], rbx
cmp rbx, qword [rbp - 0x30]
je 0x1400273ce
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbx], xmm0
lea rax, [rbx + 0x10]
mov qword [rbp - 0x38], rax
jmp 0x1400273de
lea r8, [rbp - 0x28]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14002afa0
lea r8, [rbp - 0x40]
mov rdx, r15
lea rcx, [rbp]
call fcn.1400256e0
mov rbx, qword [rbp - 0x40]
jmp 0x1400274b8
mov r15, qword [rbp - 0x18]
mov qword [rbp - 0x10], r15
mov rax, r12
sub rax, r15
sar rax, 4
cmp rsi, rax
jbe 0x140027429
lfence
mov rdx, rsi
lea rcx, [rbp - 0x18]
call fcn.14002b1e0
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.1400e5de0
lea rdx, [r14 + r15]
mov qword [rbp - 0x10], rdx
test esi, esi
jle 0x14002747f
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 0x140027466
mov rax, qword [rcx + 8]
sub rax, r9
test rax, rax
cmove edi, r13d
add rcx, 0x10
sub r8, r13
jne 0x140027457
test edi, edi
mov r13, qword [rsp + 0x30]
jne 0x1400274a2
cmp rdx, r12
je 0x140027495
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdx], xmm0
add rdx, 0x10
mov qword [rbp - 0x10], rdx
jmp 0x1400274a2
lea r8, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call fcn.14002afa0
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + r13 + 0x40]
lea rcx, [rbp]
call fcn.1400256e0
mov r12, qword [rbp - 8]
xor esi, esi
mov rdi, qword [rbp + r13 - 0x80]
mov rdx, rdi
lea rcx, [rbp]
call fcn.14002b2c0
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 0x140027340
test rdi, rdi
je 0x14002752b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rsi
jmp 0x14002752b
mov dword [rsp + 0x20], edi
mov r9, qword [rbx]
mov r8d, 0x218
lea rdx, str.CRtkBssGen4BtUsbApoChainModifier::RemoveLegacyAPOKey
lea rcx, str._s__d_open__s__x
call fcn.14006dd20
mov rbx, qword [rbp - 0x40]
mov rdi, qword [rbp]
test rdi, rdi
je 0x14002753a
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 0x14002757b
sub r12, rcx
and r12, 0xfffffffffffffff0
mov rax, rcx
cmp r12, 0x1000
jb 0x140027572
add r12, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140027572
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r12
call fcn.1400df368
nop
test rbx, rbx
je 0x140027173
mov rdx, qword [rbp - 0x30]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400275b7
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400275b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400df368
jmp 0x140027173
mov ecx, 0x80070057
call fcn.140004f30
int3