Function at 0x140013ea0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14004b008]
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.140018d20
lea rcx, str.Enter_GetBTAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
jne 0x140013f10
lea rdx, str.NULL_input_pointer._n
lea ecx, [rdi + 2]
call fcn.140018d20
lea rcx, str.NULL_input_pointer._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140014211
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.14001c790
mov r9d, 0x12
lea rcx, [0x140043758]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400141c8
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 0x20
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [0x140043758]
xor edx, edx
mov rcx, r12
mov ebp, r14d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1400141bf
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.140020fe0
mov rsi, rax
test rax, rax
je 0x140014229
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 0x14001407b
mov rcx, rax
call fcn.140012f90
mov rcx, r14
mov r15d, eax
call fcn.140012960
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.140018d20
mov r8, rbx
lea rcx, str.The_name_of__d_controller_is:__s_n
mov edx, ebp
call fcn.14000db40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140020fcc
mov ecx, r15d
test r15d, r15d
je 0x14001415b
sub ecx, 1
je 0x1400140f2
cmp ecx, 1
jne 0x140014179
lea rdx, str.The_dongle_is_not_configurated__and_we_should_reset_it__n
mov ecx, 2
call fcn.140018d20
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 0x1400140da
mov r8, rbx
lea rcx, [rdi + 8]
mov edx, 0x104
call fcn.140020ee4
call fcn.140013170
test eax, eax
jne 0x140014179
mov dword [rdi], 1
jmp 0x140014179
lea rdx, str.Atheros_dongle_found_and_it_works_normally__n
mov ecx, 2
call fcn.140018d20
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 0x14001412f
mov r8, rbx
lea rcx, [rdi + 8]
mov edx, 0x104
call fcn.140020ee4
call fcn.140013170
cmp eax, 1
jne 0x140014141
mov dword [rdi], 2
jmp 0x140014179
lea rdx, str.It_works_fine__n
mov ecx, 2
call fcn.140018d20
lea rcx, str.It_works_fine__n
jmp 0x140014173
lea rdx, str.No_Atheros_dongle_found__n
mov ecx, 2
call fcn.140018d20
lea rcx, str.No_Atheros_dongle_found__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x14001418e
mov rcx, rbx
call fcn.140020fcc
xor r14d, r14d
mov ebx, r14d
jmp 0x140014191
xor r14d, r14d
test r15d, r15d
jne 0x1400141bf
lea rax, [rsp + 0x48]
inc ebp
mov r9d, ebp
mov qword [rsp + 0x20], rax
lea r8, [0x140043758]
xor edx, edx
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x140013fa0
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.140018d20
mov edx, 1
lea rcx, str.Leave_GetBTAdapterStatus____d_n
call fcn.14000db40
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.140019260
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rbx
ret
jmp 0x1400141f4