Function at 0x140014000
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x78
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
mov rdi, rcx
lea rdx, str.Enter_GetBTAdapterStatus___n
lea ecx, [rbp + 2]
mov dword [rsp + 0x40], ebp
mov ebx, ebp
mov r13d, ebp
call fcn.1400184c0
lea rcx, str.Enter_GetBTAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
jne 0x140014069
lea rdx, str.NULL_input_pointer._n
lea ecx, [rbp + 2]
call fcn.1400184c0
lea rcx, str.NULL_input_pointer._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140014362
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], r12
lea rcx, [rdi + 8]
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0xb8], r14
mov dword [rdi], ebp
mov dword [rdi + 4], 0xffffffff
mov qword [rsp + 0x70], r15
call fcn.14001be30
lea rcx, [0x140035618]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140014324
lea rax, [rsp + 0x48]
lea r8, [0x140035618]
xor r9d, r9d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x48], 0x20
mov qword [rsp + 0x20], rax
mov r12d, ebp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x14001431b
nop word [rax + rax]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov ecx, dword [rsp + 0x40]
call fcn.140018b58
mov rsi, rax
test rax, rax
je 0x140014345
mov dword [rax], 8
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8, rsi
mov rcx, r14
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea rcx, [rsi + 4]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400141db
mov rcx, rax
call fcn.1400130a0
mov rcx, rbp
mov r13d, eax
call fcn.1400129e0
lea rdx, str.The_name_of__d_controller_is:__s_n
mov r8d, r12d
mov ecx, 2
mov r9, rax
mov rbx, rax
call fcn.1400184c0
lea rcx, str.The_name_of__d_controller_is:__s_n
mov r8, rbx
mov edx, r12d
call fcn.14000dcd0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140018b18
mov eax, r13d
test r13d, r13d
je 0x1400142b9
dec eax
je 0x14001424f
dec eax
jne 0x1400142d7
lea rdx, str.The_dongle_is_not_configurated__and_we_should_reset_it__n
lea ecx, [rax + 2]
call fcn.1400184c0
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], r12d
test rbx, rbx
je 0x140014237
lea rcx, [rdi + 8]
mov r8, rbx
mov edx, 0x104
call fcn.140018eac
call fcn.140013270
test eax, eax
jne 0x1400142d7
mov dword [rdi], 1
jmp 0x1400142d7
lea rdx, str.Atheros_dongle_found_and_it_works_normally__n
mov ecx, 2
call fcn.1400184c0
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], r12d
test rbx, rbx
je 0x14001428d
lea rcx, [rdi + 8]
mov r8, rbx
mov edx, 0x104
call fcn.140018eac
call fcn.140013270
cmp eax, 1
jne 0x14001429f
mov dword [rdi], 2
jmp 0x1400142d7
lea rdx, str.It_works_fine__n
mov ecx, 2
call fcn.1400184c0
lea rcx, str.It_works_fine__n
jmp 0x1400142d1
lea rdx, str.No_Atheros_dongle_found__n
mov ecx, 2
call fcn.1400184c0
lea rcx, str.No_Atheros_dongle_found__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x1400142ea
mov rcx, rbx
call fcn.140018b18
xor ebp, ebp
mov ebx, ebp
jmp 0x1400142ec
xor ebp, ebp
test r13d, r13d
jne 0x14001431b
lea rax, [rsp + 0x48]
inc r12d
lea r8, [0x140035618]
xor edx, edx
mov rcx, r14
mov r9d, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x140014100
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor r8d, r8d
lea rdx, str.Leave_GetBTAdapterStatus____d_n
lea ecx, [r8 + 2]
call fcn.1400184c0
lea rcx, str.Leave_GetBTAdapterStatus____d_n
xor edx, edx
call fcn.14000dcd0
mov r14, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x70]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x78
pop r13
pop rdi
pop rbp
pop rbx
ret