Function at 0x140014f40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.1400099f0
lea rcx, str.DeviceRecoverPolicy
mov esi, eax
call fcn.140014c10
mov edi, eax
cmp eax, 0xffffffff
jne 0x140014f9c
cmp esi, 0x14
je 0x140014f87
cmp esi, 0x1e
je 0x140014f87
cmp esi, 0x28
je 0x140014f87
cmp esi, 0xa
jne 0x140014fa4
mov edi, 0x10000
jmp 0x140014fa4
mov edi, 4
lea rcx, str.Enter_HandleAdapterStatus__set_default_policy_to_0x_x___n_n
mov edx, edi
call fcn.14000e580
jmp 0x140014fa4
test eax, eax
je 0x1400153f0
lea rdx, str.Enter_HandleAdapterStatus__policy_0x_x___n
mov r8d, edi
mov ecx, 2
call fcn.140019330
lea rcx, str.Enter_HandleAdapterStatus__policy_0x_x___n_n
mov edx, edi
call fcn.14000e580
test rbx, rbx
je 0x1400153f0
cmp esi, 0xa
je 0x1400153c7
cmp esi, 0x14
je 0x1400152ed
cmp esi, 0x1e
je 0x1400151e5
cmp esi, 0x28
jne 0x1400153df
bt edi, 0x11
jb 0x1400151eb
mov ecx, dword [rbx]
test ecx, ecx
je 0x140015186
dec ecx
je 0x14001513e
dec ecx
jne 0x1400153df
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotConfigurate__n
call fcn.14000e580
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
call fcn.14000e580
cmp dword [rbx + 4], 0xffffffff
je 0x140015052
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014c10
cmp esi, eax
je 0x140015052
mov ecx, esi
call fcn.140014ce0
test dil, 1
je 0x140015072
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140013c80
jmp 0x1400153df
test dil, 2
je 0x140015092
lea rcx, str.policy__POLICY_YM_RESET_ROOT_HUB_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140014670
jmp 0x1400153df
test dil, 4
je 0x140015127
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
mov edx, 1
mov dword [0x140043750], 1
call fcn.14000e580
call fcn.1400099f0
cmp eax, 0x1e
jne 0x1400150e5
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x140043324], 1
mov ecx, dword [0x140043300]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
xor edx, edx
call fcn.14000e580
mov ecx, dword [0x140043300]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x1400153df
test dil, 8
je 0x1400153df
mov ecx, dword [rbx + 4]
call fcn.140014d70
jmp 0x1400153df
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceWorksFine__n
call fcn.14000e580
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000e580
cmp dword [rbx + 4], 0xffffffff
je 0x1400153df
mov ebx, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014c10
cmp ebx, eax
je 0x1400153df
mov ecx, ebx
call fcn.140014ce0
jmp 0x1400153df
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotFound__n
call fcn.14000e580
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014c10
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014ce0
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000e580
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
je 0x1400153df
bt edi, 8
jae 0x1400153ba
call fcn.140013c80
jmp 0x1400153df
bt edi, 0x11
jae case.default.0x140015212
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov ecx, 2
call fcn.140019330
lea rcx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400152b1
dec ecx
je 0x140015299
dec ecx
jne 0x1400153df
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate__n
call fcn.14000e580
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
call fcn.14000e580
cmp dword [rbx + 4], 0xffffffff
je 0x14001526a
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014c10
cmp esi, eax
je 0x14001526a
mov ecx, esi
call fcn.140014ce0
test dil, 1
je 0x14001528a
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140013c80
jmp 0x1400153df
test dil, 2
jne 0x140015078
jmp 0x140015092
lea rcx, str.HandleAdapterStatus__WIN8__DeviceWorksFine__n
call fcn.14000e580
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x140015151
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate__n
call fcn.14000e580
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014c10
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014ce0
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x1400151bd
bt edi, 0x11
jae 0x1400152ff
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
jmp 0x1400153e6
mov ecx, dword [rbx]
test ecx, ecx
je 0x14001538b
dec ecx
je 0x140015373
dec ecx
jne 0x1400153df
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotConfigurate__n
call fcn.14000e580
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d__n
call fcn.14000e580
cmp dword [rbx + 4], 0xffffffff
je 0x140015350
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014c10
cmp esi, eax
je 0x140015350
mov ecx, esi
call fcn.140014ce0
test dil, 1
jne 0x14001527d
test dil, 2
jne 0x140015085
test dil, 4
je 0x140015127
jmp 0x1400150a9
lea rcx, str.HandleAdapterStatus__WIN7__DeviceWorksFine__n
call fcn.14000e580
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x140015151
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotFound__n
call fcn.14000e580
lea rcx, str.ControllerIndex
call fcn.140014c10
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014ce0
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x1400151bd
bt edi, 9
jae 0x1400153df
call fcn.140014670
jmp 0x1400153df
mov eax, dword [rbx]
dec eax
cmp eax, 1
ja 0x1400153df
bt edi, 0x10
jae 0x1400153df
lea rcx, [rbx + 8]
call fcn.140014160
lea rdx, str.Leave_GetBTAdapterStatus___n
mov ecx, 2
call fcn.140019330
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cld
fisub dword [rdi]
jrcxz 0x14006c604
jae 0x14006c623
pop rdx
ret 0xc23a
invalid
iretd
cmp dword [rdi], eax
invalid