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

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rax, qword [0x140048770]
mov rdi, rcx
cmp rax, qword [rcx + 0x20]
jne 0x140003ad9
mov rax, qword [0x140048778]
cmp rax, qword [rcx + 0x28]
jne 0x140003ad9
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
mov qword [rsp + 0x4d8], rbx
xor edx, edx
movups xmm1, xmmword [0x140041e88]
movzx ebx, byte [rcx + 0x41]
mov r8d, 0x1d0
movaps xmmword [rbp + 0x1a0], xmm0
lea rcx, [rbp + 0x1d8]
movups xmm0, xmmword [0x140041e98]
movaps xmmword [rbp + 0x1b0], xmm1
movsd xmm1, qword [0x140041ea8]
movaps xmmword [rbp + 0x1c0], xmm0
movsd qword [rbp + 0x1d0], xmm1
call fcn.14001d250
movzx ecx, byte [rdi + 0x42]
sub ecx, 0x8f
je 0x1400039b8
cmp ecx, 3
jne 0x140003ad1
movzx eax, byte [rdi + 0x43]
cmp al, 8
jne 0x140003755
movzx ebx, byte [rdi + 0x45]
lea rcx, str.the_value_of_radio_query_return_status_is__d_n
mov edx, ebx
call fcn.14000e220
test bl, bl
je 0x14000372f
mov dword [0x1400557a4], 1
lea rcx, str.g_RadioStatus__RadioStatus_ON_r_n
jmp 0x140003740
mov dword [0x1400557a4], 2
lea rcx, str.g_RadioStatus__RadioStatus_OFF_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x140055574], 1
jmp 0x140003ad1
cmp al, 3
jne 0x1400037a8
xor edx, edx
lea rcx, [0x1400556a0]
mov r8d, 0x100
call fcn.14001d250
movzx ebx, bl
lea rdx, [rdi + 0x45]
lea rcx, [0x1400556a1]
mov byte [0x1400556a0], 2
lea eax, [rbx - 3]
movsxd r8, eax
call fcn.14001c560
lea eax, [rbx - 2]
lea rcx, str.recevied_general_data_r_n
mov dword [0x14005556c], eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140003ad1
cmp al, 5
jne 0x1400037fb
xor edx, edx
lea rcx, [0x140055460]
mov r8d, 0x100
call fcn.14001d250
movzx ebx, bl
lea rdx, [rdi + 0x45]
lea rcx, [0x140055461]
mov byte [0x140055460], 4
lea eax, [rbx - 3]
movsxd r8, eax
call fcn.14001c560
lea eax, [rbx - 2]
lea rcx, str.recevied_EIR_data_r_n
mov dword [0x140055694], eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140003ad1
cmp al, 7
jne 0x14000384e
xor edx, edx
lea rcx, [0x140055580]
mov r8d, 0x100
call fcn.14001d250
movzx ebx, bl
lea rdx, [rdi + 0x45]
lea rcx, [0x140055581]
mov byte [0x140055580], 6
lea eax, [rbx - 3]
movsxd r8, eax
call fcn.14001c560
lea eax, [rbx - 2]
lea rcx, str.recevied_local_name_r_n
mov dword [0x140055578], eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140003ad1
test al, al
jne 0x140003ad1
lea rcx, str.Unlocked_radio_operator____r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
mov dword [0x140055564], ebx
call fcn.140019150
test eax, eax
je 0x14000387e
call fcn.14000ec40
jmp 0x140003904
xor edx, edx
mov qword [rsp + 0x58], rbx
mov r8d, 0x200
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x70]
call fcn.14001d250
xor eax, eax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
call fcn.140019040
test eax, eax
je 0x140003904
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x70]
mov qword [rsp + 0x30], rax
mov r9d, 0x200
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0x20
mov edx, 0x9c402644
mov qword [rsp + 0x20], rax
mov byte [rbp - 0x70], 6
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400017f0
test eax, eax
je 0x14000399f
lea rax, [rsp + 0x60]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x1a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003989
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rdx, str.SwitchRadio
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
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.1400018f0
cmp eax, 1
je 0x14000399f
lea rcx, str.WM_TURN_RADIO_OFF
call fcn.1400019f0
mov rcx, qword [0x140055688]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor ecx, ecx
call fcn.14000e340
jmp 0x140003ad1
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.14001d250
cmp dword [rdi + 0x43], 0x99999999
jne 0x1400039fe
movzx ecx, byte [rdi + 0x4c]
lea rdx, str._d._d._d._d
movzx eax, byte [rdi + 0x4f]
movzx r9d, byte [rdi + 0x4d]
movzx r8d, byte [rdi + 0x4e]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x70]
call fcn.140005de0
jmp 0x140003a2f
movzx ecx, byte [rdi + 0x43]
movzx edx, byte [rdi + 0x44]
mov eax, dword [rdi + 0x47]
movzx r9d, byte [rdi + 0x45]
movzx r8d, byte [rdi + 0x46]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x20], edx
lea rdx, str._d._d._d._d._d
call fcn.140005de0
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140003a40
lea eax, [rax*2 + 2]
xor ebx, ebx
mov dword [rsp + 0x50], eax
lea rdx, str.SoftwareAtherosVistaAddOn
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x68]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003ad1
mov eax, dword [rsp + 0x50]
lea r9d, [rbx + 1]
mov rcx, qword [rsp + 0x68]
lea rdx, str.Firmware
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x4d8]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140019ce0
mov rdi, qword [rsp + 0x4e0]
add rsp, 0x4c0
pop rbp
ret