Function at 0x140014880
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x78
mov rax, qword [0x140040468]
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.140019330
lea rcx, str.Enter_GetBTAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
jne 0x1400148eb
lea rdx, str.NULL_input_pointer._n
lea ecx, [rbp + 2]
call fcn.140019330
lea rcx, str.NULL_input_pointer._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140014bed
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.14001cc90
lea rcx, [0x1400371a8]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140014ba4
lea rax, [rsp + 0x48]
lea r8, [0x1400371a8]
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 0x140014b9b
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.1400199c8
mov rsi, rax
test rax, rax
je 0x140014c04
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 0x140014a5b
mov rcx, rax
call fcn.140013920
mov rcx, rbp
mov r13d, eax
call fcn.140013260
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.140019330
lea rcx, str.The_name_of__d_controller_is:__s_n
mov r8, rbx
mov edx, r12d
call fcn.14000e580
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140019988
mov eax, r13d
test r13d, r13d
je 0x140014b39
dec eax
je 0x140014acf
dec eax
jne 0x140014b57
lea rdx, str.The_dongle_is_not_configurated__and_we_should_reset_it__n
lea ecx, [rax + 2]
call fcn.140019330
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 0x140014ab7
lea rcx, [rdi + 8]
mov r8, rbx
mov edx, 0x104
call fcn.140019d1c
call fcn.140013af0
test eax, eax
jne 0x140014b57
mov dword [rdi], 1
jmp 0x140014b57
lea rdx, str.Atheros_dongle_found_and_it_works_normally__n
mov ecx, 2
call fcn.140019330
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 0x140014b0d
lea rcx, [rdi + 8]
mov r8, rbx
mov edx, 0x104
call fcn.140019d1c
call fcn.140013af0
cmp eax, 1
jne 0x140014b1f
mov dword [rdi], 2
jmp 0x140014b57
lea rdx, str.It_works_fine__n
mov ecx, 2
call fcn.140019330
lea rcx, str.It_works_fine__n
jmp 0x140014b51
lea rdx, str.No_Atheros_dongle_found__n
mov ecx, 2
call fcn.140019330
lea rcx, str.No_Atheros_dongle_found__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x140014b6a
mov rcx, rbx
call fcn.140019988
xor ebp, ebp
mov ebx, ebp
jmp 0x140014b6c
xor ebp, ebp
test r13d, r13d
jne 0x140014b9b
lea rax, [rsp + 0x48]
inc r12d
lea r8, [0x1400371a8]
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 0x140014980
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.140019330
lea rcx, str.Leave_GetBTAdapterStatus____d_n
mov edx, 1
call fcn.14000e580
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.140019650
add rsp, 0x78
pop r13
pop rdi
pop rbp
pop rbx
ret
jmp 0x140014bd0