Function at 0x1400010f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r13
push r14
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
xor eax, eax
xor ebx, ebx
lea rcx, [rbp + 0x302]
xor edx, edx
mov r8d, 0xc6
mov dword [rsp + 0x58], ebx
mov word [rbp + 0x220], bx
mov qword [rbp + 0x222], rax
mov qword [rbp + 0x22a], rax
mov qword [rbp + 0x232], rax
mov qword [rbp + 0x23a], rax
mov qword [rbp + 0x242], rax
mov qword [rbp + 0x24a], rax
mov qword [rbp + 0x252], rax
mov word [rbp + 0x25a], ax
mov word [rbp + 0x1d0], bx
mov qword [rbp + 0x1d2], rax
mov qword [rbp + 0x1da], rax
mov qword [rbp + 0x1e2], rax
mov qword [rbp + 0x1ea], rax
mov qword [rbp + 0x1f2], rax
mov qword [rbp + 0x1fa], rax
mov qword [rbp + 0x202], rax
mov qword [rbp + 0x20a], rax
mov qword [rbp + 0x212], rax
mov dword [rbp + 0x21a], eax
mov word [rbp + 0x21e], ax
mov word [rbp + 0x300], bx
call fcn.14001cc90
xor eax, eax
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
movaps xmm1, xmmword [0x14002ff80]
lea rcx, str.SetRegInfHwId_Enter___n
mov qword [rbp + 0x2b8], rax
mov qword [rbp + 0x2c0], rax
movaps xmmword [rbp + 0x260], xmm0
movaps xmm0, xmmword [0x14002ff90]
movaps xmmword [rbp + 0x270], xmm1
mov qword [rbp + 0x2c8], rax
mov qword [rbp + 0x2d0], rax
mov qword [rbp + 0x2d8], rax
movaps xmm1, xmmword [0x14002ffa0]
movaps xmmword [rbp + 0x280], xmm0
movaps xmm0, xmmword [0x14002ffb0]
mov qword [rbp + 0x2e0], rax
mov qword [rbp + 0x2e8], rax
mov qword [rbp + 0x2f0], rax
movaps xmmword [rbp + 0x290], xmm1
movaps xmmword [rbp + 0x2a0], xmm0
movsd xmm1, qword [0x14002ffc0]
movsd qword [rbp + 0x2b0], xmm1
mov qword [rbp + 0x2f8], rax
call fcn.14000e580
lea rdx, [rbp - 0x80]
lea rcx, str.C:WindowsSystem32DriverStoreFileRepositoryqca_btusb.inf_
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea rdx, [rbp - 0x80]
lea rcx, str.C:WindowsSystem32DriverStoreFileRepository_atheros_bth.inf_
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp r14, 0xffffffffffffffff
jne 0x1400012b7
cmp rax, r14
jne 0x1400012b7
lea rcx, str.SetRegInfHwId__didnt_find_path_n
call fcn.14000e580
call fcn.140001000
int3
lea rcx, str.SetRegInfHwId__found_path_n
mov qword [rsp + 0x500], rsi
call fcn.14000e580
lea r11, [rsp + 0x50]
lea rdx, [rbp + 0x260]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000130c
lea rcx, str.SetRegInfHwId__find_key_n
call fcn.14000e580
mov rsi, qword [rsp + 0x50]
jmp 0x140001648
lea rcx, str.SetRegInfHwId__create_key_n
call fcn.14000e580
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rdx, [rbp + 0x260]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 6
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000136c
lea rcx, str.SetRegInfHwId__failed_to_create_key_n
call fcn.14000e580
mov rsi, qword [rsp + 0x50]
jmp 0x140001648
lea r8, str.C:WindowsSystem32DriverStoreFileRepository_
lea rcx, [rbp + 0x300]
mov edx, 0x64
call fcn.140019c94
lea r8, [rbp - 0x54]
lea rcx, [rbp + 0x300]
mov edx, 0x64
call fcn.140019c94
lea r8, str.qca_btusb.inf
lea rcx, [rbp + 0x300]
mov edx, 0x64
call fcn.140019c94
lea r9, [rsp + 0x58]
lea rdx, str.Bluetooth
lea rcx, [rbp + 0x300]
mov r8d, 3
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400013f1
lea rdx, [rbp + 0x300]
lea rcx, str.SetRegInfHwId__failed_to_open_file__s_n
call fcn.14000e580
jmp 0x140001648
lea rdx, str.Manufacturer
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupGetLineCountW]
lea rcx, str.SetRegInfHwId__Manufacturer_total_line_number_is__d_n
mov edx, eax
call fcn.14000e580
lea r9, [rsp + 0x60]
lea rdx, str.Manufacturer
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x14000143c
lea rcx, str.SetRegInfHwId__failed_to_get_Manufacturer_n
call fcn.14000e580
jmp 0x140001648
mov r9d, 0x50
lea r8, [rbp + 0x1d0]
lea rcx, [rsp + 0x60]
lea edx, [r9 - 0x4f]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x140001472
lea rcx, str.SetRegInfHwId__failed_to_get_Manufacturer_field_1_n
call fcn.14000e580
jmp 0x140001648
lea r8, [rbp + 0x1d0]
lea rcx, [rbp + 0x220]
mov edx, 0x1e
call fcn.140019c94
xor edx, edx
lea rcx, [rbp + 0x1d0]
lea r8d, [rdx + 0x50]
call fcn.14001cc90
mov r9d, 0x50
lea r8, [rbp + 0x1d0]
lea rcx, [rsp + 0x60]
lea edx, [r9 - 0x4e]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x1400014d2
lea rcx, str.SetRegInfHwId__failed_to_get_Manufacturer_field_2_n
call fcn.14000e580
jmp 0x140001648
lea r8, [0x140030508]
lea rcx, [rbp + 0x220]
mov edx, 0x1e
mov qword [rsp + 0x508], rdi
mov qword [rsp + 0x510], r12
call fcn.140019c94
lea r8, [rbp + 0x1d0]
lea rcx, [rbp + 0x220]
mov edx, 0x1e
call fcn.140019c94
lea rdx, [rbp + 0x220]
lea rcx, str.SetRegInfHwId__pid_vid_section_is__s_n
call fcn.14000e580
lea rdx, [rbp + 0x220]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupGetLineCountW]
lea rcx, str.SetRegInfHwId__total_num_of_vid_pid_is__d_n
mov edx, eax
mov r12d, eax
call fcn.14000e580
mov edi, ebx
test r12d, r12d
je 0x140001633
xor eax, eax
lea rcx, [rbp + 0x1d0]
xor edx, edx
lea r8d, [rax + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.14001cc90
lea r9, [rsp + 0x60]
lea rdx, [rbp + 0x220]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupGetLineByIndexW]
test eax, eax
je 0x140001625
mov r9d, 0x50
lea r8, [rbp + 0x1d0]
lea rcx, [rsp + 0x60]
lea edx, [r9 - 0x4e]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140001617
inc edi
lea rdx, [rbp + 0x1d0]
lea rcx, str.SetRegInfHwId__vid_pid_field_is__s__line_is__d_n
mov r8d, edi
call fcn.14000e580
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x1d0]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000160c
lea rdx, [rbp + 0x1d0]
lea rcx, str.SetRegInfHwId__faild_to_write_value_pid_vid__s_n
call fcn.14000e580
cmp edi, r12d
jb 0x140001551
jmp 0x140001633
lea rcx, str.SetRegInfHwId__failed_to_get_the_string_vid_pid_n
call fcn.14000e580
jmp 0x140001633
lea rcx, str.SetRegInfHwId__failed_to_get_the_pid_vid__line_is__d_n
mov edx, edi
call fcn.14000e580
mov r12, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x508]
mov ebx, 1
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140001665
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.SetRegInfHwId__close_hKey_n
call fcn.14000e580
cmp r14, 0xffffffffffffffff
je 0x140001680
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, str.SetRegInfHwId__close_hFind1_n
call fcn.14000e580
cmp r13, 0xffffffffffffffff
je 0x14000169b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, str.SetRegInfHwId__close_hFind2_n
call fcn.14000e580
cmp rsi, 0xffffffffffffffff
je 0x1400016b6
lea rcx, str.SetRegInfHwId__close_file_handle_n
call fcn.14000e580
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea rcx, str.SetRegInfHwId_Leave___n
call fcn.14000e580
mov rsi, qword [rsp + 0x500]
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140019650
mov rbx, qword [rsp + 0x518]
add rsp, 0x4e0
pop r14
pop r13
pop rbp
ret