Function at 0x140001680
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.14001ad30
sub rsp, rax
mov rax, qword [0x14005d018]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x244
lea rcx, [rsp + 0x54]
xor r12d, r12d
call fcn.14001ca60
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x248
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
jne 0x140001718
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
test eax, eax
jle 0x140001704
movzx r8d, ax
or r8d, 0x80070000
test r8d, r8d
jns 0x140001bf7
mov r9d, 0x10c
jmp 0x140001a59
or dword [rsp + 0x58], 0x4000800
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
mov r8d, 1
mov rdx, r14
mov rcx, rsi
test eax, eax
je 0x1400017cd
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
jne 0x14000177b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
test eax, eax
jle 0x140001767
movzx r8d, ax
or r8d, 0x80070000
test r8d, r8d
jns 0x140001bf7
mov r9d, 0x11e
jmp 0x140001a59
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x1400017c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
test eax, eax
jle 0x1400017af
movzx r8d, ax
or r8d, 0x80070000
test r8d, r8d
jns 0x140001bf7
mov r9d, 0x122
jmp 0x140001a59
mov eax, 1
jmp 0x140001bf9
and dword [rsp + 0x58], 0xfbfff7ff
xor r9d, r9d
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001846
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
test eax, eax
jle 0x14000180f
movzx r8d, ax
or r8d, 0x80070000
test r8d, r8d
jns 0x14000183a
lfence
lea rax, str.e:_build_agentworkspacelaternrock_crashlog_win_mainSrc_srcincludedrvinstall.cpp
mov r9d, 0x13a
lea rdx, str.HRESULT:_0x_08x___LINE__04i___s_
mov qword [rsp + 0x20], rax
mov ecx, 2
call fcn.140003880
mov rcx, 0xffffffffffffffff
jmp 0x140001bf1
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp - 0x74]
xor r8d, r8d
lea rdx, str.InfPath
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001bee
cmp dword [rsp + 0x44], 1
jne 0x140001bee
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x200
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x9d0]
xor r8d, r8d
lea rdx, str.ProviderName
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001bee
cmp dword [rsp + 0x44], 1
jne 0x140001bee
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x200
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0xbd0]
xor r8d, r8d
lea rdx, str.InfSection
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001bee
cmp dword [rsp + 0x44], 1
jne 0x140001bee
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x200
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0xdd0]
xor r8d, r8d
lea rdx, str.DriverDesc
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001bf7
cmp dword [rsp + 0x44], 1
jne 0x140001bf7
mov qword [rsp + 0x30], r12
lea rax, [rbp + 0x7d0]
mov dword [rsp + 0x28], 0x200
lea r8d, [rbx + 0xb]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x1400019ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
test eax, eax
jle 0x1400019ba
movzx r8d, ax
or r8d, 0x80070000
test r8d, r8d
jns 0x140001bf7
mov r9d, 0x19f
jmp 0x140001a59
or dword [rsp + 0x54], 0x10000
lea r8, [rsp + 0x50]
or dword [rsp + 0x58], 0x800
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
jne 0x140001a1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
test eax, eax
jle 0x140001a0b
movzx r8d, ax
or r8d, 0x80070000
test r8d, r8d
jns 0x140001bf7
mov r9d, 0x1ae
jmp 0x140001a59
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
jne 0x140001a7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
test eax, eax
jle 0x140001a4a
movzx r8d, ax
or r8d, 0x80070000
test r8d, r8d
jns 0x140001bf7
mov r9d, 0x1b2
lea rax, str.e:_build_agentworkspacelaternrock_crashlog_win_mainSrc_srcincludedrvinstall.cpp
mov qword [rsp + 0x20], rax
lfence
lea rdx, str.HRESULT:_0x_08x___LINE__04i___s_
mov ecx, 2
call fcn.140003880
jmp 0x140001bf7
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
mov rcx, rsi
mov ebx, r12d
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x140001bcc
lea rdi, [r15 + 0x210]
nop dword [rax + rax]
lea r8, [rbp + 0x7d0]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001ad4
add rax, 2
test ecx, ecx
jne 0x140001ac0
test edx, edx
jne 0x140001ba8
lea rax, [r15 + 0x410]
lea r8, [rbp + 0x9d0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001b04
add rax, 2
test ecx, ecx
jne 0x140001af0
test edx, edx
jne 0x140001ba8
mov qword [rsp + 0x28], r12
lea r9, [rbp + 0x1a0]
mov r8, r15
mov dword [rsp + 0x20], 0x630
mov rdx, r14
mov dword [rbp + 0x1a0], 0x630
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x140001b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001ba8
lea rax, [rbp + 0x1c0]
lea r8, [rbp + 0xbd0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001b74
add rax, 2
test ecx, ecx
jne 0x140001b60
test edx, edx
jne 0x140001ba8
lea rax, [rbp + 0x5c8]
lea r8, [rbp + 0xdd0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001ba4
add rax, 2
test ecx, ecx
jne 0x140001b90
test edx, edx
je 0x140001be3
inc ebx
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x140001ab0
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov eax, r12d
jmp 0x140001bf9
mov r12d, 1
mov eax, r12d
jmp 0x140001bf9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.14001a1a0
add rsp, 0x10e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret