Function at 0x140015490
Capabilities:
Print debug messages
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push r15
lea rbp, [r11 - 0x418]
sub rsp, 0x500
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rbp + 0x3e8], rax
mov qword [r11 + 8], rbx
lea rcx, str.Enter_function_CheckAndRecoverDevice___n
mov qword [r11 - 0x20], r13
mov qword [r11 - 0x28], r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Enter_function_CheckAndRecoverDevice___n
mov ecx, 2
call fcn.140019630
xor edx, edx
lea rcx, [rbp + 0x1c4]
mov r8d, 0x20c
call fcn.14001b960
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
lea rcx, [rbp + 8]
movaps xmm1, xmmword [0x140040060]
xor r15d, r15d
movaps xmmword [rbp - 0x50], xmm0
xor edx, edx
movaps xmm0, xmmword [0x140040070]
mov r8d, 0x1b0
movaps xmmword [rbp - 0x40], xmm1
movaps xmm1, xmmword [0x140040080]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm0, xmmword [0x140040090]
movaps xmmword [rbp - 0x20], xmm1
movsd xmm1, qword [0x1400400a0]
movaps xmmword [rbp - 0x10], xmm0
movsd qword [rbp], xmm1
mov dword [rsp + 0x40], r15d
call fcn.14001b960
lea rax, str.hwids
mov dword [rsp + 0x60], r15d
mov qword [rbp + 0x3d0], rax
lea r13, [0x140006e50]
lea rax, str.bluetooth
mov dword [rsp + 0x64], 0x11
mov qword [rbp + 0x3d8], rax
mov r9d, 2
lea rax, str._USB
xor edx, edx
mov qword [rbp + 0x3e0], rax
mov r8d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3d8]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.140010570
lea esi, [r15 + 1]
test eax, eax
jne 0x1400155fc
mov ecx, esi
cmp dword [rsp + 0x60], r15d
jne 0x1400155e2
call fcn.140021e20
mov rcx, rax
xor r8d, r8d
mov edx, 0xebf3
call fcn.14000fcc0
jmp 0x1400155fc
call fcn.140021e20
mov r8d, dword [rsp + 0x60]
mov rcx, rax
xor r9d, r9d
mov edx, 0xebf5
call fcn.14000fcc0
lea rcx, str.Finish_getting_hwid._n
call fcn.14000db40
lea rdx, str.Finish_getting_hwid._n
mov ecx, 2
call fcn.140019630
cmp dword [0x1400506c0], r15d
lea r14, [0x1400504b0]
jne 0x1400157c3
mov qword [rsp + 0x528], rdi
lea rcx, str.Dynamic_lock_checks_hwid._n
mov qword [rsp + 0x530], r12
call fcn.14000db40
lea rdx, str.Dynamic_lock_checks_hwid._n
mov ecx, 2
call fcn.140019630
mov edi, r15d
lea r12, str.USBVID_13D3PID_3491
movsxd rax, edi
lea rcx, str.Dynamic_lock_search_hwid._num___d__hwid___s_n
imul rbx, rax, 0x208
mov edx, edi
add rbx, r12
mov r8, rbx
call fcn.14000db40
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x14001569e
inc edi
cmp edi, 6
jl 0x140015664
jmp 0x1400157b3
lea rcx, str.Dynamic_lock_finds_hwid._n
call fcn.14000db40
lea rdx, str.Dynamic_lock_finds_hwid._n
mov ecx, 2
call fcn.140019630
lea rcx, str.Set_registry_for_dynamic_lock_n
mov dword [0x1400506c0], esi
call fcn.14000db40
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionNaAuth
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400157b3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.BluetoothRssiMin
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x1e
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140015752
lea rcx, str.Set_BluetoothRssiMin_to_30__n
call fcn.14000db40
lea rdx, str.Set_BluetoothRssiMin_to_30__n
mov ecx, 2
call fcn.140019630
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.BluetoothRssiMaxDelta
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400157a8
lea rcx, str.Set_BluetoothRssiMaxDelta_to_20__n
call fcn.14000db40
lea rdx, str.Set_BluetoothRssiMaxDelta_to_20__n
mov ecx, 2
call fcn.140019630
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x528]
mov r12, qword [rsp + 0x530]
lea rcx, str.Enter_IsSpecificDriverRight___n
call fcn.14000db40
lea rdx, str.Enter_IsSpecificDriverRight___n
mov ecx, 2
call fcn.140019630
lea rax, str.status
mov dword [0x1400506bc], r15d
mov qword [rsp + 0x50], rax
mov ebx, 3
lea rax, [rbp - 0x78]
mov dword [0x1400506b8], r15d
mov qword [rsp + 0x30], rax
mov r9d, esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], r13
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8d, [rbx - 1]
mov dword [0x1400504ac], r15d
mov qword [rsp + 0x58], r14
mov dword [rbp - 0x78], r15d
mov dword [rbp - 0x74], ebx
call fcn.140010570
mov r13, qword [rsp + 0x4f8]
test eax, eax
jne 0x14001587c
mov ecx, esi
cmp dword [rbp - 0x78], r15d
jne 0x140015863
call fcn.140021e20
mov rcx, rax
xor r8d, r8d
mov edx, 0xebf3
call fcn.14000fcc0
jmp 0x14001587c
call fcn.140021e20
mov r8d, dword [rbp - 0x78]
mov rcx, rax
xor r9d, r9d
mov edx, 0xebf5
call fcn.14000fcc0
cmp dword [0x1400504ac], r15d
jne 0x14001588d
mov ebx, r15d
jmp 0x14001590d
cmp dword [0x1400506b8], r15d
mov rdx, r14
je 0x1400158c0
lea rcx, str.The_specific_driver_is_not_configured__Hardware_ID_is__s_n
call fcn.14000db40
mov r8, r14
lea rdx, str.The_specific_driver_is_not_configured__Hardware_ID_is__s_n
mov ecx, 2
call fcn.140019630
mov ebx, 2
jmp 0x14001590d
cmp dword [0x1400506bc], r15d
je 0x1400158eb
lea rcx, str.The_specific_driver_is_disabled__Hardware_ID_is__s_n
call fcn.14000db40
mov r8, r14
lea rdx, str.The_specific_driver_is_disabled__Hardware_ID_is__s_n
mov ecx, 2
call fcn.140019630
jmp 0x14001590d
lea rcx, str.The_specific_driver_works_fine__Hardware_ID_is__s_n
call fcn.14000db40
mov r8, r14
lea rdx, str.The_specific_driver_is_works_fine__Hardware_ID_is__s_n
mov ecx, 2
call fcn.140019630
mov ebx, esi
lea rcx, str.Leave_IsSpecificDriverRight___n
mov dword [0x1400506bc], r15d
mov dword [0x1400506b8], r15d
mov dword [0x1400504ac], r15d
call fcn.14000db40
lea rdx, str.Leave_IsSpecificDriverRight___n
mov ecx, 2
call fcn.140019630
mov dword [rbp + 0x1c0], ebx
test ebx, ebx
je 0x140015972
mov rdx, r14
lea rcx, str.CheckAndRecoverDevice_Find_Dongle_is__s._n
call fcn.14000db40
mov r8, r14
lea rdx, str.CheckAndRecoverDevice_Find_Dongle_is__s._n
mov ecx, 2
call fcn.140019630
mov ebx, dword [rbp + 0x1c0]
mov r14, qword [rsp + 0x4f0]
cmp ebx, 2
mov rbx, qword [rsp + 0x520]
jne 0x1400159bc
lea rcx, str.Status.configStatus__DeviceNotConfigurate_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Status.configStatus__DeviceNotConfigurate_n
mov ecx, 2
call fcn.140019630
mov eax, dword [0x14004ebc0]
inc eax
mov dword [0x14004ebc0], eax
mov dword [0x14004ebbc], r15d
jmp 0x1400159d4
mov eax, dword [0x14004ebbc]
mov esi, r15d
inc eax
mov dword [0x14004ebbc], eax
mov dword [0x14004ebc0], r15d
lea rcx, [rbp + 0x1c0]
call fcn.140013fa0
lea rcx, str.Leave_function_CheckAndRecoverDevice___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Leave_function_CheckAndRecoverDevice___n
mov ecx, 2
call fcn.140019630
mov eax, esi
mov rcx, qword [rbp + 0x3e8]
xor rcx, rsp
call fcn.140019b40
add rsp, 0x500
pop r15
pop rsi
pop rbp
ret