Function at 0x140013fa0
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 [0x14004d010]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rbx, rcx
call fcn.140009fa0
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 0x14001406c
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 0x14001405a
mov r8d, dword [rsp + 0x48]
lea r9, str.DeviceRecoverPolicy
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x140014062
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 0x14001410b
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 0x1400140f8
mov r8d, dword [rsp + 0x4c]
lea r9, str.ForceEnable
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x140014100
mov dword [rsp + 0x4c], 0xffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0xffffffff
jne 0x140014138
cmp r14d, 0x14
jl 0x14001412b
mov edi, 4
lea rcx, str.Enter_HandleAdapterStatus__set_default_policy_to_0x_x___n_n
mov edx, edi
call fcn.14000db40
jmp 0x140014140
cmp r14d, 0xa
jne 0x140014140
mov edi, 0x10000
jmp 0x140014140
test edi, edi
je 0x14001541b
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.140019630
mov r8d, esi
lea rcx, str.Enter_HandleAdapterStatus__policy0x_x__forceEnable0x_x___n_n
mov edx, edi
call fcn.14000db40
test rbx, rbx
je 0x140015413
lea eax, [r14 - 0xa]
cmp eax, 0x2c
ja case.0x1400141ad.11
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x15458]
mov ecx, dword [rdx + rax*4 + 0x15440]
add rcx, rdx
jmp rcx
mov eax, dword [rbx]
dec eax
cmp eax, 1
ja case.0x1400141ad.11
bt edi, 0x10
jae case.0x1400141ad.11
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.14001b960
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.14001b960
add rbx, 8
je case.0x1400141ad.11
lea r8, str.SYSTEMCurrentControlSetControlClass_
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14002168c
mov r8, rbx
lea rcx, [rbp - 0x40]
mov edx, 0x104
call fcn.1400216f4
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140014222
add rax, 0xfffffffffffffffc
lea rcx, [rbp + 0x1d0]
mov edx, 0x104
lea r8, [rbx + rax*2]
call fcn.14002168c
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.0x1400141ad.11
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0x1d0]
call fcn.140013110
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x1400141ad.11
bt edi, 0x11
jae 0x1400142a4
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
jmp 0x140015409
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400144c5
sub ecx, 1
je 0x1400144ad
cmp ecx, 1
jne case.0x1400141ad.11
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotConfigurate__n
call fcn.14000db40
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d__n
call fcn.14000db40
cmp dword [rbx + 4], 0xffffffff
je 0x14001440f
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 0x140014380
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 0x14001436d
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x140014375
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 0x14001440f
lea r9, str.ControllerIndex
mov dword [rsp + 0x38], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.140019630
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 0x14001440f
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 0x1400147f8
test dil, 2
jne 0x140014818
test dil, 4
je 0x140015101
mov edx, 1
mov dword [0x1400504a8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.140019630
call fcn.140009fa0
cmp eax, 0x32
jl 0x140014490
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.140019630
mov dword [0x14004ebc4], 1
mov ecx, dword [0x14004eba0]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014e75
lea rcx, str.HandleAdapterStatus__WIN7__DeviceWorksFine__n
call fcn.14000db40
lea rcx, str.HandleAdapterStatus__WIN7__ControllerIndex_is__d_n
jmp 0x14001513c
lea rcx, str.HandleAdapterStatus__WIN7__DeviceNotFound__n
call fcn.14000db40
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 0x14001456c
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 0x140014559
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x140014561
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.140019630
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 0x1400145fc
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 0x1400153dd
bt edi, 0x11
jb 0x140014de0
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400148f1
sub ecx, 1
je 0x1400148c8
sub ecx, 1
je 0x140014650
cmp ecx, 1
jne case.0x1400141ad.11
lea rdx, str.HandleAdapterStatus__WIN8__DeviceDisabled_n
mov ecx, 2
call fcn.140019630
lea rcx, str.HandleAdapterStatus__WIN8__DeviceDisabled__n
jmp 0x140014e40
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_n
mov ecx, 2
call fcn.140019630
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate__n
call fcn.14000db40
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
call fcn.14000db40
mov eax, dword [0x14004ebc0]
cmp eax, dword [0x14004ebc8]
jae 0x1400146b9
mov r8d, dword [0x14004ebc0]
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.140019630
mov edx, dword [0x14004ebc0]
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotConfigurate_but_skip__d_n
call fcn.14000db40
jmp case.0x1400141ad.11
cmp dword [rbx + 4], 0xffffffff
je 0x1400147e5
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 0x14001475b
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 0x140014749
mov r8d, dword [rsp + 0x50]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x140014751
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 0x1400147e5
lea r9, str.ControllerIndex
mov dword [rbp - 0x80], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.140019630
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 0x1400147e5
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 0x140014805
lea rcx, str.Try_to_reset_HC__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
call fcn.140012db0
jmp case.0x1400141ad.11
test dil, 2
je 0x140014820
lea rcx, str.policy__POLICY_YM_RESET_ROOT_HUB_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [rbx + 4]
jmp 0x1400153fd
test dil, 4
je 0x140015101
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.140019630
mov edx, 1
mov dword [0x1400504a8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.140019630
call fcn.140009fa0
cmp eax, 0x32
jl 0x1400148ab
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.140019630
mov dword [0x14004ebc4], 1
mov ecx, dword [0x14004eba0]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014e75
lea rdx, str.HandleAdapterStatus__WIN8__DeviceWorksFine_n
mov ecx, 2
call fcn.140019630
lea rcx, str.HandleAdapterStatus__WIN8__DeviceWorksFine__n
call fcn.14000db40
lea rcx, str.HandleAdapterStatus__WIN8__ControllerIndex_is__d_n
jmp 0x14001513c
lea rdx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
mov ecx, 2
call fcn.140019630
lea rcx, str.HandleAdapterStatus__WIN8__DeviceNotFound__n
call fcn.14000db40
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 0x1400149b6
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 0x1400149a3
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x1400149ab
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.140019630
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 0x140014a46
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 0x1400153dd
bt edi, 0x11
jb 0x140014de0
mov ecx, dword [rbx]
test ecx, ecx
je 0x140014c8a
sub ecx, 1
je 0x140014c72
cmp ecx, 1
jne case.0x1400141ad.11
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotConfigurate__n
call fcn.14000db40
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
call fcn.14000db40
cmp dword [rbx + 4], 0xffffffff
je 0x140014bc7
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 0x140014b38
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 0x140014b25
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x140014b2d
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 0x140014bc7
lea r9, str.ControllerIndex
mov dword [rsp + 0x58], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.140019630
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 0x140014bc7
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 0x1400147eb
test dil, 2
jne 0x14001480b
test dil, 4
je 0x140015101
lea rcx, str.Try_to_reset_the_not_configurated_dongle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 1
mov dword [0x1400504a8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.140019630
call fcn.140009fa0
cmp eax, 0x32
jl 0x140014c55
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.140019630
mov dword [0x14004ebc4], 1
mov ecx, dword [0x14004eba0]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014e75
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceWorksFine__n
call fcn.14000db40
lea rcx, str.HandleAdapterStatus__WIN8.1__ControllerIndex_is__d_n
jmp 0x14001513c
lea rcx, str.HandleAdapterStatus__WIN8.1__DeviceNotFound__n
call fcn.14000db40
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 0x140014d3e
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 0x140014d2b
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x140014d33
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.140019630
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 0x140014dce
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 0x1400153dd
bt edi, 0x11
jae 0x140014e03
lea rdx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
mov ecx, 2
call fcn.140019630
lea rcx, str.Leave_GetBTAdapterStatus_for_HP_patch__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140015413
mov ecx, dword [rbx]
test ecx, ecx
je 0x140015281
sub ecx, 1
je 0x140015118
sub ecx, 1
je 0x140014eb2
cmp ecx, 1
jne case.0x1400141ad.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceDisabled_n
mov ecx, 2
call fcn.140019630
lea rcx, str.HandleAdapterStatus__WIN10__DeviceDisabled__n
call fcn.14000db40
test dil, 4
je case.0x1400141ad.11
test esi, esi
je case.0x1400141ad.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.140019630
xor edx, edx
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
xor r8d, r8d
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 2]
call fcn.140019630
mov ecx, dword [0x14004eba0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp case.0x1400141ad.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_n
mov ecx, 2
call fcn.140019630
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate__n
call fcn.14000db40
mov edx, dword [rbx + 4]
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
call fcn.14000db40
mov eax, dword [0x14004ebc0]
cmp eax, dword [0x14004ebc8]
jae 0x140014f1b
mov r8d, dword [0x14004ebc0]
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
mov ecx, 2
call fcn.140019630
mov edx, dword [0x14004ebc0]
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotConfigurate_but_skip__d_n
call fcn.14000db40
jmp case.0x1400141ad.11
cmp dword [rbx + 4], 0xffffffff
je 0x140015045
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 0x140014fbb
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 0x140014fa9
mov r8d, dword [rsp + 0x54]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x140014fb1
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 0x140015045
lea r9, str.ControllerIndex
mov dword [rbp - 0x70], r8d
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.140019630
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 0x140015045
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 0x1400147eb
test dil, 2
jne 0x14001480b
test dil, 4
je 0x140015101
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.140019630
mov edx, 1
mov dword [0x1400504a8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000db40
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.140019630
call fcn.140009fa0
cmp eax, 0x32
jl 0x1400150e4
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.140019630
mov dword [0x14004ebc4], 1
mov ecx, dword [0x14004eba0]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x140014e75
test dil, 8
je case.0x1400141ad.11
mov ecx, dword [rbx + 4]
call fcn.140013da0
jmp case.0x1400141ad.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceWorksFine_n
mov ecx, 2
call fcn.140019630
lea rcx, str.HandleAdapterStatus__WIN10__DeviceWorksFine__n
call fcn.14000db40
lea rcx, str.HandleAdapterStatus__WIN10__ControllerIndex_is__d_n
mov edx, dword [rbx + 4]
call fcn.14000db40
cmp dword [rbx + 4], 0xffffffff
je case.0x1400141ad.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 0x1400151e9
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 0x1400151d6
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x1400151de
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.0x1400141ad.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.140019630
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.0x1400141ad.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.0x1400141ad.11
lea rdx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
mov ecx, 2
call fcn.140019630
lea rcx, str.HandleAdapterStatus__WIN10__DeviceNotFound__n
call fcn.14000db40
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 0x140015346
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 0x140015333
mov r8d, dword [rsp + 0x30]
lea r9, str.ControllerIndex
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
call fcn.140019630
jmp 0x14001533b
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.140019630
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 0x1400153d6
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.14000db40
mov ecx, dword [rbx + 4]
cmp ecx, 0xffffffff
je case.0x1400141ad.11
bt edi, 8
jb 0x1400147fb
bt edi, 9
jae case.0x1400141ad.11
call fcn.140013520
lea rdx, str.Leave_GetBTAdapterStatus___n
mov ecx, 2
call fcn.140019630
mov rsi, qword [rsp + 0x518]
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140019b40
mov rbx, qword [rsp + 0x520]
add rsp, 0x4f0
pop r14
pop rdi
pop rbp
ret