Function at 0x1400145a0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
lea rdx, str.Enter_GetBTAdapterStatus___n
mov rdi, rcx
mov dword [rsp + 0x40], r14d
mov ebx, r14d
mov r15d, r14d
lea ecx, [r14 + 2]
call fcn.1400197e0
lea rcx, str.Enter_GetBTAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
jne 0x140014610
lea rdx, str.NULL_input_pointer._n
lea ecx, [rdi + 2]
call fcn.1400197e0
lea rcx, str.NULL_input_pointer._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140014911
mov qword [rsp + 0xa8], rbp
lea rcx, [rdi + 8]
mov qword [rsp + 0xb0], rsi
xor edx, edx
mov qword [rsp + 0xb8], r12
mov r8d, 0x208
mov qword [rsp + 0x70], r13
mov dword [rdi], r14d
mov dword [rdi + 4], 0xffffffff
call fcn.14001d250
mov r9d, 0x12
lea rcx, [0x14004b1a8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400148c8
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 0x20
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [0x14004b1a8]
xor edx, edx
mov rcx, r12
mov ebp, r14d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1400148bf
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov ecx, dword [rsp + 0x40]
call fcn.140021aa0
mov rsi, rax
test rax, rax
je 0x140014929
mov dword [rax], 8
lea rdx, [rsp + 0x48]
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], r14
mov r8, rsi
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rcx, [rsi + 4]
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001477b
mov rcx, rax
call fcn.140013690
mov rcx, r14
mov r15d, eax
call fcn.140013060
mov r9, rax
lea rdx, str.The_name_of__d_controller_is:__s_n
mov r8d, ebp
mov ecx, 2
mov rbx, rax
call fcn.1400197e0
mov r8, rbx
lea rcx, str.The_name_of__d_controller_is:__s_n
mov edx, ebp
call fcn.14000e220
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140021a8c
mov ecx, r15d
test r15d, r15d
je 0x14001485b
sub ecx, 1
je 0x1400147f2
cmp ecx, 1
jne 0x140014879
lea rdx, str.The_dongle_is_not_configurated__and_we_should_reset_it__n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.The_dongle_is_not_configurated__and_we_should_reset_it__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rdi], 2
mov dword [rdi + 4], ebp
test rbx, rbx
je 0x1400147da
mov r8, rbx
lea rcx, [rdi + 8]
mov edx, 0x104
call fcn.1400219a4
call fcn.140013870
test eax, eax
jne 0x140014879
mov dword [rdi], 1
jmp 0x140014879
lea rdx, str.Atheros_dongle_found_and_it_works_normally__n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.Atheros_dongle_found_and_it_works_normally__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rdi], 1
mov dword [rdi + 4], ebp
test rbx, rbx
je 0x14001482f
mov r8, rbx
lea rcx, [rdi + 8]
mov edx, 0x104
call fcn.1400219a4
call fcn.140013870
cmp eax, 1
jne 0x140014841
mov dword [rdi], 2
jmp 0x140014879
lea rdx, str.It_works_fine__n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.It_works_fine__n
jmp 0x140014873
lea rdx, str.No_Atheros_dongle_found__n
mov ecx, 2
call fcn.1400197e0
lea rcx, str.No_Atheros_dongle_found__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x14001488e
mov rcx, rbx
call fcn.140021a8c
xor r14d, r14d
mov ebx, r14d
jmp 0x140014891
xor r14d, r14d
test r15d, r15d
jne 0x1400148bf
lea rax, [rsp + 0x48]
inc ebp
mov r9d, ebp
mov qword [rsp + 0x20], rax
lea r8, [0x14004b1a8]
xor edx, edx
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x1400146a0
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r8d, 1
lea rdx, str.Leave_GetBTAdapterStatus____d_n
lea ecx, [r8 + 1]
call fcn.1400197e0
mov edx, 1
lea rcx, str.Leave_GetBTAdapterStatus____d_n
call fcn.14000e220
mov eax, 1
mov r12, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rbx
ret
jmp 0x1400148f4