Function at 0x140015430
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 [0x140052010]
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.1400194a0
xor edx, edx
lea rcx, [rbp + 0x1c4]
mov r8d, 0x20c
call fcn.14001bd50
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
lea rcx, [rbp + 8]
movaps xmm1, xmmword [0x1400454d0]
xor r15d, r15d
movaps xmmword [rbp - 0x50], xmm0
xor edx, edx
movaps xmm0, xmmword [0x1400454e0]
mov r8d, 0x1b0
movaps xmmword [rbp - 0x40], xmm1
movaps xmm1, xmmword [0x1400454f0]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm0, xmmword [0x140045500]
movaps xmmword [rbp - 0x20], xmm1
movsd xmm1, qword [0x140045510]
movaps xmmword [rbp - 0x10], xmm0
movsd qword [rbp], xmm1
mov dword [rsp + 0x40], r15d
call fcn.14001bd50
lea rax, str.hwids
mov dword [rsp + 0x60], r15d
mov qword [rbp + 0x3d0], rax
lea r13, [0x140006df0]
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.140010520
lea esi, [r15 + 1]
test eax, eax
jne 0x14001559c
mov ecx, esi
cmp dword [rsp + 0x60], r15d
jne 0x140015582
call fcn.140025d28
mov rcx, rax
xor r8d, r8d
mov edx, 0xebf3
call fcn.14000fcf0
jmp 0x14001559c
call fcn.140025d28
mov r8d, dword [rsp + 0x60]
mov rcx, rax
xor r9d, r9d
mov edx, 0xebf5
call fcn.14000fcf0
lea rcx, str.Finish_getting_hwid._n
call fcn.14000db70
lea rdx, str.Finish_getting_hwid._n
mov ecx, 2
call fcn.1400194a0
cmp dword [0x1400554b4], r15d
lea r14, [0x1400554c0]
jne 0x14001576e
mov qword [rsp + 0x528], rdi
lea rcx, str.Dynamic_lock_checks_hwid._n
mov qword [rsp + 0x530], r12
call fcn.14000db70
lea rdx, str.Dynamic_lock_checks_hwid._n
mov ecx, 2
call fcn.1400194a0
mov edi, r15d
lea r12, str.USBVID_13D3PID_3491
nop dword [rax]
nop dword [rax + rax]
mov eax, 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.14000db70
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x140015649
inc edi
cmp edi, 6
jl 0x140015610
jmp 0x14001575e
lea rcx, str.Dynamic_lock_finds_hwid._n
call fcn.14000db70
lea rdx, str.Dynamic_lock_finds_hwid._n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.Set_registry_for_dynamic_lock_n
mov dword [0x1400554b4], esi
call fcn.14000db70
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 0x14001575e
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 0x1400156fd
lea rcx, str.Set_BluetoothRssiMin_to_30__n
call fcn.14000db70
lea rdx, str.Set_BluetoothRssiMin_to_30__n
mov ecx, 2
call fcn.1400194a0
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 0x140015753
lea rcx, str.Set_BluetoothRssiMaxDelta_to_20__n
call fcn.14000db70
lea rdx, str.Set_BluetoothRssiMaxDelta_to_20__n
mov ecx, 2
call fcn.1400194a0
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.14000db70
lea rdx, str.Enter_IsSpecificDriverRight___n
mov ecx, 2
call fcn.1400194a0
lea rax, str.status
mov dword [0x1400554b0], r15d
mov qword [rsp + 0x50], rax
mov ebx, 3
lea rax, [rbp - 0x78]
mov dword [0x1400554ac], 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 [0x1400554a8], r15d
mov qword [rsp + 0x58], r14
mov dword [rbp - 0x78], r15d
mov dword [rbp - 0x74], ebx
call fcn.140010520
mov r13, qword [rsp + 0x4f8]
test eax, eax
jne 0x140015827
mov ecx, esi
cmp dword [rbp - 0x78], r15d
jne 0x14001580e
call fcn.140025d28
mov rcx, rax
xor r8d, r8d
mov edx, 0xebf3
call fcn.14000fcf0
jmp 0x140015827
call fcn.140025d28
mov r8d, dword [rbp - 0x78]
mov rcx, rax
xor r9d, r9d
mov edx, 0xebf5
call fcn.14000fcf0
cmp dword [0x1400554a8], r15d
jne 0x140015838
mov ebx, r15d
jmp 0x1400158b8
cmp dword [0x1400554ac], r15d
mov rdx, r14
je 0x14001586b
lea rcx, str.The_specific_driver_is_not_configured__Hardware_ID_is__s_n
call fcn.14000db70
mov r8, r14
lea rdx, str.The_specific_driver_is_not_configured__Hardware_ID_is__s_n
mov ecx, 2
call fcn.1400194a0
mov ebx, 2
jmp 0x1400158b8
cmp dword [0x1400554b0], r15d
je 0x140015896
lea rcx, str.The_specific_driver_is_disabled__Hardware_ID_is__s_n
call fcn.14000db70
mov r8, r14
lea rdx, str.The_specific_driver_is_disabled__Hardware_ID_is__s_n
mov ecx, 2
call fcn.1400194a0
jmp 0x1400158b8
lea rcx, str.The_specific_driver_works_fine__Hardware_ID_is__s_n
call fcn.14000db70
mov r8, r14
lea rdx, str.The_specific_driver_is_works_fine__Hardware_ID_is__s_n
mov ecx, 2
call fcn.1400194a0
mov ebx, esi
lea rcx, str.Leave_IsSpecificDriverRight___n
mov dword [0x1400554b0], r15d
mov dword [0x1400554ac], r15d
mov dword [0x1400554a8], r15d
call fcn.14000db70
lea rdx, str.Leave_IsSpecificDriverRight___n
mov ecx, 2
call fcn.1400194a0
mov dword [rbp + 0x1c0], ebx
test ebx, ebx
je 0x14001591d
mov rdx, r14
lea rcx, str.CheckAndRecoverDevice_Find_Dongle_is__s._n
call fcn.14000db70
mov r8, r14
lea rdx, str.CheckAndRecoverDevice_Find_Dongle_is__s._n
mov ecx, 2
call fcn.1400194a0
mov ebx, dword [rbp + 0x1c0]
mov r14, qword [rsp + 0x4f0]
cmp ebx, 2
mov rbx, qword [rsp + 0x520]
jne 0x140015967
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.1400194a0
mov eax, dword [0x140053bd0]
inc eax
mov dword [0x140053bd0], eax
mov dword [0x140053bcc], r15d
jmp 0x14001597f
mov eax, dword [0x140053bcc]
mov esi, r15d
inc eax
mov dword [0x140053bcc], eax
mov dword [0x140053bd0], r15d
lea rcx, [rbp + 0x1c0]
call fcn.140013f40
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.1400194a0
mov eax, esi
mov rcx, qword [rbp + 0x3e8]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x500
pop r15
pop rsi
pop rbp
ret