Function at 0x140001610
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x2e0
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x318], rbx
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
jne 0x140001657
xor al, al
jmp 0x140001a11
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xc2]
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlClass_]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmm1, xmmword [0x140006520]
movaps xmmword [rsp + 0xd0], xmm1
movaps xmm0, xmmword [0x140006530]
movaps xmmword [rsp + 0xe0], xmm0
movaps xmm1, xmmword [0x140006540]
movaps xmmword [rsp + 0xf0], xmm1
movaps xmm0, xmmword [0x140006550]
movaps xmmword [rsp + 0x100], xmm0
lea rcx, [rsp + 0xc0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x1400016c3
xor edx, edx
nop
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400016d0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x80], xmm0
xor r14d, r14d
mov dword [rsp + 0x90], r14d
movdqu xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0xa8], r14
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x78], eax
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x140001794
lea rax, [rsp + 0xc0]
mov rcx, rdi
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x140001750
inc rcx
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14000455c
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0xc0]
movzx ecx, word [rdx]
mov word [rax], cx
lea rdx, [rdx + 2]
lea rax, [rax + 2]
test cx, cx
jne 0x140001781
mov rcx, qword [rsp + 0x80]
test rcx, rcx
jne 0x1400017a5
mov ecx, edi
jmp 0x1400017f0
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.DeviceType
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x78], eax
mov ecx, edi
test eax, eax
cmove ecx, dword [rsp + 0x30]
mov dword [rsi], ecx
lea rax, [rsp + 0xc0]
sub rax, 2
nop
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140001800
movups xmm0, xmmword [str.DeviceData]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140006570]
movsd qword [rax + 0x10], xmm1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], r14d
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400018c3
lea rax, [rsp + 0xc0]
mov rcx, rdi
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140001880
inc rcx
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14000455c
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xc0]
nop
movzx ecx, word [rdx]
mov word [rax], cx
lea rdx, [rdx + 2]
lea rax, [rax + 2]
test cx, cx
jne 0x1400018b0
lea rcx, [rsp + 0x40]
call fcn.1400041e0
test rax, rax
jne 0x140001965
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400018ea
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400044e4
mov rcx, qword [rsp + 0x60]
call fcn.1400044e4
mov rcx, qword [rsp + 0x68]
call fcn.1400044e4
mov rcx, qword [rsp + 0x70]
call fcn.1400044e4
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14000192a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x88]
call fcn.1400044e4
mov rcx, qword [rsp + 0x98]
call fcn.1400044e4
mov rcx, qword [rsp + 0xa0]
call fcn.1400044e4
mov rcx, qword [rsp + 0xa8]
call fcn.1400044e4
xor al, al
jmp 0x140001a11
lea rcx, [rsp + 0x40]
call fcn.1400041e0
nop
movzx ecx, word [rax]
mov word [rbx], cx
add rax, 2
lea rbx, [rbx + 2]
test cx, cx
jne 0x140001970
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001997
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400044e4
mov rcx, qword [rsp + 0x60]
call fcn.1400044e4
mov rcx, qword [rsp + 0x68]
call fcn.1400044e4
mov rcx, qword [rsp + 0x70]
call fcn.1400044e4
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400019d7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x88]
call fcn.1400044e4
mov rcx, qword [rsp + 0x98]
call fcn.1400044e4
mov rcx, qword [rsp + 0xa0]
call fcn.1400044e4
mov rcx, qword [rsp + 0xa8]
call fcn.1400044e4
mov al, 1
jmp 0x140001a11
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400044c0
mov rbx, qword [rsp + 0x318]
add rsp, 0x2e0
pop r14
pop rdi
pop rsi
ret