Function at 0x140015030
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.140009810
lea rcx, str.DeviceRecoverPolicy
mov esi, eax
call fcn.140014930
lea rcx, str.ForceEnable
mov edi, eax
call fcn.140014930
mov ebp, eax
cmp edi, 0xffffffff
jne 0x140015087
cmp esi, 0x14
jl 0x1400150a6
mov edi, 4
lea rcx, str.Enter_HandleAdapterStatus__set_default_policy_to_0x_x___n_n
mov edx, edi
call fcn.14000e220
cmp esi, 0x36
jne 0x1400150b2
call fcn.140014c90
test eax, eax
je 0x1400150b2
lea rcx, str.HandleAdapterStatus__use_MSFTs_recovery__set_policy_to_0__n
call fcn.14000e220
jmp 0x14001591c
cmp esi, 0xa
jne 0x140015087
mov edi, 0x10000
jmp 0x1400150ba
test edi, edi
je 0x14001591c
xor eax, eax
lea rdx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
cmp ebp, 0xffffffff
mov r8d, edi
cmove ebp, eax
mov r9d, ebp
lea ecx, [rax + 2]
call fcn.1400197e0
mov r8d, ebp
lea rcx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
mov edx, edi
call fcn.14000e220
test rbx, rbx
je 0x14001591c
add esi, 0xfffffff6
cmp esi, 0x2c
ja case.0x140015119.11
lea rdx, [0x140000000]
movsxd rax, esi
movzx eax, byte [rdx + rax + 0x1594c]
mov ecx, dword [rdx + rax*4 + 0x15934]
add rcx, rdx
jmp rcx
mov eax, dword [rbx]
dec eax
cmp eax, 1
ja case.0x140015119.11
bt edi, 0x10
jae case.0x140015119.11
lea rcx, [rbx + 8]
call fcn.140013ee0
jmp case.0x140015119.11
bt edi, 0x11
jae 0x140015152
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
jmp 0x140015912
mov ecx, dword [rbx]
test ecx, ecx
je 0x14001525f
sub ecx, 1
je 0x140015247
cmp ecx, 1
jne case.0x140015119.11
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotConfigurate__n
call fcn.14000e220
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d__n
call fcn.14000e220
cmp dword [rbx + 4], 0xffffffff
je 0x1400151a9
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014930
cmp esi, eax
je 0x1400151a9
mov ecx, esi
call fcn.140014a00
test dil, 1
jne 0x140015391
test dil, 2
jne 0x1400153b1
test dil, 4
je 0x140015835
mov edx, 1
mov dword [0x1400557ac], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000e220
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.1400197e0
call fcn.140009810
cmp eax, 0x32
jl 0x14001522a
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.1400197e0
mov dword [0x140053e94], 1
mov ecx, dword [0x140053e70]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x1400156b3
lea rcx, str.HandleAdapterStatus__WIN7__DeviceWorksFine__n
call fcn.14000e220
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x140015870
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotFound__n
call fcn.14000e220
lea rcx, str.ControllerIndex
call fcn.140014930
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014a00
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x1400158e6
bt edi, 0x11
jae 0x1400152b7
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001591c
mov ecx, dword [rbx]
test ecx, ecx
je 0x14001548a
sub ecx, 1
je 0x140015461
sub ecx, 1
je 0x1400152f5
cmp ecx, 1
jne case.0x140015119.11
lea rdx, str.HandleAdapterStatus__WIN8__DeviceDisabled_n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.HandleAdapterStatus__WIN8__DeviceDisabled__n
jmp 0x14001567e
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate__n
call fcn.14000e220
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
call fcn.14000e220
mov eax, dword [0x140053e90]
cmp eax, dword [0x140053e98]
jae 0x14001535e
mov r8d, dword [0x140053e90]
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.1400197e0
mov edx, dword [0x140053e90]
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
call fcn.14000e220
jmp case.0x140015119.11
cmp dword [rbx + 4], 0xffffffff
je 0x14001537e
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014930
cmp esi, eax
je 0x14001537e
mov ecx, esi
call fcn.140014a00
test dil, 1
je 0x14001539e
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140013a00
jmp case.0x140015119.11
test dil, 2
je 0x1400153b9
lea rcx, str.policy__POLICY_YM_RESET_ROOT_HUB_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
jmp 0x140015906
test dil, 4
je 0x140015835
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.1400197e0
mov edx, 1
mov dword [0x1400557ac], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000e220
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.1400197e0
call fcn.140009810
cmp eax, 0x32
jl 0x140015444
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.1400197e0
mov dword [0x140053e94], 1
mov ecx, dword [0x140053e70]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x1400156b3
lea rdx, str.HandleAdapterStatus__WIN8__DeviceWorksFine_n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.HandleAdapterStatus__WIN8__DeviceWorksFine__n
call fcn.14000e220
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x140015870
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
call fcn.14000e220
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014930
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014a00
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x1400158e6
bt edi, 0x11
jb 0x140015294
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400155fb
sub ecx, 1
je 0x1400155e3
cmp ecx, 1
jne case.0x140015119.11
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotConfigurate__n
call fcn.14000e220
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
call fcn.14000e220
cmp dword [rbx + 4], 0xffffffff
je 0x140015538
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014930
cmp esi, eax
je 0x140015538
mov ecx, esi
call fcn.140014a00
test dil, 1
jne 0x140015384
test dil, 2
jne 0x1400153a4
test dil, 4
je 0x140015835
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 1
mov dword [0x1400557ac], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000e220
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.1400197e0
call fcn.140009810
cmp eax, 0x32
jl 0x1400155c6
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.1400197e0
mov dword [0x140053e94], 1
mov ecx, dword [0x140053e70]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x1400156b3
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceWorksFine__n
call fcn.14000e220
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
jmp 0x140015870
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotFound__n
call fcn.14000e220
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014930
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014a00
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
jmp 0x1400158e6
bt edi, 0x11
jb 0x140015294
mov ecx, dword [rbx]
test ecx, ecx
je 0x14001589e
sub ecx, 1
je 0x14001584c
sub ecx, 1
je 0x1400156f0
cmp ecx, 1
jne case.0x140015119.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceDisabled_n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.HandleAdapterStatus__WIN10__DeviceDisabled__n
call fcn.14000e220
test dil, 4
je case.0x140015119.11
test ebp, ebp
je case.0x140015119.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.1400197e0
xor edx, edx
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000e220
xor r8d, r8d
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 2]
call fcn.1400197e0
mov ecx, dword [0x140053e70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp case.0x140015119.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate__n
call fcn.14000e220
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
call fcn.14000e220
mov eax, dword [0x140053e90]
cmp eax, dword [0x140053e98]
jae 0x140015759
mov r8d, dword [0x140053e90]
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.1400197e0
mov edx, dword [0x140053e90]
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
call fcn.14000e220
jmp case.0x140015119.11
cmp dword [rbx + 4], 0xffffffff
je 0x140015779
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014930
cmp esi, eax
je 0x140015779
mov ecx, esi
call fcn.140014a00
test dil, 1
jne 0x140015384
test dil, 2
jne 0x1400153a4
test dil, 4
je 0x140015835
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.1400197e0
mov edx, 1
mov dword [0x1400557ac], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000e220
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.1400197e0
call fcn.140009810
cmp eax, 0x32
jl 0x140015818
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.1400197e0
mov dword [0x140053e94], 1
mov ecx, dword [0x140053e70]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x1400156b3
test dil, 8
je case.0x140015119.11
mov ecx, dword [rbx + 4]
call fcn.140014a90
jmp case.0x140015119.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceWorksFine_n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.HandleAdapterStatus__WIN10__DeviceWorksFine__n
call fcn.14000e220
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000e220
cmp dword [rbx + 4], 0xffffffff
je case.0x140015119.11
mov ebx, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014930
cmp ebx, eax
je case.0x140015119.11
mov ecx, ebx
call fcn.140014a00
jmp case.0x140015119.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
call fcn.14000e220
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014930
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014a00
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000e220
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
je case.0x140015119.11
bt edi, 8
jb 0x140015394
bt edi, 9
jae case.0x140015119.11
call fcn.140014390
lea rdx, str.Leave_GetBTAdapterStatus___n
mov ecx, 2
call fcn.1400197e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret