Function at 0x140014290
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push r12
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor ebx, ebx
lea rdx, str.Enter_GetBTAdapterStatus___n
mov r12, rcx
mov dword [rbp - 0x19], ebx
mov r14d, ebx
lea ecx, [rbx + 2]
call fcn.14001a030
lea rcx, str.Enter_GetBTAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r12, r12
jne 0x140014300
lea rdx, str.NULL_input_pointer._n
lea ecx, [rbx + 2]
call fcn.14001a030
lea rcx, str.NULL_input_pointer._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140014852
mov qword [rsp + 0xc8], rsi
lea rcx, [r12 + 8]
mov qword [rsp + 0xd0], rdi
xor edx, edx
mov qword [rsp + 0xd8], r13
mov r8d, 0x208
mov qword [rsp + 0x90], r15
mov dword [r12], ebx
mov dword [r12 + 4], 0xffffffff
call fcn.14001c4c0
mov r9d, 0x12
lea rcx, [0x140046398]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov qword [rbp - 9], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140014806
lea rax, [rbp + 0xf]
mov dword [rbp + 0xf], 0x20
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [0x140046398]
mov dword [rbp - 0xd], ebx
xor edx, edx
mov rcx, rdi
mov esi, ebx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1400147fd
nop word [rax + rax]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov ecx, dword [rbp - 0x19]
call fcn.1400226a4
mov r13, rax
test rax, rax
je 0x14001486c
mov dword [rax], 8
lea rdx, [rbp + 0xf]
mov r9d, dword [rbp - 0x19]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rbx
mov r8, r13
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, [r13 + 4]
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400146b1
xor ebx, ebx
lea rdx, str.Enter_EnumerateHostController___n
mov r14d, ebx
mov dword [rbp - 0x15], ebx
mov edi, ebx
lea ecx, [rbx + 2]
call fcn.14001a030
lea rcx, str.Enter_EnumerateHostController___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x15]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 6
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x220408
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400144a0
lea rcx, str.Enter_if___DeviceIoControl_sizeof_rootHubName___nBytes__NULL___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400145ab
mov eax, dword [rbp + 7]
mov ecx, eax
mov dword [rbp - 0x15], eax
call fcn.1400226a4
mov rsi, rax
test rax, rax
jne 0x1400144c1
lea rcx, str.Enter_if__rootHubNameW__NULL__n
jmp 0x1400145a2
lea rax, [rbp - 0x15]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov eax, dword [rbp - 0x15]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x220408
mov rcx, r15
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140014502
lea rcx, str.Enter_if___DeviceIoControl_nBytes__nBytes__NULL___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140014575
mov rcx, 0xffffffffffffffff
nop dword [rax]
cmp word [rsi + rcx*2 + 6], bx
lea rcx, [rcx + 1]
jne 0x140014510
lea rcx, [rcx*2 + 0xa]
call fcn.1400226a4
mov rdi, rax
test rax, rax
je 0x140014575
lea r8, str.._
mov edx, 5
mov rcx, rax
call fcn.1400223c4
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rsi + rdx*2 + 4], bx
jne 0x140014550
inc rdx
lea rcx, [rdi + 8]
lea r8, [rsi + 4]
call fcn.1400223c4
mov rcx, rdi
call fcn.140013000
mov r14d, eax
mov rcx, rsi
call fcn.1400224ac
test rdi, rdi
je 0x14001458a
mov rcx, rdi
call fcn.1400224ac
lea rdx, str.Leave_EnumerateHostController___n
mov ecx, 2
call fcn.14001a030
lea rcx, str.Leave_EnumerateHostController___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [rbp - 0xd]
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 1]
lea rax, [rbp - 1]
mov dword [rsp + 0x28], 6
mov r9d, 6
mov qword [rsp + 0x20], rax
mov edx, 0x220424
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14001467c
mov eax, dword [rbp - 1]
mov dword [rbp - 0x11], eax
cmp eax, 6
jbe 0x14001467c
mov ecx, eax
add rcx, rcx
call fcn.1400226a4
mov rdi, rax
test rax, rax
je 0x14001467c
mov r9d, dword [rbp - 0x11]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rbx
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x220424
mov dword [rsp + 0x28], r9d
mov rcx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140014674
mov ecx, dword [rdi]
add rcx, rcx
call fcn.1400226a4
mov rbx, rax
test rax, rax
je 0x140014672
lea rcx, [rdi + 4]
mov rdx, rax
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140014660
jmp 0x140014674
xor ebx, ebx
mov rcx, rdi
call fcn.1400224ac
mov r9, rbx
lea rdx, str.The_name_of__d_controller_is:__s_n
mov r8d, esi
mov ecx, 2
call fcn.14001a030
mov r8, rbx
lea rcx, str.The_name_of__d_controller_is:__s_n
mov edx, esi
call fcn.14000e530
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbp - 9]
mov rcx, r13
call fcn.1400224ac
mov ecx, r14d
test r14d, r14d
je 0x14001479f
sub ecx, 1
je 0x14001472f
cmp ecx, 1
jne 0x1400147bd
lea rdx, str.The_dongle_is_not_configurated__and_we_should_reset_it__n
mov ecx, 2
call fcn.14001a030
lea rcx, str.The_dongle_is_not_configurated__and_we_should_reset_it__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [r12], 2
mov dword [r12 + 4], esi
test rbx, rbx
je 0x140014715
mov r8, rbx
lea rcx, [r12 + 8]
mov edx, 0x104
call fcn.1400223c4
call fcn.1400136f0
test eax, eax
jne 0x1400147bd
mov dword [r12], 1
jmp 0x1400147bd
lea rdx, str.Atheros_dongle_found_and_it_works_normally__n
mov ecx, 2
call fcn.14001a030
lea rcx, str.Atheros_dongle_found_and_it_works_normally__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [r12], 1
mov dword [r12 + 4], esi
test rbx, rbx
je 0x140014771
mov r8, rbx
lea rcx, [r12 + 8]
mov edx, 0x104
call fcn.1400223c4
call fcn.1400136f0
cmp eax, 1
jne 0x140014785
mov dword [r12], 2
jmp 0x1400147bd
lea rdx, str.It_works_fine__n
mov ecx, 2
call fcn.14001a030
lea rcx, str.It_works_fine__n
jmp 0x1400147b7
lea rdx, str.No_Atheros_dongle_found__n
mov ecx, 2
call fcn.14001a030
lea rcx, str.No_Atheros_dongle_found__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x1400147ca
mov rcx, rbx
call fcn.1400224ac
test r14d, r14d
jne 0x1400147fd
inc esi
lea rax, [rbp + 0xf]
mov r9d, esi
mov dword [rbp - 0xd], esi
lea r8, [0x140046398]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov ebx, r14d
test eax, eax
jne 0x1400143a0
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r8d, 1
lea rdx, str.Leave_GetBTAdapterStatus____d_n
lea ecx, [r8 + 1]
call fcn.14001a030
mov edx, 1
lea rcx, str.Leave_GetBTAdapterStatus____d_n
call fcn.14000e530
mov eax, 1
mov r13, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001a550
add rsp, 0x98
pop r14
pop r12
pop rbx
pop rbp
ret
jmp 0x140014832