Function at 0x1400155d0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x78
mov rax, qword [0x140043468]
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.14001a330
lea rcx, str.Enter_GetBTAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
jne 0x14001563b
lea rdx, str.NULL_input_pointer._n
lea ecx, [rbp + 2]
call fcn.14001a330
lea rcx, str.NULL_input_pointer._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001593d
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.14001dd20
lea rcx, [0x140039240]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400158f4
lea rax, [rsp + 0x48]
lea r8, [0x140039240]
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 0x1400158eb
nop dword [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.14001ab78
mov rsi, rax
test rax, rax
je 0x140015954
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 0x1400157ab
mov rcx, rax
call fcn.1400146a0
mov rcx, rbp
mov r13d, eax
call fcn.140014040
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.14001a330
lea rcx, str.The_name_of__d_controller_is:__s_n
mov r8, rbx
mov edx, r12d
call fcn.14000f070
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14001a988
mov eax, r13d
test r13d, r13d
je 0x140015889
dec eax
je 0x14001581f
dec eax
jne 0x1400158a7
lea rdx, str.The_dongle_is_not_configurated__and_we_should_reset_it__n
lea ecx, [rax + 2]
call fcn.14001a330
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 0x140015807
lea rcx, [rdi + 8]
mov r8, rbx
mov edx, 0x104
call fcn.14001af54
call fcn.140014870
test eax, eax
jne 0x1400158a7
mov dword [rdi], 1
jmp 0x1400158a7
lea rdx, str.Atheros_dongle_found_and_it_works_normally__n
mov ecx, 2
call fcn.14001a330
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 0x14001585d
lea rcx, [rdi + 8]
mov r8, rbx
mov edx, 0x104
call fcn.14001af54
call fcn.140014870
cmp eax, 1
jne 0x14001586f
mov dword [rdi], 2
jmp 0x1400158a7
lea rdx, str.It_works_fine__n
mov ecx, 2
call fcn.14001a330
lea rcx, str.It_works_fine__n
jmp 0x1400158a1
lea rdx, str.No_Atheros_dongle_found__n
mov ecx, 2
call fcn.14001a330
lea rcx, str.No_Atheros_dongle_found__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x1400158ba
mov rcx, rbx
call fcn.14001a988
xor ebp, ebp
mov ebx, ebp
jmp 0x1400158bc
xor ebp, ebp
test r13d, r13d
jne 0x1400158eb
lea rax, [rsp + 0x48]
inc r12d
lea r8, [0x140039240]
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 0x1400156d0
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r8d, 1
lea rdx, str.Leave_GetBTAdapterStatus____d_n
lea ecx, [r8 + 1]
call fcn.14001a330
lea rcx, str.Leave_GetBTAdapterStatus____d_n
mov edx, 1
call fcn.14000f070
mov eax, 1
mov r14, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x78
pop r13
pop rdi
pop rbp
pop rbx
ret
jmp 0x140015920