Function at 0x140013f40
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rbx, rcx
call fcn.140009f30
mov r14d, eax
mov dword [rsp + 0x48], 0xffffffff
lea rax, [rbp - 0x68]
mov dword [rsp + 0x70], 4
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001400c
mov rcx, qword [rbp - 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.DeviceRecoverPolicy
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013ffa
mov r8d, dword [rsp + 0x48]
lea r9, str.DeviceRecoverPolicy
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x140014002
mov dword [rsp + 0x48], 0xffffffff
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x4c], 0xffffffff
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov dword [rsp + 0x74], 4
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400140ab
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rdx, str.ForceEnable
lea rax, [rsp + 0x4c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014098
mov r8d, dword [rsp + 0x4c]
lea r9, str.ForceEnable
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x1400140a0
mov dword [rsp + 0x4c], 0xffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0xffffffff
jne 0x1400140d8
cmp r14d, 0x14
jl 0x1400140cb
mov edi, 4
lea rcx, str.Enter_HandleAdapterStatus__set_default_policy_to_0x_x___n_n
mov edx, edi
call fcn.14000db70
jmp 0x1400140e0
cmp r14d, 0xa
jne 0x1400140e0
mov edi, 0x10000
jmp 0x1400140e0
test edi, edi
je 0x1400153b6
mov qword [rsp + 0x518], rsi
lea rdx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
xor esi, esi
mov r8d, edi
cmp dword [rsp + 0x4c], 0xffffffff
mov ecx, 2
cmovne esi, dword [rsp + 0x4c]
mov r9d, esi
call fcn.1400194a0
mov r8d, esi
lea rcx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
mov edx, edi
call fcn.14000db70
test rbx, rbx
je 0x1400153ae
lea eax, [r14 - 0xa]
cmp eax, 0x2c
ja case.0x14001414d.11
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x153f4]
mov ecx, dword [rdx + rax*4 + 0x153dc]
add rcx, rdx
jmp rcx
mov ecx, dword [rbx]
sub ecx, 1
je 0x14001415f
cmp ecx, 1
jne case.0x14001414d.11
bt edi, 0x10
jae case.0x14001414d.11
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.14001bd50
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.14001bd50
add rbx, 8
je case.0x14001414d.11
lea r8, str.SYSTEMCurrentControlSetControlClass_
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.140025408
mov r8, rbx
lea rcx, [rbp - 0x40]
mov edx, 0x104
call fcn.140025470
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400141c5
add rax, 0xfffffffffffffffc
lea rcx, [rbp + 0x1d0]
mov edx, 0x104
lea r8, [rbx + rax*2]
call fcn.140025408
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne case.0x14001414d.11
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0x1d0]
call fcn.1400130b0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x14001414d.11
bt edi, 0x11
jae 0x140014247
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
jmp 0x1400153a4
mov ecx, dword [rbx]
test ecx, ecx
je 0x140014468
sub ecx, 1
je 0x140014450
cmp ecx, 1
jne case.0x14001414d.11
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotConfigurate__n
call fcn.14000db70
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d__n
call fcn.14000db70
cmp dword [rbx + 4], 0xffffffff
je 0x1400143b2
lea rax, [rsp + 0x68]
mov dword [rsp + 0x30], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014323
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014310
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x140014318
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x30]
je 0x1400143b2
lea r9, str.ControllerIndex
mov dword [rsp + 0x38], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400143b2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, 1
jne 0x140014797
test dil, 2
jne 0x1400147b7
test dil, 4
je 0x14001509c
mov edx, 1
mov dword [0x1400554b8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db70
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.1400194a0
call fcn.140009f30
cmp eax, 0x32
jl 0x140014433
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.1400194a0
mov dword [0x140053bd4], 1
mov ecx, dword [0x140053bb0]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014e14
lea rcx, str.HandleAdapterStatus__WIN7__DeviceWorksFine__n
call fcn.14000db70
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x1400150d7
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotFound__n
call fcn.14000db70
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001450f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400144fc
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x140014504
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
lea r9, str.ControllerIndex
mov r8d, 0xffffffff
mov dword [rbx + 4], eax
lea rdx, str.Set_value__d_into_reg__s__n
mov dword [rsp + 0x38], 0xffffffff
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001459f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x140015378
bt edi, 0x11
jb 0x140014d7f
mov ecx, dword [rbx]
test ecx, ecx
je 0x140014890
sub ecx, 1
je 0x140014867
sub ecx, 1
je 0x1400145f3
cmp ecx, 1
jne case.0x14001414d.11
lea rdx, str.HandleAdapterStatus__WIN8__DeviceDisabled_n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.HandleAdapterStatus__WIN8__DeviceDisabled__n
jmp 0x140014ddf
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate__n
call fcn.14000db70
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
call fcn.14000db70
mov eax, dword [0x140053bd0]
cmp eax, dword [0x140053bd8]
jae 0x14001465c
mov r8d, dword [0x140053bd0]
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.1400194a0
mov edx, dword [0x140053bd0]
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
call fcn.14000db70
jmp case.0x14001414d.11
cmp dword [rbx + 4], 0xffffffff
je 0x140014784
lea rax, [rbp - 0x60]
mov dword [rsp + 0x50], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x78], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400146fe
mov rcx, qword [rbp - 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400146ec
mov r8d, dword [rsp + 0x50]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x1400146f4
mov dword [rsp + 0x50], 0xffffffff
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x50]
je 0x140014784
lea r9, str.ControllerIndex
mov dword [rbp - 0x80], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.1400194a0
lea rax, [rbp - 0x58]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014784
mov rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, 1
je 0x1400147a4
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140012d50
jmp case.0x14001414d.11
test dil, 2
je 0x1400147bf
lea rcx, str.policy__POLICY_YM_RESET_ROOT_HUB_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
jmp 0x140015398
test dil, 4
je 0x14001509c
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Try_to_reset_the_not_configurated_dongle_n
mov ecx, 2
call fcn.1400194a0
mov edx, 1
mov dword [0x1400554b8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db70
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.1400194a0
call fcn.140009f30
cmp eax, 0x32
jl 0x14001484a
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.1400194a0
mov dword [0x140053bd4], 1
mov ecx, dword [0x140053bb0]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014e14
lea rdx, str.HandleAdapterStatus__WIN8__DeviceWorksFine_n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.HandleAdapterStatus__WIN8__DeviceWorksFine__n
call fcn.14000db70
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x1400150d7
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
call fcn.14000db70
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014955
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014942
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x14001494a
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
lea r9, str.ControllerIndex
mov r8d, 0xffffffff
mov dword [rbx + 4], eax
lea rdx, str.Set_value__d_into_reg__s__n
mov dword [rsp + 0x38], 0xffffffff
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400149e5
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x140015378
bt edi, 0x11
jb 0x140014d7f
mov ecx, dword [rbx]
test ecx, ecx
je 0x140014c29
sub ecx, 1
je 0x140014c11
cmp ecx, 1
jne case.0x14001414d.11
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotConfigurate__n
call fcn.14000db70
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
call fcn.14000db70
cmp dword [rbx + 4], 0xffffffff
je 0x140014b66
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014ad7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014ac4
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x140014acc
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x30]
je 0x140014b66
lea r9, str.ControllerIndex
mov dword [rsp + 0x58], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x68]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014b66
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, 1
jne 0x14001478a
test dil, 2
jne 0x1400147aa
test dil, 4
je 0x14001509c
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 1
mov dword [0x1400554b8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db70
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.1400194a0
call fcn.140009f30
cmp eax, 0x32
jl 0x140014bf4
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.1400194a0
mov dword [0x140053bd4], 1
mov ecx, dword [0x140053bb0]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014e14
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceWorksFine__n
call fcn.14000db70
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
jmp 0x1400150d7
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotFound__n
call fcn.14000db70
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014cdd
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014cca
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x140014cd2
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
lea r9, str.ControllerIndex
mov r8d, 0xffffffff
mov dword [rbx + 4], eax
lea rdx, str.Set_value__d_into_reg__s__n
mov dword [rsp + 0x38], 0xffffffff
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014d6d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
jmp 0x140015378
bt edi, 0x11
jae 0x140014da2
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400153ae
mov ecx, dword [rbx]
test ecx, ecx
je 0x14001521c
sub ecx, 1
je 0x1400150b3
sub ecx, 1
je 0x140014e51
cmp ecx, 1
jne case.0x14001414d.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceDisabled_n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.HandleAdapterStatus__WIN10__DeviceDisabled__n
call fcn.14000db70
test dil, 4
je case.0x14001414d.11
test esi, esi
je case.0x14001414d.11
lea rcx, str.Forcedly_enable_the_disabled_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Forcedly_enable_the_disabled_dongle_n
mov ecx, 2
call fcn.1400194a0
xor edx, edx
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db70
xor r8d, r8d
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 2]
call fcn.1400194a0
mov ecx, dword [0x140053bb0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp case.0x14001414d.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate__n
call fcn.14000db70
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
call fcn.14000db70
mov eax, dword [0x140053bd0]
cmp eax, dword [0x140053bd8]
jae 0x140014eba
mov r8d, dword [0x140053bd0]
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.1400194a0
mov edx, dword [0x140053bd0]
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
call fcn.14000db70
jmp case.0x14001414d.11
cmp dword [rbx + 4], 0xffffffff
je 0x140014fe0
lea rax, [rbp - 0x50]
mov dword [rsp + 0x54], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x78], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014f5a
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x54]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014f48
mov r8d, dword [rsp + 0x54]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x140014f50
mov dword [rsp + 0x54], 0xffffffff
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x54]
je 0x140014fe0
lea r9, str.ControllerIndex
mov dword [rbp - 0x70], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.1400194a0
lea rax, [rbp - 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014fe0
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, 1
jne 0x14001478a
test dil, 2
jne 0x1400147aa
test dil, 4
je 0x14001509c
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.Try_to_reset_the_not_configurated_dongle_n
mov ecx, 2
call fcn.1400194a0
mov edx, 1
mov dword [0x1400554b8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db70
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.1400194a0
call fcn.140009f30
cmp eax, 0x32
jl 0x14001507f
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.1400194a0
mov dword [0x140053bd4], 1
mov ecx, dword [0x140053bb0]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014e14
test dil, 8
je case.0x14001414d.11
mov ecx, dword [rbx + 4]
call fcn.140013d40
jmp case.0x14001414d.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceWorksFine_n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.HandleAdapterStatus__WIN10__DeviceWorksFine__n
call fcn.14000db70
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000db70
cmp dword [rbx + 4], 0xffffffff
je case.0x14001414d.11
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015184
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015171
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x140015179
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x30]
je case.0x14001414d.11
lea r9, str.ControllerIndex
mov dword [rsp + 0x38], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne case.0x14001414d.11
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x14001414d.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
call fcn.14000db70
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400152e1
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400152ce
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.1400194a0
jmp 0x1400152d6
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
lea r9, str.ControllerIndex
mov r8d, 0xffffffff
mov dword [rbx + 4], eax
lea rdx, str.Set_value__d_into_reg__s__n
mov dword [rsp + 0x38], 0xffffffff
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015371
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ControllerIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000db70
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
je case.0x14001414d.11
bt edi, 8
jb 0x14001479a
bt edi, 9
jae case.0x14001414d.11
call fcn.1400134c0
lea rdx, str.Leave_GetBTAdapterStatus___n
mov ecx, 2
call fcn.1400194a0
mov rsi, qword [rsp + 0x518]
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.1400198d0
mov rbx, qword [rsp + 0x520]
add rsp, 0x4f0
pop r14
pop rdi
pop rbp
ret