Function at 0x1400010f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r13
push r14
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rbp + 0x400], rax
xor eax, eax
xor ebx, ebx
lea rcx, [rbp + 0x332]
xor edx, edx
mov r8d, 0xc6
mov dword [rsp + 0x58], ebx
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 word [rbp + 0x20a], ax
mov word [rbp + 0x240], bx
mov qword [rbp + 0x242], rax
mov qword [rbp + 0x24a], rax
mov qword [rbp + 0x252], rax
mov qword [rbp + 0x25a], rax
mov qword [rbp + 0x262], rax
mov qword [rbp + 0x26a], rax
mov qword [rbp + 0x272], rax
mov qword [rbp + 0x27a], rax
mov qword [rbp + 0x282], rax
mov dword [rbp + 0x28a], eax
mov word [rbp + 0x28e], ax
mov word [rbp + 0x210], bx
mov qword [rbp + 0x212], rax
mov qword [rbp + 0x21a], rax
mov qword [rbp + 0x222], rax
mov qword [rbp + 0x22a], rax
mov qword [rbp + 0x232], rax
mov word [rbp + 0x23a], ax
mov word [rbp + 0x330], bx
call fcn.14001dd20
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
movaps xmm1, xmmword [0x140030f60]
xor eax, eax
lea rcx, str.SetRegInfHwId_Enter___n
movaps xmmword [rbp + 0x290], xmm0
movaps xmm0, xmmword [0x140030f70]
movaps xmmword [rbp + 0x2a0], xmm1
mov qword [rbp + 0x2e8], rax
mov qword [rbp + 0x2f0], rax
mov qword [rbp + 0x2f8], rax
movaps xmm1, xmmword [0x140030f80]
movaps xmmword [rbp + 0x2b0], xmm0
movaps xmm0, xmmword [0x140030f90]
mov qword [rbp + 0x300], rax
mov qword [rbp + 0x308], rax
mov qword [rbp + 0x310], rax
movaps xmmword [rbp + 0x2c0], xmm1
movaps xmmword [rbp + 0x2d0], xmm0
mov qword [rbp + 0x318], rax
mov qword [rbp + 0x320], rax
mov qword [rbp + 0x328], rax
movsd xmm1, qword [0x140030fa0]
movsd qword [rbp + 0x2e0], xmm1
call fcn.14000f070
lea rdx, [rbp - 0x80]
lea rcx, str.C:WindowsSystem32DriverStoreFileRepository_btfilter.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 0x1400012e8
cmp rax, r14
jne 0x1400012e8
lea rcx, str.SetRegInfHwId__didnt_find_path_n
call fcn.14000f070
call fcn.140001000
int3
lea rcx, str.SetRegInfHwId__found_path_n
mov qword [rsp + 0x530], rsi
call fcn.14000f070
lea r11, [rsp + 0x50]
lea rdx, [rbp + 0x290]
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 0x14000133d
lea rcx, str.SetRegInfHwId__find_key_n
call fcn.14000f070
mov rsi, qword [rsp + 0x50]
jmp 0x1400016a3
lea rcx, str.SetRegInfHwId__create_key_n
call fcn.14000f070
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rdx, [rbp + 0x290]
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 0x14000139d
lea rcx, str.SetRegInfHwId__failed_to_create_key_n
call fcn.14000f070
mov rsi, qword [rsp + 0x50]
jmp 0x1400016a3
lea r8, str.C:WindowsSystem32DriverStoreFileRepository_
lea rcx, [rbp + 0x330]
mov edx, 0x64
call fcn.14001aecc
lea r8, [rbp - 0x54]
lea rcx, [rbp + 0x330]
mov edx, 0x64
call fcn.14001aecc
lea r8, str._btfilter.inf
lea rcx, [rbp + 0x330]
mov edx, 0x64
call fcn.14001aecc
lea r9, [rsp + 0x58]
lea rdx, str.Bluetooth
lea rcx, [rbp + 0x330]
mov r8d, 3
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001422
lea rdx, [rbp + 0x330]
lea rcx, str.SetRegInfHwId__failed_to_open_file__s_n
call fcn.14000f070
jmp 0x1400016a3
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.14000f070
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 0x14000146d
lea rcx, str.SetRegInfHwId__failed_to_get_Manufacturer_n
call fcn.14000f070
jmp 0x1400016a3
mov r9d, 0x50
lea r8, [rbp + 0x240]
lea rcx, [rsp + 0x60]
lea edx, [r9 - 0x4f]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x1400014a3
lea rcx, str.SetRegInfHwId__failed_to_get_Manufacturer_field_1_n
call fcn.14000f070
jmp 0x1400016a3
lea r8, [rbp + 0x240]
lea rcx, [rbp + 0x1d0]
mov edx, 0x1e
call fcn.14001aecc
xor edx, edx
lea rcx, [rbp + 0x240]
lea r8d, [rdx + 0x50]
call fcn.14001dd20
mov r9d, 0x50
lea r8, [rbp + 0x240]
lea rcx, [rsp + 0x60]
lea edx, [r9 - 0x4e]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x140001503
lea rcx, str.SetRegInfHwId__failed_to_get_Manufacturer_field_2_n
call fcn.14000f070
jmp 0x1400016a3
lea r8, [0x1400314e8]
lea rcx, [rbp + 0x1d0]
mov edx, 0x1e
mov qword [rsp + 0x538], rdi
mov qword [rsp + 0x540], r12
call fcn.14001aecc
lea r8, [rbp + 0x240]
lea rcx, [rbp + 0x1d0]
mov edx, 0x1e
call fcn.14001aecc
lea rdx, [rbp + 0x1d0]
lea rcx, str.SetRegInfHwId__pid_vid_section_is__s_n
call fcn.14000f070
lea rdx, [rbp + 0x1d0]
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.14000f070
mov edi, ebx
test r12d, r12d
je 0x14000168e
nop word [rax + rax]
xor eax, eax
lea rcx, [rbp + 0x240]
xor edx, edx
lea r8d, [rax + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.14001dd20
lea r9, [rsp + 0x60]
lea rdx, [rbp + 0x1d0]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupGetLineByIndexW]
test eax, eax
je 0x140001680
mov r9d, 0x50
lea r8, [rbp + 0x240]
lea rcx, [rsp + 0x60]
lea edx, [r9 - 0x4e]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140001672
mov r9d, 0x2c
lea r8, [rbp + 0x240]
lea rcx, [rbp + 0x210]
mov edx, r9d
call fcn.14001ae44
inc edi
lea rdx, [rbp + 0x210]
lea rcx, str.SetRegInfHwId__vid_pid_field_is__s__line_is__d_n
mov r8d, edi
call fcn.14000f070
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x210]
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 0x140001667
lea rdx, [rbp + 0x210]
lea rcx, str.SetRegInfHwId__faild_to_write_value_pid_vid__s_n
call fcn.14000f070
cmp edi, r12d
jb 0x140001590
jmp 0x14000168e
lea rcx, str.SetRegInfHwId__failed_to_get_the_string_vid_pid_n
call fcn.14000f070
jmp 0x14000168e
lea rcx, str.SetRegInfHwId__failed_to_get_the_pid_vid__line_is__d_n
mov edx, edi
call fcn.14000f070
mov r12, qword [rsp + 0x540]
mov rdi, qword [rsp + 0x538]
mov ebx, 1
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1400016c0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.SetRegInfHwId__close_hKey_n
call fcn.14000f070
cmp r14, 0xffffffffffffffff
je 0x1400016db
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, str.SetRegInfHwId__close_hFind1_n
call fcn.14000f070
cmp r13, 0xffffffffffffffff
je 0x1400016f6
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, str.SetRegInfHwId__close_hFind2_n
call fcn.14000f070
cmp rsi, 0xffffffffffffffff
je 0x140001711
lea rcx, str.SetRegInfHwId__close_file_handle_n
call fcn.14000f070
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea rcx, str.SetRegInfHwId_Leave___n
call fcn.14000f070
mov rsi, qword [rsp + 0x530]
mov eax, ebx
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14001a650
mov rbx, qword [rsp + 0x548]
add rsp, 0x510
pop r14
pop r13
pop rbp
ret