Function at 0x140014a70
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 - 0x540]
sub rsp, 0x640
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp + 0x530], rax
mov rbx, rcx
call fcn.14000a160
mov r14d, eax
mov dword [rsp + 0x30], 0xffffffff
lea rax, [rbp + 0x30]
mov dword [rsp + 0x68], 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 0x140014b3c
mov rcx, qword [rbp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.DeviceRecoverPolicy
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 0x140014b2a
mov r8d, dword [rsp + 0x30]
lea r9, str.DeviceRecoverPolicy
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140014b32
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rsp + 0x30]
lea rax, [rbp + 0x38]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 0xffffffff
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov dword [rsp + 0x6c], 4
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014bd8
mov rcx, qword [rbp + 0x38]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rdx, str.ForceEnable
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014bc6
mov r8d, dword [rsp + 0x34]
lea r9, str.ForceEnable
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140014bce
mov dword [rsp + 0x34], 0xffffffff
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0xffffffff
jne 0x140014c05
cmp r14d, 0x14
jl 0x140014bf8
mov edi, 4
lea rcx, str.Enter_HandleAdapterStatus__set_default_policy_to_0x_x___n_n
mov edx, edi
call fcn.14000e530
jmp 0x140014c0d
cmp r14d, 0xa
jne 0x140014c0d
mov edi, 0x10000
jmp 0x140014c0d
test edi, edi
je 0x14001610a
mov qword [rsp + 0x668], rsi
lea rdx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
xor esi, esi
mov r8d, edi
cmp dword [rsp + 0x34], 0xffffffff
mov ecx, 2
cmovne esi, dword [rsp + 0x34]
mov r9d, esi
call fcn.14001a030
mov r8d, esi
lea rcx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
mov edx, edi
call fcn.14000e530
test rbx, rbx
je 0x140016102
lea eax, [r14 - 0xa]
cmp eax, 0x2c
ja case.0x140014c7a.11
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x16148]
mov ecx, dword [rdx + rax*4 + 0x16130]
add rcx, rdx
jmp rcx
mov eax, dword [rbx]
dec eax
cmp eax, 1
ja case.0x140014c7a.11
bt edi, 0x10
jae case.0x140014c7a.11
xor edx, edx
lea rcx, [rbp + 0x110]
mov r8d, 0x208
call fcn.14001c4c0
xor edx, edx
lea rcx, [rbp + 0x320]
mov r8d, 0x208
call fcn.14001c4c0
add rbx, 8
je case.0x140014c7a.11
lea r8, str.SYSTEMCurrentControlSetControlClass_
mov edx, 0x104
lea rcx, [rbp + 0x110]
call fcn.1400223c4
mov r8, rbx
lea rcx, [rbp + 0x110]
mov edx, 0x104
call fcn.14002242c
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140014d00
add rax, 0xfffffffffffffffc
lea rcx, [rbp + 0x320]
mov edx, 0x104
lea r8, [rbx + rax*2]
call fcn.1400223c4
lea rax, [rbp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x110]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne case.0x140014c7a.11
mov rcx, qword [rbp + 0x40]
lea rdx, [rbp + 0x320]
call fcn.140013be0
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x140014c7a.11
bt edi, 0x11
jae 0x140014d82
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
jmp 0x1400160f8
mov ecx, dword [rbx]
test ecx, ecx
je 0x140015068
sub ecx, 1
je 0x140014f1a
cmp ecx, 1
jne case.0x140014c7a.11
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotConfigurate__n
call fcn.14000e530
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d__n
call fcn.14000e530
cmp dword [rbx + 4], 0xffffffff
je 0x140014ee3
lea rax, [rbp + 0x48]
mov dword [rsp + 0x38], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x70], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014e5b
mov rcx, qword [rbp + 0x48]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014e49
mov r8d, dword [rsp + 0x38]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140014e51
mov dword [rsp + 0x38], 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x38]
je 0x140014ee3
lea r9, str.ControllerIndex
mov dword [rsp + 0x78], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0x50]
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 0x140014ee3
mov rcx, qword [rbp + 0x50]
lea rax, [rsp + 0x78]
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, 1
jne 0x140015398
test dil, 2
jne 0x1400153b8
test dil, 4
je 0x140015de0
mov ecx, 1
mov dword [0x1400514b8], 1
call fcn.14000e5d0
jmp 0x140015bef
lea rcx, str.HandleAdapterStatus__WIN7__DeviceWorksFine__n
call fcn.14000e530
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
call fcn.14000e530
cmp dword [rbx + 4], 0xffffffff
je case.0x140014c7a.11
lea rax, [rbp + 0x58]
mov dword [rsp + 0x3c], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x80], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014fd5
mov rcx, qword [rbp + 0x58]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014fc3
mov r8d, dword [rsp + 0x3c]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140014fcb
mov dword [rsp + 0x3c], 0xffffffff
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x3c]
je case.0x140014c7a.11
lea r9, str.ControllerIndex
mov dword [rbp - 0x78], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0x60]
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.0x140014c7a.11
mov rcx, qword [rbp + 0x60]
lea rax, [rbp - 0x78]
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 + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x140014c7a.11
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotFound__n
call fcn.14000e530
lea rax, [rbp + 0x68]
mov dword [rsp + 0x40], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x70], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001510a
mov rcx, qword [rbp + 0x68]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400150f8
mov r8d, dword [rsp + 0x40]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140015100
mov dword [rsp + 0x40], 0xffffffff
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
lea r9, str.ControllerIndex
mov r8d, 0xffffffff
mov dword [rbx + 4], eax
lea rdx, str.Set_value__d_into_reg__s__n
mov dword [rbp - 0x68], 0xffffffff
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0x70]
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 0x140015195
mov rcx, qword [rbp + 0x70]
lea rax, [rbp - 0x68]
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 + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x1400160cc
bt edi, 0x11
jb 0x140015b5a
mov ecx, dword [rbx]
test ecx, ecx
je 0x140015572
sub ecx, 1
je 0x140015401
sub ecx, 1
je 0x1400151e9
cmp ecx, 1
jne case.0x140014c7a.11
lea rdx, str.HandleAdapterStatus__WIN8__DeviceDisabled_n
mov ecx, 2
call fcn.14001a030
lea rcx, str.HandleAdapterStatus__WIN8__DeviceDisabled__n
jmp 0x140015bba
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_n
mov ecx, 2
call fcn.14001a030
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate__n
call fcn.14000e530
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
call fcn.14000e530
mov eax, dword [0x14004fbb0]
cmp eax, dword [0x14004fbb8]
jae 0x140015252
mov r8d, dword [0x14004fbb0]
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.14001a030
mov edx, dword [0x14004fbb0]
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
call fcn.14000e530
jmp case.0x140014c7a.11
cmp dword [rbx + 4], 0xffffffff
je 0x140015385
lea rax, [rbp + 0x78]
mov dword [rsp + 0x44], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x60], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400152f2
mov rcx, qword [rbp + 0x78]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400152e0
mov r8d, dword [rsp + 0x44]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x1400152e8
mov dword [rsp + 0x44], 0xffffffff
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x44]
je 0x140015385
lea r9, str.ControllerIndex
mov dword [rbp - 0x58], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0x80]
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 0x140015385
mov rcx, qword [rbp + 0x80]
lea rax, [rbp - 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 [rbp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, 1
je 0x1400153a5
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140013880
jmp case.0x140014c7a.11
test dil, 2
je 0x1400153c0
lea rcx, str.policy__POLICY_YM_RESET_ROOT_HUB_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
jmp 0x1400160ec
test dil, 4
je 0x140015de0
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.14001a030
mov ecx, 1
mov dword [0x1400514b8], 1
call fcn.14000e5d0
jmp 0x140015bef
lea rdx, str.HandleAdapterStatus__WIN8__DeviceWorksFine_n
mov ecx, 2
call fcn.14001a030
lea rcx, str.HandleAdapterStatus__WIN8__DeviceWorksFine__n
call fcn.14000e530
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
call fcn.14000e530
cmp dword [rbx + 4], 0xffffffff
je case.0x140014c7a.11
lea rax, [rbp + 0x88]
mov dword [rsp + 0x48], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x50], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400154d6
mov rcx, qword [rbp + 0x88]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
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 0x1400154c1
mov r8d, dword [rsp + 0x48]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x1400154c9
mov dword [rsp + 0x48], 0xffffffff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x48]
je case.0x140014c7a.11
lea r9, str.ControllerIndex
mov dword [rbp - 0x48], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0x90]
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.0x140014c7a.11
mov rcx, qword [rbp + 0x90]
lea rax, [rbp - 0x48]
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 + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x140014c7a.11
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
mov ecx, 2
call fcn.14001a030
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
call fcn.14000e530
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rbp + 0x98]
mov dword [rsp + 0x4c], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x40], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001563b
mov rcx, qword [rbp + 0x98]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
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 0x140015626
mov r8d, dword [rsp + 0x4c]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x14001562e
mov dword [rsp + 0x4c], 0xffffffff
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x4c]
lea r9, str.ControllerIndex
mov r8d, 0xffffffff
mov dword [rbx + 4], eax
lea rdx, str.Set_value__d_into_reg__s__n
mov dword [rbp - 0x38], 0xffffffff
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0xa0]
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 0x1400156cf
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp - 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 [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x1400160cc
bt edi, 0x11
jb 0x140015b5a
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400159fc
sub ecx, 1
je 0x14001589c
cmp ecx, 1
jne case.0x140014c7a.11
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotConfigurate__n
call fcn.14000e530
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
call fcn.14000e530
cmp dword [rbx + 4], 0xffffffff
je 0x140015858
lea rax, [rbp + 0xa8]
mov dword [rsp + 0x50], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x30], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400157c5
mov rcx, qword [rbp + 0xa8]
lea rax, [rbp - 0x30]
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 0x1400157b0
mov r8d, dword [rsp + 0x50]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x1400157b8
mov dword [rsp + 0x50], 0xffffffff
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x50]
je 0x140015858
lea r9, str.ControllerIndex
mov dword [rbp - 0x28], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0xb0]
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 0x140015858
mov rcx, qword [rbp + 0xb0]
lea rax, [rbp - 0x28]
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 + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, 1
jne 0x14001538b
test dil, 2
jne 0x1400153ab
test dil, 4
je 0x140015de0
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 1
mov dword [0x1400514b8], 1
call fcn.14000e5d0
jmp 0x140015bef
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceWorksFine__n
call fcn.14000e530
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
call fcn.14000e530
cmp dword [rbx + 4], 0xffffffff
je case.0x140014c7a.11
lea rax, [rbp + 0xb8]
mov dword [rsp + 0x54], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x20], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015960
mov rcx, qword [rbp + 0xb8]
lea rax, [rbp - 0x20]
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 0x14001594b
mov r8d, dword [rsp + 0x54]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140015953
mov dword [rsp + 0x54], 0xffffffff
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x54]
je case.0x140014c7a.11
lea r9, str.ControllerIndex
mov dword [rbp - 0x18], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0xc0]
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.0x140014c7a.11
mov rcx, qword [rbp + 0xc0]
lea rax, [rbp - 0x18]
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 + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x140014c7a.11
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotFound__n
call fcn.14000e530
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rbp + 0xc8]
mov dword [rsp + 0x58], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x10], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015ab4
mov rcx, qword [rbp + 0xc8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015a9f
mov r8d, dword [rsp + 0x58]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140015aa7
mov dword [rsp + 0x58], 0xffffffff
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x58]
lea r9, str.ControllerIndex
mov r8d, 0xffffffff
mov dword [rbx + 4], eax
lea rdx, str.Set_value__d_into_reg__s__n
mov dword [rbp - 8], 0xffffffff
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0xd0]
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 0x140015b48
mov rcx, qword [rbp + 0xd0]
lea rax, [rbp - 8]
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 + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
jmp 0x1400160cc
bt edi, 0x11
jae 0x140015b7d
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov ecx, 2
call fcn.14001a030
lea rcx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140016102
mov ecx, dword [rbx]
test ecx, ecx
je 0x140015f68
sub ecx, 1
je 0x140015df7
sub ecx, 1
je 0x140015c2c
cmp ecx, 1
jne case.0x140014c7a.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceDisabled_n
mov ecx, 2
call fcn.14001a030
lea rcx, str.HandleAdapterStatus__WIN10__DeviceDisabled__n
call fcn.14000e530
test dil, 4
je case.0x140014c7a.11
test esi, esi
je case.0x140014c7a.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.14001a030
xor edx, edx
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000e530
xor r8d, r8d
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 2]
call fcn.14001a030
mov ecx, dword [0x14004fb90]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp case.0x140014c7a.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_n
mov ecx, 2
call fcn.14001a030
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate__n
call fcn.14000e530
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
call fcn.14000e530
mov eax, dword [0x14004fbb0]
cmp eax, dword [0x14004fbb8]
jae 0x140015c95
mov r8d, dword [0x14004fbb0]
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.14001a030
mov edx, dword [0x14004fbb0]
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
call fcn.14000e530
jmp case.0x140014c7a.11
cmp dword [rbx + 4], 0xffffffff
je 0x140015dd1
lea rax, [rbp + 0xd8]
mov dword [rsp + 0x5c], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015d3e
mov rcx, qword [rbp + 0xd8]
lea rax, [rbp]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x5c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015d29
mov r8d, dword [rsp + 0x5c]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140015d31
mov dword [rsp + 0x5c], 0xffffffff
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x5c]
je 0x140015dd1
lea r9, str.ControllerIndex
mov dword [rbp + 8], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0xe0]
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 0x140015dd1
mov rcx, qword [rbp + 0xe0]
lea rax, [rbp + 8]
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 + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, 1
jne 0x14001538b
jmp 0x1400153a5
test dil, 8
je case.0x140014c7a.11
mov ecx, dword [rbx + 4]
call fcn.140014870
jmp case.0x140014c7a.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceWorksFine_n
mov ecx, 2
call fcn.14001a030
lea rcx, str.HandleAdapterStatus__WIN10__DeviceWorksFine__n
call fcn.14000e530
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
call fcn.14000e530
cmp dword [rbx + 4], 0xffffffff
je case.0x140014c7a.11
lea rax, [rbp + 0xe8]
mov dword [rsp + 0x60], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x10], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015ecc
mov rcx, qword [rbp + 0xe8]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015eb7
mov r8d, dword [rsp + 0x60]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140015ebf
mov dword [rsp + 0x60], 0xffffffff
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbx + 4]
cmp r8d, dword [rsp + 0x60]
je case.0x140014c7a.11
lea r9, str.ControllerIndex
mov dword [rbp + 0x18], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0xf0]
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.0x140014c7a.11
mov rcx, qword [rbp + 0xf0]
lea rax, [rbp + 0x18]
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 + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x140014c7a.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
mov ecx, 2
call fcn.14001a030
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
call fcn.14000e530
lea rcx, str.No_Atheros_dongle_found__in_HandleAdapterStatus___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rbp + 0xf8]
mov dword [rsp + 0x64], 0xffffffff
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 4
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016031
mov rcx, qword [rbp + 0xf8]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.ControllerIndex
lea rax, [rsp + 0x64]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001601c
mov r8d, dword [rsp + 0x64]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.14001a030
jmp 0x140016024
mov dword [rsp + 0x64], 0xffffffff
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x64]
lea r9, str.ControllerIndex
mov r8d, 0xffffffff
mov dword [rbx + 4], eax
lea rdx, str.Set_value__d_into_reg__s__n
mov dword [rbp + 0x28], 0xffffffff
mov ecx, 2
call fcn.14001a030
lea rax, [rbp + 0x100]
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 0x1400160c5
mov rcx, qword [rbp + 0x100]
lea rax, [rbp + 0x28]
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 + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000e530
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
je case.0x140014c7a.11
bt edi, 8
jb 0x14001539b
bt edi, 9
jae case.0x140014c7a.11
call fcn.140013ff0
lea rdx, str.Leave_GetBTAdapterStatus___n
mov ecx, 2
call fcn.14001a030
mov rsi, qword [rsp + 0x668]
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.14001a550
mov rbx, qword [rsp + 0x670]
add rsp, 0x640
pop r14
pop rdi
pop rbp
ret