Function at 0x14000d0f0
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 - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400ae088]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, r9
mov qword [rbp - 0x80], r9
mov qword [rsp + 0x78], r8
mov r15, rdx
mov r13, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x54], 0x200
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]
test eax, eax
je 0x14000d19a
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, 0x842
lea r9, [0x1400af290]
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
jmp 0x14000d246
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 0x14000d1dc
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, 0x84b
jmp 0x14000d17b
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 0x14000d26e
mov edx, eax
lea rcx, str.CM_Get_Device_ID_ListW_failed__ret:__x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x854
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov dword [r13], esi
mov dword [r15], esi
mov dword [rdi], esi
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]
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 0x14000d232
mov r14, 0xffffffffffffffff
mov dword [r13], 1
call fcn.1400030f0
mov rcx, rax
test rax, rax
je 0x14000d66e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x14000d2b0
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 0x14000d606
xor r9d, r9d
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_DevNode_Status]
test eax, eax
je 0x14000d32f
mov edx, eax
lea rcx, str.CM_Get_DevNode_Status_failed__ret:__x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x887
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
jmp 0x14000d346
test dword [rsp + 0x4c], 0x400
je 0x14000d346
cmp dword [rsp + 0x50], 0x16
jne 0x14000d346
mov dword [rdi], 1
call fcn.1400030f0
mov rcx, rax
test rax, rax
je 0x14000d663
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r8d, 0x1e
lea rdx, str.SYSTEMCurrentControlSetEnum_
lea rcx, [rsp + 0x68]
call fcn.140005a50
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
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 0x14000d69a
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000d3c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, [rsp + 0x60]
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 0x14000d465
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [0x14008d620]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14000d45a
mov edx, eax
lea rcx, str.RegQueryValueEx_fail__error_code:__x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x8a4
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
call fcn.1400030f0
test rax, rax
je 0x14000d68f
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 0x14000d4a4
lea rax, [rbp - 0x70]
movzx edx, ax
lea rcx, [rsp + 0x38]
call fcn.140003290
jmp 0x14000d4cc
lea rcx, [rbp - 0x70]
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000d4b0
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 0x14000d684
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000d4ff
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 0x14000d679
mov dword [rbx - 0x10], edi
mov rax, rdi
xor edi, edi
mov word [rbx + rax*2], di
cmp dword [rbx - 0x10], edi
jl 0x14000d581
lea rdx, str.realtek
mov rcx, rbx
call fcn.140024bf4
test rax, rax
je 0x14000d55a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14000d55a
mov dword [r15], 1
mov rax, qword [rsp + 0x78]
mov dword [rax], 1
jmp 0x14000d581
cmp dword [rbx - 0x10], edi
jl 0x14000d581
lea rdx, [0x14008d6a0]
mov rcx, rbx
call fcn.140024bf4
test rax, rax
je 0x14000d581
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14000d581
mov dword [r15], edi
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000d59c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000d5bc
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 0x14000d5db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
nop
lea rax, [rax + 1]
cmp word [rsi + rax*2], 0
jne 0x14000d5e0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], 0
mov rdi, qword [rbp - 0x80]
jne 0x14000d280
jmp 0x14000d232
mov edx, eax
lea rcx, str.CM_Locate_DevNode_failed__ret:__x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x86c
lea rdx, str.EnumDeviceAndGetDriverInfoEx
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov dword [r13], 0
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14000d232
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14000d232
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
nop
call fcn.140005bc0
int3