Function at 0x140002970
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x840]
sub rsp, 0x940
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rbp + 0x830], rax
movzx ebx, cl
mov byte [rsp + 0x40], cl
xor esi, esi
mov r15d, esi
mov dword [rsp + 0x48], esi
xor dil, dil
xor r13b, r13b
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14004f950]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140002fff
mov dword [rbp - 0x40], 0x20
mov r12d, esi
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140002ff6
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1c
lea rax, [rbp + 0x600]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 1
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140002fd6
cmp dword [rsp + 0x48], 7
jne 0x140002fd6
cmp dword [rsp + 0x44], 0x1c
jne 0x140002fd6
mov r8d, 0x1c
lea rdx, str.tap_pia_0901
lea rcx, [rbp + 0x600]
call fcn.14001ed10
test eax, eax
jne 0x140002fd6
xor edx, edx
mov r8d, 0x61c
lea rcx, [rbp - 0x1c]
call fcn.14001eb70
mov dword [rbp - 0x20], 0x620
mov r8d, 2
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140002d6e
mov edi, esi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x140002c69
nop
mov rdx, qword [rbp + 0x5f8]
shr rdx, 0x20
mov r9d, edx
shr r9d, 0x10
mov ecx, dword [rbp + 0x5f8]
shr ecx, 0x10
mov rbx, qword [0x14005eb48]
movzx eax, word [rbp + 0x5f8]
movzx edx, dx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r8, str._hu._hu._hu._hu
mov edx, 0x18
lea rcx, [rbp - 0x80]
call fcn.140001370
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002b50
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.1400066a0
or r15d, 1
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8d, 2
lea rdx, str.Driver__d___version__s
lea rcx, [rsp + 0x60]
call fcn.14000edc0
or r15d, 2
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14000f340
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002bf2
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003060
call fcn.14001c70c
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140002c40
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003066
call fcn.14001c70c
inc edi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8d, 2
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x140002ae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [0x14005eb48]
mov r9d, edi
lea rcx, [rsp + 0x60]
cmp eax, 0x103
jne 0x140002cf9
mov r8d, 1
lea rdx, str.Enumerated__d_items
call fcn.14000edc0
or r15d, 4
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14000f340
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002def
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002dea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003054
jmp 0x140002dea
mov dword [rsp + 0x20], eax
mov r8d, 2
lea rdx, str.Failed_after__d_items____d
call fcn.14000edc0
or r15d, 0x20
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14000f340
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002def
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002dea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000305a
jmp 0x140002dea
mov rbx, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 1
lea rdx, str.Failed_to_build_driver_list____d
lea rcx, [rsp + 0x60]
call fcn.14000edc0
or r15d, 0x40
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14000f340
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002def
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002dea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000306c
call fcn.14001c70c
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002f33
mov dword [rsp + 0x44], 0x208
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x620]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140002f2a
cmp dword [rsp + 0x48], 1
jne 0x140002f2a
mov r8d, dword [rsp + 0x44]
shr r8, 1
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], si
lea rdx, [rbp + 0x620]
lea rcx, [rbp - 0x80]
call fcn.1400063f0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140002edb
nop
lea rax, [rbp - 0x80]
mov rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x68]
cmp r8, 8
cmovae rax, rdx
dec rcx
cmp word [rax + rcx*2], 0
jne 0x140002edb
lea rax, [rbp - 0x80]
cmp r8, 8
cmovae rax, rdx
mov qword [rbp - 0x70], rcx
mov word [rax + rcx*2], si
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x140002ea0
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x50]
call fcn.140006fc0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140002f2a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003072
call fcn.14001c70c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dil, 1
lea r8, [rbp - 0x40]
mov rdx, r14
mov ecx, 5
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x140002fd6
mov rbx, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 1
lea rdx, str.Failed_to_remove_device___d_
lea rcx, [rsp + 0x60]
call fcn.14000edc0
bts r15d, 7
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14000f340
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002fd2
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000304e
call fcn.14001c70c
movzx r13d, dil
inc r12d
lea r8, [rbp - 0x40]
mov edx, r12d
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140002a10
movzx ebx, byte [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test bl, bl
je 0x140003008
call fcn.1400022d0
test dil, dil
jne 0x140003014
mov eax, 0x20
jmp 0x14000301e
test r13b, r13b
setne sil
lea eax, [rsi + 0x1e]
mov rcx, qword [rbp + 0x830]
xor rcx, rsp
call fcn.14001c460
lea r11, [rsp + 0x940]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
nop
call fcn.140025138
nop
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3