Function at 0x140016180
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 [0x14004e010]
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.14001a030
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x210
call fcn.14001c4c0
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
lea rcx, [rbp + 8]
movaps xmm1, xmmword [0x140040fa0]
xor r15d, r15d
movaps xmmword [rbp - 0x50], xmm0
xor edx, edx
movaps xmm0, xmmword [0x140040fb0]
mov r8d, 0x1b0
movaps xmmword [rbp - 0x40], xmm1
movaps xmm1, xmmword [0x140040fc0]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm0, xmmword [0x140040fd0]
movaps xmmword [rbp - 0x20], xmm1
movsd xmm1, qword [0x140040fe0]
movaps xmmword [rbp - 0x10], xmm0
movsd qword [rbp], xmm1
mov dword [rsp + 0x40], r15d
call fcn.14001c4c0
lea rax, str.hwids
mov dword [rsp + 0x60], r15d
mov qword [rbp + 0x3d0], rax
lea r13, [0x1400070d0]
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.140011030
lea esi, [r15 + 1]
test eax, eax
jne 0x1400162ec
mov ecx, esi
cmp dword [rsp + 0x60], r15d
jne 0x1400162d2
call fcn.1400227cc
mov rcx, rax
xor r8d, r8d
mov edx, 0xebf3
call fcn.140010750
jmp 0x1400162ec
call fcn.1400227cc
mov r8d, dword [rsp + 0x60]
mov rcx, rax
xor r9d, r9d
mov edx, 0xebf5
call fcn.140010750
lea rcx, str.Finish_getting_hwid._n
call fcn.14000e530
lea rdx, str.Finish_getting_hwid._n
mov ecx, 2
call fcn.14001a030
cmp dword [0x1400516d0], r15d
lea r14, [0x1400514c0]
jne 0x1400164b3
mov qword [rsp + 0x528], rdi
lea rcx, str.Dynamic_lock_checks_hwid._n
mov qword [rsp + 0x530], r12
call fcn.14000e530
lea rdx, str.Dynamic_lock_checks_hwid._n
mov ecx, 2
call fcn.14001a030
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.14000e530
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x14001638e
inc edi
cmp edi, 6
jl 0x140016354
jmp 0x1400164a3
lea rcx, str.Dynamic_lock_finds_hwid._n
call fcn.14000e530
lea rdx, str.Dynamic_lock_finds_hwid._n
mov ecx, 2
call fcn.14001a030
lea rcx, str.Set_registry_for_dynamic_lock_n
mov dword [0x1400516d0], esi
call fcn.14000e530
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 0x1400164a3
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 0x140016442
lea rcx, str.Set_BluetoothRssiMin_to_30__n
call fcn.14000e530
lea rdx, str.Set_BluetoothRssiMin_to_30__n
mov ecx, 2
call fcn.14001a030
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 0x140016498
lea rcx, str.Set_BluetoothRssiMaxDelta_to_20__n
call fcn.14000e530
lea rdx, str.Set_BluetoothRssiMaxDelta_to_20__n
mov ecx, 2
call fcn.14001a030
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.14000e530
lea rdx, str.Enter_IsSpecificDriverRight___n
mov ecx, 2
call fcn.14001a030
lea rax, str.status
mov dword [0x1400516cc], r15d
mov qword [rsp + 0x50], rax
mov ebx, 3
lea rax, [rbp - 0x78]
mov dword [0x1400516c8], 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 [0x1400514bc], r15d
mov qword [rsp + 0x58], r14
mov dword [rbp - 0x78], r15d
mov dword [rbp - 0x74], ebx
call fcn.140011030
mov r13, qword [rsp + 0x4f8]
test eax, eax
jne 0x14001656c
mov ecx, esi
cmp dword [rbp - 0x78], r15d
jne 0x140016553
call fcn.1400227cc
mov rcx, rax
xor r8d, r8d
mov edx, 0xebf3
call fcn.140010750
jmp 0x14001656c
call fcn.1400227cc
mov r8d, dword [rbp - 0x78]
mov rcx, rax
xor r9d, r9d
mov edx, 0xebf5
call fcn.140010750
cmp dword [0x1400514bc], r15d
jne 0x14001657d
mov ebx, r15d
jmp 0x1400165fd
cmp dword [0x1400516c8], r15d
mov rdx, r14
je 0x1400165b0
lea rcx, str.The_specific_driver_is_not_configured__Hardware_ID_is__s_n
call fcn.14000e530
mov r8, r14
lea rdx, str.The_specific_driver_is_not_configured__Hardware_ID_is__s_n
mov ecx, 2
call fcn.14001a030
mov ebx, 2
jmp 0x1400165fd
cmp dword [0x1400516cc], r15d
je 0x1400165db
lea rcx, str.The_specific_driver_is_disabled__Hardware_ID_is__s_n
call fcn.14000e530
mov r8, r14
lea rdx, str.The_specific_driver_is_disabled__Hardware_ID_is__s_n
mov ecx, 2
call fcn.14001a030
jmp 0x1400165fd
lea rcx, str.The_specific_driver_works_fine__Hardware_ID_is__s_n
call fcn.14000e530
mov r8, r14
lea rdx, str.The_specific_driver_is_works_fine__Hardware_ID_is__s_n
mov ecx, 2
call fcn.14001a030
mov ebx, esi
lea rcx, str.Leave_IsSpecificDriverRight___n
mov dword [0x1400516cc], r15d
mov dword [0x1400516c8], r15d
mov dword [0x1400514bc], r15d
call fcn.14000e530
lea rdx, str.Leave_IsSpecificDriverRight___n
mov ecx, 2
call fcn.14001a030
mov dword [rbp + 0x1c0], ebx
test ebx, ebx
je 0x140016662
mov rdx, r14
lea rcx, str.CheckAndRecoverDevice_Find_Dongle_is__s._n
call fcn.14000e530
mov r8, r14
lea rdx, str.CheckAndRecoverDevice_Find_Dongle_is__s._n
mov ecx, 2
call fcn.14001a030
mov ebx, dword [rbp + 0x1c0]
mov r14, qword [rsp + 0x4f0]
cmp ebx, 2
mov rbx, qword [rsp + 0x520]
jne 0x1400166ac
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.14001a030
mov eax, dword [0x14004fbb0]
inc eax
mov dword [0x14004fbb0], eax
mov dword [0x14004fbac], r15d
jmp 0x1400166c4
mov eax, dword [0x14004fbac]
mov esi, r15d
inc eax
mov dword [0x14004fbac], eax
mov dword [0x14004fbb0], r15d
lea rcx, [rbp + 0x1c0]
call fcn.140014a70
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.14001a030
mov eax, esi
mov rcx, qword [rbp + 0x3e8]
xor rcx, rsp
call fcn.14001a550
add rsp, 0x500
pop r15
pop rsi
pop rbp
ret