Function at 0x1400144e0
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.140009140
lea rcx, str.DeviceRecoverPolicy
mov esi, eax
call fcn.140014380
mov edi, eax
cmp eax, 0xffffffff
jne 0x14001453b
cmp esi, 0x14
je 0x140014527
cmp esi, 0x1e
je 0x140014527
cmp esi, 0x28
je 0x140014527
cmp esi, 0xa
jne 0x140014543
mov edi, 0x10000
jmp 0x140014543
lea rcx, str.policy__POLICY_YM_RESET_BT_ADAPTER__n
mov edi, 4
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140014543
test eax, eax
je 0x1400147c5
lea rdx, str.Enter_HandleAdapterStatus__policy_0x_x___n
mov r8d, edi
mov ecx, 2
call fcn.1400184c0
lea rcx, str.Enter_HandleAdapterStatus__policy_0x_x___n_n
mov edx, edi
call fcn.14000dcd0
test rbx, rbx
je 0x1400147c5
cmp esi, 0xa
je 0x14001479c
cmp esi, 0x14
je 0x140014710
cmp esi, 0x1e
je 0x1400146d8
cmp esi, 0x28
jne 0x1400147b4
bt edi, 0x11
jb 0x1400146e2
mov ecx, dword [rbx]
test ecx, ecx
je 0x140014694
dec ecx
je 0x14001465a
dec ecx
jne 0x1400147b4
lea rcx, str.The_dongle_is_not_configurated__and_we_should_reset_it__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rbx + 4], 0xffffffff
je 0x1400145e3
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014380
cmp esi, eax
je 0x1400145e3
mov ecx, esi
call fcn.140014450
test dil, 1
je 0x140014603
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140013400
jmp 0x1400147b4
test dil, 2
je 0x140014623
lea rcx, str.policy__POLICY_YM_RESET_ROOT_HUB_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140013df0
jmp 0x1400147b4
test dil, 4
je 0x1400147b4
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 1
mov dword [0x140041750], 1
call fcn.14000ded0
xor ecx, ecx
call fcn.14000ded0
jmp 0x1400147b4
lea rcx, str.The_dongle_works_fine__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rbx + 4], 0xffffffff
je 0x1400147b4
mov ebx, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014380
cmp ebx, eax
je 0x1400147b4
mov ecx, ebx
call fcn.140014450
jmp 0x1400147b4
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140014380
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140014450
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
je 0x1400147b4
bt edi, 8
jae 0x14001478f
call fcn.140013400
jmp 0x1400147b4
bt edi, 0x11
jae case.default.0x140014709
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov ecx, 2
call fcn.1400184c0
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]
bt edi, 0x11
jae 0x140014722
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
jmp 0x1400147bb
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400146a1
dec ecx
je 0x140014667
dec ecx
jne 0x1400147b4
cmp dword [rbx + 4], 0xffffffff
je 0x140014758
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140014380
cmp esi, eax
je 0x140014758
mov ecx, esi
call fcn.140014450
test dil, 1
jne 0x1400145f6
test dil, 2
jne 0x140014616
test dil, 4
je 0x1400147b4
mov ecx, 1
mov dword [0x140041750], 1
call fcn.14000ded0
xor ecx, ecx
call fcn.14000ded0
jmp 0x1400147b4
bt edi, 9
jae 0x1400147b4
call fcn.140013df0
jmp 0x1400147b4
mov eax, dword [rbx]
dec eax
cmp eax, 1
ja 0x1400147b4
bt edi, 0x10
jae 0x1400147b4
lea rcx, [rbx + 8]
call fcn.1400138e0
lea rdx, str.Leave_GetBTAdapterStatus___n
mov ecx, 2
call fcn.1400184c0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret