Function at 0x140027d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2010]
mov eax, 0x2110
call fcn.1400e0110
sub rsp, rax
mov rsi, rdx
xor r14d, r14d
call fcn.140008400
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x30]
mov qword [rbp + 0x2058], rax
mov dword [rsp + 0x60], r14d
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp], xmm0
mov rax, qword [rsi]
xor r9d, r9d
lea r8, str.DeviceID
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rax + 0x10]
nop
mov dword [rbp - 0x70], 3
lea rax, [rsp + 0x50]
mov qword [rbp - 0x68], rax
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x10], xmm0
mov rax, qword [rsi]
xor r8d, r8d
lea rdx, str.ProductID
mov rcx, rsi
call qword [rax + 0x18]
mov dword [rbp - 0x60], 4
cdqe
mov qword [rbp - 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x20], xmm0
mov rax, qword [rsi]
xor r8d, r8d
lea rdx, str.VendorID
mov rcx, rsi
call qword [rax + 0x18]
mov dword [rsp + 0x60], 4
cdqe
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x30], xmm0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x40], rax
lea rax, [rbp]
mov qword [rbp - 0x38], rax
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp + 0x2040], rax
lea r9, [rbp + 0x2040]
lea r8d, [r14 + 4]
lea rdx, [rbp - 0x50]
lea rcx, str.SYSTEMCurrentControlSetEnumUSBVid__04xPid__04x_s
call fcn.14005db80
lea rdx, [rbp + 0x2040]
lea rcx, [rbp + 0x2058]
call fcn.1400333a0
nop
mov rdx, qword [rbp + 0x2040]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
lea edi, [r14 - 1]
cmp eax, 0x7ffffc17
je 0x140027edc
mov eax, dword [rdx + 0x10]
cmp eax, edi
je 0x140027ed2
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027edc
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, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140027f0d
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140027f03
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027f0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp + 0x2058]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400280bc
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x10]
call fcn.1400e24f0
mov dword [rbp + 0x2048], 0x2000
lea rax, [rbp + 0x2048]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LocationInformation
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp + 0x2050], rax
call fcn.140008400
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, edi
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x2050]
call fcn.1400333a0
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140028015
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14002800b
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140028015
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [0x140129d58]
mov qword [rsp + 0x78], rax
lea rax, str.USB_Device
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x20], 1
mov r9d, 1
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x2050]
call fcn.140033e10
lea rcx, [rbp + 0x2050]
call fcn.140034d70
mov rax, qword [rsi]
xor r9d, r9d
lea r8, [rbp + 0x2050]
lea rdx, str.DeviceName
mov rcx, rsi
call qword [rax + 0x40]
nop
mov rdx, qword [rbp + 0x2050]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400280b5
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400280ab
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400280b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp + 0x2058]
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400280e6
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400280dc
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400280e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
add rsp, 0x2110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret