Function at 0x140118790
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xcd0
mov rax, qword [0x1402bf5c8]
xor rax, rsp
mov qword [rsp + 0xcc0], rax
mov rdi, rcx
xor r12b, r12b
mov byte [rsp + 0x40], r12b
xor ebx, ebx
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x48], rbx
mov r15d, 1
mov dword [rsp + 0x60], r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x4a0]
call fcn.1401d04f0
mov dword [rsp + 0xf8], 0x208
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x290]
call fcn.1401d04f0
mov dword [rsp + 0xb0], 0x208
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], 7
mov word [rsp + 0xd8], bx
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], 7
mov word [rsp + 0xb8], bx
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x118], 7
mov word [rsp + 0x100], bx
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x138], 7
mov word [rsp + 0x120], bx
mov qword [rsp + 0x1c0], rbx
movdqa xmm0, xmmword [0x14023cab0]
movdqa xmmword [rsp + 0x1d0], xmm0
mov word [rsp + 0x1c0], bx
mov qword [rsp + 0x1e0], rbx
movdqa xmmword [rsp + 0x1f0], xmm0
mov word [rsp + 0x1e0], bx
mov qword [rsp + 0x210], rbx
movdqa xmmword [rsp + 0x220], xmm0
mov word [rsp + 0x210], bx
mov qword [rsp + 0x230], rbx
movdqa xmmword [rsp + 0x240], xmm0
mov word [rsp + 0x230], bx
mov qword [rsp + 0x250], rbx
movdqa xmmword [rsp + 0x260], xmm0
mov word [rsp + 0x250], bx
mov qword [rsp + 0x270], rbx
movdqa xmmword [rsp + 0x280], xmm0
mov word [rsp + 0x270], bx
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140118958
mov rdx, qword [rdi]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], bx
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x68]
call fcn.140018360
nop
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x140]
call fcn.1401ab8d4
mov edx, eax
test eax, eax
jne 0x1401189ee
mov ecx, dword [rsp + 0x150]
bt ecx, 0xa
jae 0x1401189e3
mov eax, dword [rsp + 0x154]
cmp eax, 0xa000000c
jne 0x1401189d5
lea ecx, [rdx + 4]
jmp 0x140118a07
cmp eax, 0xa0000003
jne 0x1401189e3
mov ecx, 0xa
jmp 0x140118a07
and ecx, 0x10
or ecx, 0x20
shr ecx, 4
jmp 0x140118a07
sub eax, 2
je 0x140118a04
sub eax, 1
je 0x140118a04
sub eax, 0x32
je 0x140118a04
cmp eax, 0x46
mov ecx, ebx
jne 0x140118a07
mov ecx, r15d
mov dword [rsp + 0x90], edx
lea rax, [0x1402c05e0]
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x90], xmm0
test ecx, ecx
je 0x140118ae4
cmp ecx, 1
sete sil
lea rcx, [rsp + 0x68]
call fcn.1400272a0
test sil, sil
je 0x140118c00
lea rcx, [rsp + 0x270]
call fcn.1400272a0
lea rcx, [rsp + 0x250]
call fcn.1400272a0
lea rcx, [rsp + 0x230]
call fcn.1400272a0
lea rcx, [rsp + 0x210]
call fcn.1400272a0
lea rcx, [rsp + 0x1e0]
call fcn.1400272a0
lea rcx, [rsp + 0x1c0]
call fcn.1400272a0
nop
mov rdx, qword [rsp + 0x138]
cmp rdx, 8
jb 0x140118af9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140118af4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140119458
jmp 0x140118af4
mov sil, 1
test edx, edx
jne 0x14011945e
jmp 0x140118a3d
call fcn.1401a9a50
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x138], 7
mov word [rsp + 0x120], bx
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x118], 7
mov word [rsp + 0x100], bx
mov rdx, qword [rsp + 0xd0]
cmp rdx, 8
jb 0x140118b79
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140118b74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140119478
call fcn.1401a9a50
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], 7
mov word [rsp + 0xb8], bx
mov rdx, qword [rsp + 0xf0]
cmp rdx, 8
jb 0x140118bdd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140118bd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011947e
call fcn.1401a9a50
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], 7
mov word [rsp + 0xd8], bx
mov al, 1
jmp 0x14011942b
xorps xmm0, xmm0
movups xmmword [rsp + 0x180], xmm0
movups xmmword [rsp + 0x190], xmm0
movups xmmword [rsp + 0x1a0], xmm0
movups xmmword [rsp + 0x1b0], xmm0
mov rdx, rdi
lea rcx, [rsp + 0x180]
call fcn.1400fd600
nop
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], 7
mov word [rsp + 0x90], bx
mov r8d, 7
lea rdx, [0x140234938]
lea rcx, [rsp + 0x90]
call fcn.140018360
nop
mov rdi, qword [rsp + 0x180]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x140]
call fcn.140018e70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x160], xmm0
mov qword [rsp + 0x170], rax
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rdx, qword [rsp + 0x90]
lea r9, [rsp + 0x160]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
lea rcx, [rsp + 0x140]
call fcn.1400272a0
nop
mov r8, qword [rsp + 0xa8]
cmp r8, 8
jb 0x140118d07
inc r8
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.140023c60
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x180]
call fcn.140136670
mov r9d, 2
xor r8d, r8d
xor edx, edx
lea rcx, str.23LM4_H
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140119322
xorps xmm0, xmm0
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
mov dword [rsp + 0x140], 0x20
mov r14d, ebx
mov rdi, 0xffffffffffffffff
lea r13, str.SoftwareComponent
nop word [rax + rax]
lea r8, [rsp + 0x140]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140119322
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x208
lea rax, [rsp + 0x6b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 9]
lea rdx, [rsp + 0x140]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
cmp eax, 1
jne 0x140119358
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x8c0]
call fcn.1401d04f0
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xac0]
call fcn.1401d04f0
lea rax, [rsp + 0x6b0]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140118e10
lea rdx, [rsp + 0x6b0]
lea rcx, [rsp + 0xb8]
call fcn.140018360
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
setae r11b
mov r10, qword [rsp + 0xb8]
cmovae rdx, r10
mov r9, qword [rsp + 0xc8]
test r9, r9
je 0x140118e8f
lea rcx, [r9 - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea r8, [rdx + rax*2]
cmp word [r8], 0x5c
je 0x140118e87
cmp r8, rdx
je 0x140118e8f
sub r8, 2
cmp word [r8], 0x5c
jne 0x140118e77
sub r8, rdx
sar r8, 1
jmp 0x140118e92
mov r8, rdi
cmp r8, 0xffffffffffffffff
je 0x140118f15
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], 7
cmp r9, r8
cmovb r8, r9
lea rdx, [rsp + 0xb8]
test r11b, r11b
cmovne rdx, r10
lea rcx, [rsp + 0x68]
call fcn.140018360
lea rcx, [rsp + 0xd8]
call fcn.1400272a0
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsp + 0xd8], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rsp + 0xe8], xmm1
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], bx
lea rcx, [rsp + 0x68]
call fcn.1400272a0
lea r8, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae r8, qword [rsp + 0xd8]
lea rdx, str.SYSTEMCurrentControlSetControlClass_s
lea rcx, [rsp + 0x8c0]
call fcn.1400a4440
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x8c0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14011901c
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea rcx, [rsp + 0x188]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x270]
call fcn.1400272a0
lea rcx, [rsp + 0x250]
call fcn.1400272a0
lea rcx, [rsp + 0x230]
call fcn.1400272a0
lea rcx, [rsp + 0x210]
call fcn.1400272a0
lea rcx, [rsp + 0x1e0]
call fcn.1400272a0
lea rcx, [rsp + 0x1c0]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x120]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x100]
call fcn.1400272a0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400272a0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400272a0
xor al, al
jmp 0x14011942b
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.Class
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140119358
lea rax, [rsp + 0x4a0]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x140119063
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x100]
call fcn.140018360
lea r9, [rsp + 0x100]
cmp qword [rsp + 0x118], 8
cmovae r9, qword [rsp + 0x100]
mov r10, qword [rsp + 0x110]
mov rcx, r10
cmp r10, 0x11
mov eax, 0x11
cmova rcx, rax
mov rax, r13
test rcx, rcx
je 0x140119102
movzx edx, word [r9]
mov r8d, MsiOpenDatabaseW
cmp dx, r8w
jb 0x140119358
sub r9, r13
cmp dx, r8w
ja 0x140119358
cmp rcx, 1
je 0x140119102
dec rcx
add rax, 2
movzx edx, word [r9 + rax]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x1401190d8
inc r14d
jmp 0x140118d80
cmp r10, 0x11
jne 0x140119358
lea r8, [rsp + 0x6b0]
lea rdx, str.SYSTEMCurrentControlSetControlClass_s
lea rcx, [rsp + 0xac0]
call fcn.1400a4440
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0xac0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401191bc
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea rcx, [rsp + 0x188]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x1c0]
call fcn.1400fe350
nop
lea rcx, [rsp + 0x120]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x100]
call fcn.1400272a0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400272a0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400272a0
xor al, al
jmp 0x14011942b
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.DriverDesc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140119358
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], 7
mov word [rsp + 0x90], bx
lea rax, [rsp + 0x290]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140119230
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x90]
call fcn.140018360
nop
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], bx
mov r8d, 0x17
lea rdx, str.AMD_UWP_Version_Control
lea rcx, [rsp + 0x68]
call fcn.140018360
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x68]
call fcn.1400a8ed0
test eax, eax
jne 0x140119340
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.DriverVersion
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140119340
lea rax, [rsp + 0x290]
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401192e0
mov r8, rdi
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x120]
call fcn.140018360
mov ebx, r15d
mov dword [rsp + 0x44], ebx
lea rcx, [rsp + 0x68]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x90]
call fcn.1400272a0
nop
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea rcx, [rsp + 0x188]
call fcn.1400272a0
nop
jmp 0x140119375
lea rcx, [rsp + 0x68]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x90]
call fcn.1400272a0
inc r14d
jmp 0x140118d80
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test ebx, ebx
je 0x1401193a1
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x250]
call fcn.1400a8ed0
movzx r12d, r12b
test eax, eax
cmove r12d, r15d
lea rcx, [rsp + 0x270]
call fcn.1400272a0
lea rcx, [rsp + 0x250]
call fcn.1400272a0
lea rcx, [rsp + 0x230]
call fcn.1400272a0
lea rcx, [rsp + 0x210]
call fcn.1400272a0
lea rcx, [rsp + 0x1e0]
call fcn.1400272a0
lea rcx, [rsp + 0x1c0]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x120]
call fcn.1400272a0
nop
lea rcx, [rsp + 0x100]
call fcn.1400272a0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400272a0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400272a0
movzx eax, r12b
mov rcx, qword [rsp + 0xcc0]
xor rcx, rsp
call fcn.1401a9a30
lea r11, [rsp + 0xcd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1401e3dbc
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x90]
lea rcx, str.exists
call fcn.1400684b0
nop
call fcn.1401e3dbc
nop
call fcn.1401e3dbc
int3