Function at 0x14001e2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x14002c180]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x44], r9d
mov eax, r8d
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x60], rdx
mov r12, rcx
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0x68], rcx
test rdx, rdx
je 0x14001e6ae
test eax, eax
je 0x14001e6ae
mov dword [rsp + 0x40], 0
lea rax, vtable.MFX::MFXVector_wchar_t_.0
mov qword [rsp + 0x78], rax
xor esi, esi
mov qword [rsp + 0x80], rsi
xor ebx, ebx
mov dword [rsp + 0x88], ebx
mov rax, qword [r12]
test rax, rax
jne 0x14001e340
lea rcx, str.cfgmgr32.dll
call fcn.14001c7f0
mov qword [r12], rax
test rax, rax
je 0x14001e6a7
cmp qword [r12 + 0x10], 0
je 0x14001e364
cmp qword [r12 + 8], 0
je 0x14001e364
cmp qword [r12 + 0x18], 0
je 0x14001e364
cmp qword [r12 + 0x20], 0
jne 0x14001e3e4
lea rdx, str.CM_Get_Device_ID_ListW
mov rcx, rax
call fcn.14001c7e0
mov qword [r12 + 0x10], rax
lea rdx, str.CM_Get_Device_ID_List_SizeW
mov rcx, qword [r12]
call fcn.14001c7e0
mov qword [r12 + 8], rax
lea rdx, str.CM_Locate_DevNodeW
mov rcx, qword [r12]
call fcn.14001c7e0
mov qword [r12 + 0x18], rax
lea rdx, str.CM_Open_DevNode_Key
mov rcx, qword [r12]
call fcn.14001c7e0
mov qword [r12 + 0x20], rax
cmp qword [r12 + 0x10], 0
je 0x14001e6a7
cmp qword [r12 + 8], 0
je 0x14001e6a7
cmp qword [r12 + 0x18], 0
je 0x14001e6a7
test rax, rax
je 0x14001e6a7
mov r8d, 0x50
lea rdx, [rsp + 0x90]
lea rcx, [0x140024138]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x14001e6a7
mov r15, 0xffffffffffffffff
nop
mov r8d, 0x300
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
mov rax, qword [r12 + 8]
call qword [0x140021640]
test eax, eax
jne 0x14001e6a2
mov r13d, dword [rsp + 0x40]
mov eax, 2
mul r13
mov rdi, rax
cmovo rdi, r15
mov rcx, rdi
call fcn.14001edb4
mov r14, rax
test rax, rax
je 0x14001e469
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x14001e46c
xor r14d, r14d
test ebx, ebx
je 0x14001e492
mov rax, r14
mov r9, rsi
sub r9, r14
mov r8d, ebx
nop dword [rax]
movzx edx, word [r9 + rax]
mov word [rax], dx
lea rax, [rax + 2]
sub r8, 1
jne 0x14001e480
mov rcx, rsi
call fcn.14001ea8c
mov rsi, r14
mov qword [rsp + 0x80], r14
mov ebx, r13d
mov dword [rsp + 0x88], ebx
mov r9d, 0x300
mov r8d, dword [rsp + 0x40]
mov rdx, r14
lea rcx, [rsp + 0x90]
mov rax, qword [r12 + 0x10]
call qword [0x140021640]
cmp eax, 0x1a
je 0x14001e410
test eax, eax
jne 0x14001e6a2
mov rsi, r14
lea rax, [r14 + r13*2]
mov qword [rsp + 0x70], rax
cmp r14, rax
jae 0x14001e633
nop word [rax + rax]
mov rdi, r15
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14001e503
test rdi, rdi
je 0x14001e633
lea rdx, str.VEN_8086
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
jne 0x14001e542
lea rdx, str.ven_8086
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
je 0x14001e620
lea rdx, str.DEV_
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
jne 0x14001e56e
lea rdx, str.dev_
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
je 0x14001e620
lea rcx, [rax + 8]
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
test eax, eax
je 0x14001e620
cmp eax, dword [rsp + 0x44]
jne 0x14001e620
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x48]
mov rax, qword [r12 + 0x18]
call qword [0x140021640]
test eax, eax
jne 0x14001e620
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov edx, 0x20019
mov ecx, dword [rsp + 0x48]
mov rax, qword [r12 + 0x20]
call qword [0x140021640]
test eax, eax
jne 0x14001e620
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r13, qword [rsp + 0x60]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14001e638
lea rsi, [rsi + rdi*2]
add rsi, 2
cmp rsi, qword [rsp + 0x70]
jb 0x14001e500
mov rcx, r14
jmp 0x14001e6a9
mov rax, r15
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [r13 + rax*2], 0
jne 0x14001e640
cmp word [r13 + rax*2 - 2], 0x2f
je 0x14001e68c
nop word [rax + rax]
lea r15, [r15 + 1]
cmp word [r13 + r15*2], 0
jne 0x14001e660
cmp word [r13 + r15*2 - 2], 0x5c
je 0x14001e68c
lea r8, [0x140023104]
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
nop
mov rcx, r14
call fcn.14001ea8c
mov al, 1
jmp 0x14001e6b0
mov rcx, rsi
jmp 0x14001e6a9
xor ecx, ecx
call fcn.14001ea8c
xor al, al
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14001e7f0
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret