Function at 0x140014590
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.1400097d0
lea rcx, str.DeviceRecoverPolicy
mov ebp, eax
call fcn.140014230
lea rcx, str.ForceEnable
mov edi, eax
call fcn.140014230
mov esi, eax
cmp edi, 0xffffffff
jne 0x1400145f5
cmp ebp, 0x14
jl 0x1400145e9
mov edi, 4
lea rcx, str.Enter_HandleAdapterStatus__set_default_policy_to_0x_x___n_n
mov edx, edi
call fcn.14000db40
jmp 0x1400145fd
cmp ebp, 0xa
jne 0x1400145fd
mov edi, 0x10000
jmp 0x1400145fd
test edi, edi
je 0x140014e5f
xor eax, eax
lea rdx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
cmp esi, 0xffffffff
mov r8d, edi
cmove esi, eax
mov r9d, esi
lea ecx, [rax + 2]
call fcn.140018d20
mov r8d, esi
lea rcx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
mov edx, edi
call fcn.14000db40
test rbx, rbx
je 0x140014e5f
add ebp, 0xfffffff6
cmp ebp, 0x2c
ja case.0x14001465c.11
lea rdx, [0x140000000]
movsxd rax, ebp
movzx eax, byte [rdx + rax + 0x14e8c]
mov ecx, dword [rdx + rax*4 + 0x14e74]
add rcx, rdx
jmp rcx
mov eax, dword [rbx]
dec eax
cmp eax, 1
ja case.0x14001465c.11
bt edi, 0x10
jae case.0x14001465c.11
lea rcx, [rbx + 8]
call fcn.1400137e0
jmp case.0x14001465c.11
bt edi, 0x11
jae 0x140014695
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
jmp 0x140014e55
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400147a2
sub ecx, 1
je 0x14001478a
cmp ecx, 1
jne case.0x14001465c.11
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotConfigurate__n
call fcn.14000db40
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d__n
call fcn.14000db40
cmp dword [rbx + 4], 0xffffffff
je 0x1400146ec
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014230
cmp esi, eax
je 0x1400146ec
mov ecx, esi
call fcn.140014300
test dil, 1
jne 0x1400148d4
test dil, 2
jne 0x1400148f4
test dil, 4
je 0x140014d78
mov edx, 1
mov dword [0x14004d7ac], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.140018d20
call fcn.1400097d0
cmp eax, 0x32
jl 0x14001476d
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.140018d20
mov dword [0x14004be94], 1
mov ecx, dword [0x14004be70]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014bf6
lea rcx, str.HandleAdapterStatus__WIN7__DeviceWorksFine__n
call fcn.14000db40
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x140014db3
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotFound__n
call fcn.14000db40
lea rcx, str.ControllerIndex
call fcn.140014230
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014300
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x140014e29
bt edi, 0x11
jae 0x1400147fa
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov ecx, 2
call fcn.140018d20
lea rcx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140014e5f
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400149cd
sub ecx, 1
je 0x1400149a4
sub ecx, 1
je 0x140014838
cmp ecx, 1
jne case.0x14001465c.11
lea rdx, str.HandleAdapterStatus__WIN8__DeviceDisabled_n
mov ecx, 2
call fcn.140018d20
lea rcx, str.HandleAdapterStatus__WIN8__DeviceDisabled__n
jmp 0x140014bc1
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_n
mov ecx, 2
call fcn.140018d20
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate__n
call fcn.14000db40
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
call fcn.14000db40
mov eax, dword [0x14004be90]
cmp eax, dword [0x14004be98]
jae 0x1400148a1
mov r8d, dword [0x14004be90]
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.140018d20
mov edx, dword [0x14004be90]
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
call fcn.14000db40
jmp case.0x14001465c.11
cmp dword [rbx + 4], 0xffffffff
je 0x1400148c1
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014230
cmp esi, eax
je 0x1400148c1
mov ecx, esi
call fcn.140014300
test dil, 1
je 0x1400148e1
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140013300
jmp case.0x14001465c.11
test dil, 2
je 0x1400148fc
lea rcx, str.policy__POLICY_YM_RESET_ROOT_HUB_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
jmp 0x140014e49
test dil, 4
je 0x140014d78
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Try_to_reset_the_not_configurated_dongle_n
mov ecx, 2
call fcn.140018d20
mov edx, 1
mov dword [0x14004d7ac], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.140018d20
call fcn.1400097d0
cmp eax, 0x32
jl 0x140014987
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.140018d20
mov dword [0x14004be94], 1
mov ecx, dword [0x14004be70]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014bf6
lea rdx, str.HandleAdapterStatus__WIN8__DeviceWorksFine_n
mov ecx, 2
call fcn.140018d20
lea rcx, str.HandleAdapterStatus__WIN8__DeviceWorksFine__n
call fcn.14000db40
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x140014db3
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
mov ecx, 2
call fcn.140018d20
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
call fcn.14000db40
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014230
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014300
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x140014e29
bt edi, 0x11
jb 0x1400147d7
mov ecx, dword [rbx]
test ecx, ecx
je 0x140014b3e
sub ecx, 1
je 0x140014b26
cmp ecx, 1
jne case.0x14001465c.11
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotConfigurate__n
call fcn.14000db40
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
call fcn.14000db40
cmp dword [rbx + 4], 0xffffffff
je 0x140014a7b
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014230
cmp esi, eax
je 0x140014a7b
mov ecx, esi
call fcn.140014300
test dil, 1
jne 0x1400148c7
test dil, 2
jne 0x1400148e7
test dil, 4
je 0x140014d78
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 1
mov dword [0x14004d7ac], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.140018d20
call fcn.1400097d0
cmp eax, 0x32
jl 0x140014b09
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.140018d20
mov dword [0x14004be94], 1
mov ecx, dword [0x14004be70]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014bf6
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceWorksFine__n
call fcn.14000db40
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
jmp 0x140014db3
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotFound__n
call fcn.14000db40
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014230
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014300
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
jmp 0x140014e29
bt edi, 0x11
jb 0x1400147d7
mov ecx, dword [rbx]
test ecx, ecx
je 0x140014de1
sub ecx, 1
je 0x140014d8f
sub ecx, 1
je 0x140014c33
cmp ecx, 1
jne case.0x14001465c.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceDisabled_n
mov ecx, 2
call fcn.140018d20
lea rcx, str.HandleAdapterStatus__WIN10__DeviceDisabled__n
call fcn.14000db40
test dil, 4
je case.0x14001465c.11
test esi, esi
je case.0x14001465c.11
lea rcx, str.Forcedly_enable_the_disabled_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Forcedly_enable_the_disabled_dongle_n
mov ecx, 2
call fcn.140018d20
xor edx, edx
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
xor r8d, r8d
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 2]
call fcn.140018d20
mov ecx, dword [0x14004be70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp case.0x14001465c.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_n
mov ecx, 2
call fcn.140018d20
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate__n
call fcn.14000db40
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
call fcn.14000db40
mov eax, dword [0x14004be90]
cmp eax, dword [0x14004be98]
jae 0x140014c9c
mov r8d, dword [0x14004be90]
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.140018d20
mov edx, dword [0x14004be90]
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
call fcn.14000db40
jmp case.0x14001465c.11
cmp dword [rbx + 4], 0xffffffff
je 0x140014cbc
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014230
cmp esi, eax
je 0x140014cbc
mov ecx, esi
call fcn.140014300
test dil, 1
jne 0x1400148c7
test dil, 2
jne 0x1400148e7
test dil, 4
je 0x140014d78
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Try_to_reset_the_not_configurated_dongle_n
mov ecx, 2
call fcn.140018d20
mov edx, 1
mov dword [0x14004d7ac], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.140018d20
call fcn.1400097d0
cmp eax, 0x32
jl 0x140014d5b
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.140018d20
mov dword [0x14004be94], 1
mov ecx, dword [0x14004be70]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014bf6
test dil, 8
je case.0x14001465c.11
mov ecx, dword [rbx + 4]
call fcn.140014390
jmp case.0x14001465c.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceWorksFine_n
mov ecx, 2
call fcn.140018d20
lea rcx, str.HandleAdapterStatus__WIN10__DeviceWorksFine__n
call fcn.14000db40
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000db40
cmp dword [rbx + 4], 0xffffffff
je case.0x14001465c.11
mov ebx, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014230
cmp ebx, eax
je case.0x14001465c.11
mov ecx, ebx
call fcn.140014300
jmp case.0x14001465c.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
mov ecx, 2
call fcn.140018d20
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
call fcn.14000db40
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014230
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014300
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000db40
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
je case.0x14001465c.11
bt edi, 8
jb 0x1400148d7
bt edi, 9
jae case.0x14001465c.11
call fcn.140013c90
lea rdx, str.Leave_GetBTAdapterStatus___n
mov ecx, 2
call fcn.140018d20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret