Function at 0x14001e420
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x740
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [rsp + 0x778], rbx
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov qword [rsp + 0xb8], r8
mov dword [rsp + 0x68], edx
mov qword [rsp + 0xb0], rcx
xor esi, esi
mov qword [rsp + 0x98], rsi
mov dword [rsp + 0x90], esi
call fcn.14003c3f0
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x14001e495
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rdx, [0x1400ee798]
mov rbp, rdx
shr rbp, 0x10
jne 0x14001e4da
movzx edi, dx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x14001e4fc
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400060c0
mov rbx, qword [rsp + 0x48]
jmp 0x14001e4fc
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.140006310
mov rbx, qword [rsp + 0x48]
call fcn.14003c3f0
mov rdx, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x14001e51b
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x50], rsi
test rbp, rbp
jne 0x14001e563
lea rdx, [0x1400ee798]
movzx edi, dx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x14001e591
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400060c0
mov rsi, qword [rsp + 0x50]
or rbp, 0xffffffffffffffff
jmp 0x14001e595
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdx, [0x1400ee798]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.140006310
mov rsi, qword [rsp + 0x50]
jmp 0x14001e595
or rbp, 0xffffffffffffffff
mov dword [rsp + 0x40], 0
call fcn.14003c3f0
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14001e5bc
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0xc0], rdi
mov r9d, 4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x14001ee27
mov dword [rsp + 0xe0], SafeArrayDestroyData
mov dword [rsp + 0x60], 0
lea r8, [rsp + 0xe0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001ee1b
mov qword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x100]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14001e6c9
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001e765
cmp dword [rdx + 0x10], eax
jge 0x14001e694
cmp dword [rsi - 0xc], eax
jl 0x14001edbe
xor edi, edi
mov dword [rsi - 0x10], edi
mov word [rsi], ax
jmp 0x14001e767
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001e6ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x50], rsi
mov rbx, qword [rsp + 0x48]
xor edi, edi
jmp 0x14001e767
mov ebp, dword [rsi - 0x10]
lea rdx, [rsp + 0x100]
sub rdx, rsi
sar rdx, 1
mov qword [rsp + 0x70], rdx
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001e706
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140004410
mov rsi, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
cmp rdx, rbp
ja 0x14001e726
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rsi + rdx*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rsi
call fcn.14009f850
jmp 0x14001e743
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x100]
mov rdx, rbp
mov rcx, rsi
call fcn.14009f640
test edi, edi
js 0x14001ee10
cmp edi, dword [rsi - 0xc]
jg 0x14001ee10
mov dword [rsi - 0x10], edi
mov word [rsi + rbp], 0
or rbp, 0xffffffffffffffff
xor edi, edi
jmp 0x14001e767
xor edi, edi
cmp dword [rsi - 0x10], 0
jl 0x14001e790
lea rdx, str.SWDMMDEVAPI
mov rcx, rsi
call fcn.14009f5d0
test rax, rax
je 0x14001e790
sub rax, rsi
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001ed91
mov dword [rsp + 0x64], edi
xor r8d, r8d
mov edx, dword [rsp + 0xf4]
lea rcx, [rsp + 0x64]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
jne 0x14001ed91
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x520]
call fcn.1400a09f0
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rsp + 0x520]
mov ecx, dword [rsp + 0x64]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x520]
call fcn.14009f5d0
test rax, rax
je 0x14001ed91
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0xe0]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov ecx, dword [rsp + 0x40]
call fcn.1400a3350
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14001e878
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
xor eax, eax
mov rcx, rbp
lea r8, [0x1400ee798]
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14001e8f4
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001e986
cmp dword [rdx + 0x10], eax
jge 0x14001e8c1
cmp dword [rbx - 0xc], eax
jl 0x14001edc9
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14001e986
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001e8d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov rsi, qword [rsp + 0x50]
jmp 0x14001e986
mov ebp, dword [rbx - 0x10]
mov rdx, r8
sub rdx, rbx
sar rdx, 1
mov qword [rsp + 0x70], rdx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001e933
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140004410
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x70]
lea r8, [0x1400ee798]
cmp rdx, rbp
ja 0x14001e953
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + rdx*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.14009f850
jmp 0x14001e968
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.14009f640
test edi, edi
js 0x14001edfb
cmp edi, dword [rbx - 0xc]
jg 0x14001edfb
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
or rbp, 0xffffffffffffffff
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
mov r8d, SafeArrayDestroy
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call fcn.140001ff0
test eax, eax
je 0x14001ea3e
mov rdx, qword [rsp + 0x98]
test rdx, rdx
jne 0x14001e9cc
xor ecx, ecx
jmp 0x14001e9de
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x48]
call fcn.140006310
mov rbx, qword [rsp + 0x48]
movsxd rdi, dword [rbx - 0x10]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001ea16
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140004410
mov rbx, qword [rsp + 0x48]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14009fd30
test edi, edi
js 0x14001edd4
cmp edi, dword [rbx - 0xc]
jg 0x14001edd4
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], 0
lea r8, [0x1400ee798]
mov edx, 0x104
lea rcx, [rsp + 0x310]
call fcn.1400a1bd0
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001eade
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x8c], 0x208
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x310]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x14001eb36
cmp rax, qword [rbx - 0x18]
jne 0x14001eb36
lea rbp, [rbx - 0x18]
lock add dword [rbx - 8], 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
jmp 0x14001eb72
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
je 0x14001edf5
mov ecx, dword [rbx - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rbx - 0x10]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.14009f640
lea rax, [rbp + 0x18]
mov qword [rsp + 0xa0], rax
call fcn.14003c3f0
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x14001edea
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x310]
lea rax, [rsp + 0x310]
test rax, 0xffffffffffff0000
jne 0x14001ebde
movzx edi, cx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x14001ec09
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400060c0
jmp 0x14001ec09
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x310]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x78]
call fcn.140006310
nop
call fcn.14003c3f0
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x14001eddf
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x100]
test rax, 0xffffffffffff0000
jne 0x14001ec6f
movzx edi, cx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x14001ec9d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1400060c0
jmp 0x14001ec9d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x100]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.140006310
nop
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x68]
lea rcx, [0x140136240]
call fcn.14001aa90
mov ebp, eax
test rdi, rdi
je 0x14001ece3
mov rcx, rdi
call fcn.1400a32b0
xor ecx, ecx
mov dword [rsp + 0x40], ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8d, [rcx + 2]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov ecx, dword [rsp + 0x40]
call fcn.1400a3350
mov rdi, rax
test rax, rax
je 0x14001ed75
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14001ed6d
mov r8, rdi
mov edx, ebp
lea rcx, [0x140136240]
call fcn.14001af60
mov rcx, rdi
call fcn.1400a32b0
mov edx, dword [rsp + 0x68]
add edx, 1
lea r8, [rsp + 0x100]
mov rcx, qword [rsp + 0xb0]
call fcn.14001e420
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
lea r8, [rsp + 0xe0]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001ee06
or rbp, 0xffffffffffffffff
jmp 0x14001e621
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
nop
mov ecx, 0x80004005
call fcn.140001120
nop
mov ecx, 0x80004005
call fcn.140001120
nop
call fcn.140002f80
int3
mov ecx, 0x80070057
call fcn.140001120
int3
mov rdi, qword [rsp + 0xc0]
jmp 0x14001ee1b
mov ecx, 0x80070057
call fcn.140001120
int3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop
lea rdx, [rdi - 0x18]
or rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14001ee46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001ee67
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
add edi, 0xffffffff
test edi, edi
jg 0x14001ee85
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.1400a1970
mov rbx, qword [rsp + 0x778]
add rsp, 0x740
pop rdi
pop rsi
pop rbp
ret