Function at 0x14000cae0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a8]
sub rsp, 0x2a8
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x1400ae088]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r13, r9
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x68], rcx
mov rsi, qword [rbp + 0x210]
mov qword [rsp + 0x70], rsi
mov rdi, qword [rbp + 0x218]
xor r12d, r12d
mov dword [rsp + 0x30], r12d
call fcn.1400030f0
mov rcx, rax
test rax, rax
je 0x14000d0bd
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x50], 0x200
mov dword [r14], r12d
mov dword [r15], r12d
mov dword [rbx], 1
mov dword [r13], r12d
mov dword [rsi], r12d
mov dword [rdi], r12d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_Device_ID_List_SizeW]
lea r14, [r12 - 1]
test eax, eax
je 0x14000cbd9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.CM_Get_Device_ID_List_Size_failed__ret:__x
call fcn.140018760
mov r8d, 0x91d
lea r9, [0x1400af290]
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
jmp 0x14000cc81
mov ebx, dword [rsp + 0x30]
add rbx, rbx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
mov edx, 8
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov r12, rax
test rax, rax
jne 0x14000cc1b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.DeviceList_HeapAlloc_failed__ret:_0x_x
call fcn.140018760
mov r8d, 0x926
jmp 0x14000cbba
mov r9d, 0x10000142
mov r8d, dword [rsp + 0x30]
mov rdx, r12
lea rcx, str.RtkBtFilter
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_Device_ID_ListW]
test eax, eax
je 0x14000ccc8
mov edx, eax
lea rcx, str.CM_Get_Device_ID_ListW_failed__ret:__x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x92f
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14000cca0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140023950
add rsp, 0x2a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rsi, r12
cmp word [r12], 0
je 0x14000cc6c
movabs rbx, 0x84011080400
nop dword [rax]
mov rax, qword [rsp + 0x68]
mov dword [rax], 1
call fcn.1400030f0
mov rcx, rax
test rax, rax
je 0x14000d0b2
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rax, r14
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x14000cd10
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140005a50
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x14000d096
xor r9d, r9d
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x14000d03f
mov edx, dword [rsp + 0x4c]
bt edx, 0xa
jae 0x14000cdc7
mov r8d, dword [rsp + 0x34]
lea rcx, str.dwDevStatus:_x__dwProblem:__d
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x952
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov ecx, dword [rsp + 0x34]
cmp ecx, 0x2b
ja 0x14000cdba
bt rbx, rcx
jae 0x14000cdba
mov rax, qword [rsp + 0x70]
mov dword [rax], 1
jmp 0x14000cdc7
cmp ecx, 0x16
jne 0x14000cdc7
mov dword [r13], 1
mov r8d, 0x1e
lea rdx, str.SYSTEMCurrentControlSetEnum_
lea rcx, [rsp + 0x60]
call fcn.140005a50
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140008f10
nop
mov rcx, qword [rax]
mov edx, dword [rcx - 0x10]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
test rax, rax
je 0x14000d0ac
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000ce2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cec6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, [0x14008d620]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14000cebb
mov edx, eax
lea rcx, str.RegQueryValueEx_fail__error_code:__x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x97c
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
call fcn.1400030f0
test rax, rax
je 0x14000d0de
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
cmp rax, 0x10000
jae 0x14000cf05
lea rax, [rbp - 0x70]
movzx edx, ax
lea rcx, [rsp + 0x38]
call fcn.140003290
jmp 0x14000cf2c
lea rcx, [rbp - 0x70]
mov rax, r14
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000cf10
mov r8d, eax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x38]
call fcn.140005a50
nop
mov rbx, qword [rsp + 0x38]
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x14000d0d3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000cf5f
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004030
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14004a9a8
cmp edi, dword [rbx - 0xc]
jg 0x14000d0c8
mov dword [rbx - 0x10], edi
mov rax, rdi
xor edi, edi
mov word [rbx + rax*2], di
cmp dword [rbx - 0x10], edi
jl 0x14000cfd6
lea rdx, str.realtek
mov rcx, rbx
call fcn.140024bf4
test rax, rax
je 0x14000cfaf
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14000cfaf
mov dword [r15], 1
jmp 0x14000cfd6
cmp dword [rbx - 0x10], edi
jl 0x14000cfd6
lea rdx, [0x14008d6a0]
mov rcx, rbx
call fcn.140024bf4
test rax, rax
je 0x14000cfd6
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14000cfd6
mov dword [r15], edi
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000cff1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000d010
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
lea rax, [rax + 1]
cmp word [rsi + rax*2], 0
jne 0x14000d013
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], 0
movabs rbx, 0x84011080400
jne 0x14000cce0
jmp 0x14000cc6c
mov edx, eax
lea rcx, str.CM_Get_DevNode_Status_failed__ret:__x
call fcn.140018760
mov r8d, 0x94d
lea r9, [0x1400af290]
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000cc6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14000cc6c
mov edx, eax
lea rcx, str.CM_Locate_DevNode_failed__ret:__x
call fcn.140018760
mov r8d, 0x945
jmp 0x14000d053
call fcn.140005bc0
nop
mov ecx, 0x80004005
call fcn.140002850
nop
mov ecx, 0x80004005
call fcn.140002850
nop
mov ecx, 0x80070057
call fcn.140002850
int3
mov ecx, 0x80070057
call fcn.140002850
nop
mov ecx, 0x80004005
call fcn.140002850
int3