Function at 0x1800133b4
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 - 0x408]
sub rsp, 0x508
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor r14d, r14d
mov r12, r9
mov qword [rsp + 0x78], r8
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov edi, r14d
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
call qword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
mov dword [r12], r14d
mov r15, rax
test rbx, rbx
jne 0x180013424
lea ebx, [r14 + 0x57]
jmp 0x180013708
lea rdx, [rbp - 0x80]
mov r8d, 0x27
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_pSetupStringFromGuid]
mov ebx, eax
test eax, eax
jne 0x180013708
lea rax, [rbp - 0x80]
lea r9, [0x180013750]
lea r8d, [rbx + 4]
mov edx, 0x1000000
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.18001db4c
lea rax, [rsp + 0x60]
lea rdx, [0x180020d30]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1800134c6
mov r8d, 1
cmp ebx, 2
mov eax, 0x490
lea r9, [0x180020a78]
cmove ebx, eax
lea rax, [rbp - 0x80]
mov edx, 0x1000000
mov rcx, r15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.18001db4c
jmp 0x180013708
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov esi, 1
lea rdx, [rbp - 0x80]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1800134f5
mov r8d, esi
jmp 0x180013495
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rdx, [0x180020dc0]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x180013533
cmp dword [rsp + 0x54], 7
jne 0x18001357d
test rdi, rdi
jne 0x180013584
lea ebx, [rdi + 0x7a]
cmp ebx, 0x7a
jne 0x180013560
test rdi, rdi
je 0x180013546
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x50]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x1800134f5
lea ebx, [rax + 0xe]
test ebx, ebx
je 0x180013584
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], ebx
lea r9, [0x180013780]
mov qword [rsp + 0x20], rax
jmp 0x1800136ea
mov ebx, 0xd
jmp 0x180013564
xor ecx, ecx
mov r14, rdi
cmp word [rdi], cx
je 0x1800136fa
xor ebx, ebx
lea rax, [rbp - 0x80]
lea r9, [0x1800137d8]
lea r8d, [rbx + 4]
mov edx, 0x1000000
mov rcx, r15
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x30]
mov dword [rsp + 0x30], 0x208
lea r9, [0x180020b30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea edx, [rbx + 2]
mov r8, r14
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.drvstore.dll_DriverStoreGetObjectPropertyW]
test eax, eax
je 0x1800136d2
cmp dword [rsp + 0x68], 0x12
jne 0x1800136af
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x1e0]
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x30]
mov r8d, 0xffff
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.drvstore.dll_DriverStoreFindW]
test eax, eax
je 0x180013691
mov rdx, qword [rsp + 0x78]
lea r9, [rsp + 0x58]
lea r8, [rbp + 0x1e0]
mov rcx, r13
call fcn.180012d88
xor ecx, ecx
mov ebx, eax
test eax, eax
jne 0x1800136fa
cmp dword [rsp + 0x58], ecx
je 0x18001366f
mov dword [r12], esi
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], cx
jne 0x180013673
lea r14, [r14 + rax*2]
add r14, 2
cmp word [r14], cx
jne 0x180013592
jmp 0x1800136fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x180020970]
mov dword [rsp + 0x28], eax
mov ebx, eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
jmp 0x1800136ea
lea r9, [0x180020920]
mov r8d, esi
mov edx, 0x1000000
mov rcx, r15
mov qword [rsp + 0x20], r14
call fcn.18001db4c
mov ebx, 0xd
jmp 0x1800136fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x1800208d0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov ebx, eax
mov r8d, esi
mov edx, 0x1000000
mov rcx, r15
call fcn.18001db4c
test rdi, rdi
je 0x180013708
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180013718
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180013728
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.180001ac0
add rsp, 0x508
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret