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

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
movaps xmm0, xmmword [str.SYSTEMCurrentControlSet_servicesBTHPORTParametersPnpId]
lea rcx, [rbp + 0x36]
movaps xmm1, xmmword [0x14003e370]
xor edx, edx
mov eax, dword [0x14003e3d0]
mov r8d, 0x192
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x14003e380]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [0x14003e3a0]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm1, xmmword [0x14003e390]
movaps xmmword [rbp], xmm0
movaps xmm0, xmmword [0x14003e3c0]
movaps xmmword [rbp - 0x10], xmm1
movaps xmm1, xmmword [0x14003e3b0]
mov dword [rbp + 0x30], eax
movzx eax, word [0x14003e3d4]
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm1
mov word [rbp + 0x34], ax
call fcn.14001c4c0
xor edi, edi
mov dword [rsp + 0x64], 8
xor edx, edx
mov dword [rsp + 0x60], edi
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.14001c4c0
xor edx, edx
lea rcx, [rbp + 0x3e0]
mov r8d, 0x208
call fcn.14001c4c0
mov eax, dword [0x14003e3e0]
lea rdx, [rbp - 0x40]
movsd xmm0, qword [str.BTHPAN]
mov r9d, 0xf003f
mov dword [rbp - 0x80], eax
xor r8d, r8d
movzx eax, word [0x14003e3e4]
mov rcx, 0xffffffff80000002
mov word [rbp - 0x7c], ax
xor eax, eax
mov qword [rbp - 0x7a], rax
mov qword [rbp - 0x72], rax
mov eax, dword [0x14003e3f8]
mov dword [rbp - 0x58], eax
xor eax, eax
movsd qword [rsp + 0x78], xmm0
movups xmm0, xmmword [str.MS_BTHPAN]
mov qword [rbp - 0x54], rax
mov word [rbp - 0x4c], ax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 0x208
movups xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002957
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], rdi
xor edx, edx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000295e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140002a46
mov qword [rsp + 0x710], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x140002a31
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.14001c4c0
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x64]
lea rax, [rbp + 0x3e0]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x1d0]
lea rax, [rsp + 0x74]
mov edx, ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140002a07
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x78]
call fcn.140022254
test eax, eax
jne 0x140002a07
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp - 0x68]
call fcn.140022254
test eax, eax
je 0x140002a15
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140002980
jmp 0x140002a31
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x710]
mov eax, edi
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.14001a550
mov rdi, qword [rsp + 0x718]
add rsp, 0x700
pop rbp
ret