Function at 0x140015c70
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.14000a4e0
lea rcx, str.DeviceRecoverPolicy
mov esi, eax
call fcn.140015960
mov edi, eax
cmp eax, 0xffffffff
jne 0x140015ccc
cmp esi, 0x14
je 0x140015cb7
cmp esi, 0x1e
je 0x140015cb7
cmp esi, 0x28
je 0x140015cb7
cmp esi, 0xa
jne 0x140015cd4
mov edi, 0x10000
jmp 0x140015cd4
mov edi, 4
lea rcx, str.Enter_HandleAdapterStatus__set_default_policy_to_0x_x___n_n
mov edx, edi
call fcn.14000f070
jmp 0x140015cd4
test eax, eax
je 0x1400160cb
lea rdx, str.Enter_HandleAdapterStatus__policy_0x_x___n
mov r8d, edi
mov ecx, 2
call fcn.14001a330
lea rcx, str.Enter_HandleAdapterStatus__policy_0x_x___n_n
mov edx, edi
call fcn.14000f070
test rbx, rbx
je 0x1400160cb
cmp esi, 0xa
je 0x1400160a2
cmp esi, 0x14
je 0x140015fb0
cmp esi, 0x1e
je 0x140015eb3
cmp esi, 0x28
jne 0x1400160ba
bt edi, 0x11
jb 0x140015eb9
mov ecx, dword [rbx]
test ecx, ecx
je 0x140015e54
dec ecx
je 0x140015e0c
dec ecx
jne 0x1400160ba
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotConfigurate__n
call fcn.14000f070
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
call fcn.14000f070
cmp dword [rbx + 4], 0xffffffff
je 0x140015d82
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140015960
cmp esi, eax
je 0x140015d82
mov ecx, esi
call fcn.140015a30
test dil, 1
je 0x140015da2
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140014a00
jmp 0x1400160ba
test dil, 2
je 0x140015dc2
lea rcx, str.policy__POLICY_YM_RESET_ROOT_HUB_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.1400153c0
jmp 0x1400160ba
test dil, 4
je 0x140015df5
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 1
mov dword [0x140046130], 1
call fcn.14000f140
xor ecx, ecx
call fcn.14000f140
jmp 0x1400160ba
test dil, 8
je 0x1400160ba
mov ecx, dword [rbx + 4]
call fcn.140015ac0
jmp 0x1400160ba
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceWorksFine__n
call fcn.14000f070
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000f070
cmp dword [rbx + 4], 0xffffffff
je 0x1400160ba
mov ebx, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140015960
cmp ebx, eax
je 0x1400160ba
mov ecx, ebx
call fcn.140015a30
jmp 0x1400160ba
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotFound__n
call fcn.14000f070
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140015960
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140015a30
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000f070
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
je 0x1400160ba
bt edi, 8
jae 0x140016095
call fcn.140014a00
jmp 0x1400160ba
bt edi, 0x11
jae case.default.0x140015ee0
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov ecx, 2
call fcn.14001a330
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 0x140015f74
dec ecx
je 0x140015f5c
dec ecx
jne 0x1400160ba
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate__n
call fcn.14000f070
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
call fcn.14000f070
cmp dword [rbx + 4], 0xffffffff
je 0x140015f38
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140015960
cmp esi, eax
je 0x140015f38
mov ecx, esi
call fcn.140015a30
test dil, 1
je 0x140015da2
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140014a00
jmp 0x1400160ba
lea rcx, str.HandleAdapterStatus__WIN8__DeviceWorksFine__n
call fcn.14000f070
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x140015e1f
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
call fcn.14000f070
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.ControllerIndex
call fcn.140015960
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140015a30
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x140015e8b
bt edi, 0x11
jae 0x140015fc2
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
jmp 0x1400160c1
mov ecx, dword [rbx]
test ecx, ecx
je 0x140016066
dec ecx
je 0x14001604e
dec ecx
jne 0x1400160ba
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotConfigurate__n
call fcn.14000f070
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d__n
call fcn.14000f070
cmp dword [rbx + 4], 0xffffffff
je 0x140016013
mov esi, dword [rbx + 4]
lea rcx, str.ControllerIndex
call fcn.140015960
cmp esi, eax
je 0x140016013
mov ecx, esi
call fcn.140015a30
test dil, 1
jne 0x140015f4f
test dil, 2
jne 0x140015db5
test dil, 4
je 0x140015df5
mov ecx, 1
mov dword [0x140046130], 1
call fcn.14000f140
xor ecx, ecx
call fcn.14000f140
jmp 0x1400160ba
lea rcx, str.HandleAdapterStatus__WIN7__DeviceWorksFine__n
call fcn.14000f070
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x140015e1f
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotFound__n
call fcn.14000f070
lea rcx, str.ControllerIndex
call fcn.140015960
or ecx, 0xffffffff
mov dword [rbx + 4], eax
call fcn.140015a30
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x140015e8b
bt edi, 9
jae 0x1400160ba
call fcn.1400153c0
jmp 0x1400160ba
mov eax, dword [rbx]
dec eax
cmp eax, 1
ja 0x1400160ba
bt edi, 0x10
jae 0x1400160ba
lea rcx, [rbx + 8]
call fcn.140014ee0
lea rdx, str.Leave_GetBTAdapterStatus___n
mov ecx, 2
call fcn.14001a330
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
ret
mov esi, dword [rsi + 0x17accf83]
invalid
xor dword [rbp + 0x6f], ebp
add bh, byte [rbx]
cmp esi, dword [rdx + 0x28]
xchg esp, eax
mov esi, 0x35c67afe
invalid
jp 0x14006f993
invalid
invalid