Function at 0x1400038f0
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 [0x140043468]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
movaps xmm0, xmmword [str.SYSTEMCurrentControlSet_servicesBTHPORTParametersPnpId]
movaps xmm1, xmmword [0x140033c30]
mov eax, dword [0x140033c90]
mov dword [rbp + 0x30], eax
movzx eax, word [0x140033c94]
lea rcx, [rbp + 0x36]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x140033c40]
movaps xmmword [rbp - 0x30], xmm1
xor edx, edx
mov r8d, 0x192
mov word [rbp + 0x34], ax
movaps xmm1, xmmword [0x140033c50]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [0x140033c60]
movaps xmmword [rbp], xmm0
movaps xmm0, xmmword [0x140033c80]
movaps xmmword [rbp - 0x10], xmm1
movaps xmm1, xmmword [0x140033c70]
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm1
call fcn.14001dd20
xor edi, edi
lea rcx, [rbp + 0x1d2]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x70], 8
mov word [rbp + 0x1d0], di
call fcn.14001dd20
lea rcx, [rbp + 0x3e2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x3e0], di
call fcn.14001dd20
mov rax, qword [str.BTHPAN]
mov qword [rbp - 0x60], rax
mov eax, dword [0x140033ca0]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x58], eax
movzx eax, word [0x140033ca4]
mov r9d, 0xf003f
mov word [rbp - 0x54], ax
xor eax, eax
xor r8d, r8d
mov qword [rbp - 0x52], rax
mov qword [rbp - 0x4a], rax
mov rax, qword [str.MS_BTHPAN]
mov qword [rbp - 0x80], rax
mov rax, qword [0x140033cb0]
mov rcx, 0xffffffff80000002
mov qword [rbp - 0x78], rax
mov eax, dword [0x140033cb8]
mov dword [rsp + 0x74], 0x208
mov dword [rbp - 0x70], eax
xor eax, eax
mov qword [rbp - 0x6c], rax
mov word [rbp - 0x64], ax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003a9d
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140003aa4
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140003b85
mov qword [rsp + 0x710], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x140003b70
nop dword [rax + rax]
lea rcx, [rbp + 0x1d0]
xor edx, edx
mov r8d, 0x208
call fcn.14001dd20
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x3e0]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
lea r8, [rbp + 0x1d0]
mov qword [rsp + 0x28], rax
mov edx, ebx
mov dword [rsp + 0x70], 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140003b46
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x60]
call fcn.14001a900
test eax, eax
jne 0x140003b46
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp - 0x80]
call fcn.14001a900
test eax, eax
je 0x140003b54
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140003ac0
jmp 0x140003b70
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, 1
test eax, eax
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.14001a650
mov rdi, qword [rsp + 0x718]
add rsp, 0x700
pop rbp
ret