Function at 0x140003ba0
Capabilities:
Print debug messages
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rbx, rcx
lea rcx, [0x1400370f8]
xor esi, esi
mov rdx, qword [rcx]
cmp rdx, qword [rbx + 0x20]
jne 0x140003bee
mov rdx, qword [rcx + 8]
cmp rdx, qword [rbx + 0x28]
jne 0x140003bee
mov eax, esi
jmp 0x140003bf3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x14000403f
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movups xmm1, xmmword [0x140030990]
lea rcx, [rbp + 0x1d8]
xor edx, edx
mov r8d, 0x1d0
mov qword [rsp + 0x4d8], rdi
movzx edi, byte [rbx + 0x41]
movaps xmmword [rbp + 0x1a0], xmm0
movaps xmmword [rbp + 0x1b0], xmm1
movups xmm0, xmmword [0x1400309a0]
movsd xmm1, qword [0x1400309b0]
movaps xmmword [rbp + 0x1c0], xmm0
movsd qword [rbp + 0x1d0], xmm1
call fcn.14001cc90
movzx edx, byte [rbx + 0x42]
sub edx, 0x8f
je 0x140003f2b
cmp edx, 3
jne 0x140004037
movzx eax, byte [rbx + 0x43]
cmp al, 8
jne 0x140003cc6
movzx edi, byte [rbx + 0x45]
lea rcx, str.the_value_of_radio_query_return_status_is__d_n
mov edx, edi
call fcn.14000e580
test dil, dil
je 0x140003ca0
mov dword [0x140043740], 1
lea rcx, str.g_RadioStatus__RadioStatus_ON_r_n
jmp 0x140003cb1
mov dword [0x140043740], 2
lea rcx, str.g_RadioStatus__RadioStatus_OFF_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x140043710], 1
jmp 0x140004037
cmp al, 3
jne 0x140003d1a
lea rcx, [0x140043430]
xor edx, edx
mov r8d, 0x100
call fcn.14001cc90
movzx edi, dil
lea rdx, [rbx + 0x45]
lea eax, [rdi - 3]
lea rcx, [0x140043431]
mov byte [0x140043430], 2
movsxd r8, eax
call fcn.14001aa60
lea edx, [rdi - 2]
lea rcx, str.recevied_general_data_r_n
mov dword [0x140043530], edx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140004037
cmp al, 5
jne 0x140003d6e
lea rcx, [0x140043330]
xor edx, edx
mov r8d, 0x100
call fcn.14001cc90
movzx edi, dil
lea rdx, [rbx + 0x45]
lea eax, [rdi - 3]
lea rcx, [0x140043331]
mov byte [0x140043330], 4
movsxd r8, eax
call fcn.14001aa60
lea edx, [rdi - 2]
lea rcx, str.recevied_EIR_data_r_n
mov dword [0x14004332c], edx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140004037
cmp al, 7
jne 0x140003dc2
lea rcx, [0x140043540]
xor edx, edx
mov r8d, 0x100
call fcn.14001cc90
movzx edi, dil
lea rdx, [rbx + 0x45]
lea eax, [rdi - 3]
lea rcx, [0x140043541]
mov byte [0x140043540], 6
movsxd r8, eax
call fcn.14001aa60
lea edx, [rdi - 2]
lea rcx, str.recevied_local_name_r_n
mov dword [0x140043534], edx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140004037
test al, al
jne 0x140004037
lea rcx, str.Unlocked_radio_operator____r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x140043328], esi
call fcn.140018c90
test eax, eax
je 0x140003df0
call fcn.14000f0d0
jmp 0x140003e77
lea rcx, [rbp - 0x70]
xor edx, edx
mov r8d, 0x200
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], esi
call fcn.14001cc90
xor edx, edx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x78], rdx
call fcn.140018b80
test eax, eax
je 0x140003e77
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
lea r8, [rbp - 0x70]
mov r9d, 0x200
mov edx, 0x9c402644
mov rcx, rdi
mov dword [rsp + 0x28], 0x20
mov byte [rbp - 0x70], 6
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140001c50
test eax, eax
je 0x140003f12
lea rax, [rsp + 0x68]
lea rdx, [rbp + 0x1a0]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003efc
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea rdx, str.SwitchRadio
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.In_condition__commandID__HCI_SUBCMD_RADIO_OFF__radio_on_off_status_updated_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140001d50
cmp eax, 1
je 0x140003f12
lea rcx, str.WM_TURN_RADIO_OFF
call fcn.140001e50
mov rcx, qword [0x140043538]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor ecx, ecx
call fcn.14000e780
jmp 0x140004037
lea rcx, [rbp - 0x6e]
xor edx, edx
mov r8d, 0x206
mov word [rbp - 0x70], si
call fcn.14001cc90
cmp dword [rbx + 0x43], 0x99999999
jne 0x140003f75
movzx ecx, byte [rbx + 0x4c]
movzx eax, byte [rbx + 0x4f]
movzx r9d, byte [rbx + 0x4d]
movzx r8d, byte [rbx + 0x4e]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x70]
lea rdx, str._d._d._d._d
call fcn.140006660
jmp 0x140003fa6
movzx ecx, byte [rbx + 0x43]
movzx edx, byte [rbx + 0x44]
mov eax, dword [rbx + 0x47]
movzx r9d, byte [rbx + 0x45]
movzx r8d, byte [rbx + 0x46]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._d._d._d._d._d
lea rcx, [rbp - 0x70]
call fcn.140006660
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
lea rdx, str.SoftwareAtherosVistaAddOn
xor r9d, r9d
not rcx
xor r8d, r8d
lea eax, [rcx + rcx]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140004037
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
lea rdx, str.Firmware
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x4d8]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140019650
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret