Function at 0x10006ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003195b
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x1003f6ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], ecx
xor edi, edi
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x26c], edi
xor esi, esi
push 6
push esi
mov dword [ebp - 4], edi
push esi
push esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x240], 0x4d36e96d
mov dword [ebp - 0x23c], 0x11cee325
mov dword [ebp - 0x238], 0x8c1bf
mov dword [ebp - 0x234], 0x1803e12b
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x10006f32
xor al, al
jmp 0x100071ee
lea ecx, [ebp - 0x25c]
push ecx
xorps xmm0, xmm0
xor ebx, ebx
push ebx
push eax
movq qword [ebp - 0x258], xmm0
movq qword [ebp - 0x250], xmm0
movq qword [ebp - 0x248], xmm0
mov dword [ebp - 0x25c], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x100071b0
lea ecx, [ebp - 0x240]
lea edx, [ebp - 0x258]
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10007187
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10006f81
push 0xff
lea eax, [ebp - 0x22f]
push 0
push eax
mov byte [ebp - 0x230], 0
call fcn.1001a8d0
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
push 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 9
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
mov dword [ebp - 0x280], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10007187
lea eax, [ebp - 0x230]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007000
sub eax, edx
je 0x10007187
push 0xff
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], cl
call fcn.1001a8d0
movq xmm0, qword [str.SYSTEMCurrentControlSetControlClass_]
movq qword [ebp - 0x2a8], xmm0
movq xmm0, qword [0x10037dbc]
movq qword [ebp - 0x2a0], xmm0
movq xmm0, qword [0x10037dc4]
movq qword [ebp - 0x298], xmm0
movq xmm0, qword [0x10037dcc]
movq qword [ebp - 0x290], xmm0
movq xmm0, qword [0x10037dd4]
lea ecx, [ebp - 0x2a8]
add esp, 0xc
movq qword [ebp - 0x288], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007084
sub ecx, edx
push ecx
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.10018240
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x130]
push 0x100
push eax
call fcn.10016003
add esp, 0x18
lea eax, [ebp - 0x268]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x130]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007187
mov byte [ebp - 0x30], al
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
xorps xmm0, xmm0
push str.AttachedTo
push dword [ebp - 0x268]
movq qword [ebp - 0x2f], xmm0
movq qword [ebp - 0x27], xmm0
movq qword [ebp - 0x1f], xmm0
mov dword [ebp - 0x278], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000717b
lea edx, [ebp - 0x30]
xor edi, edi
lea esi, [eax + 3]
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x10007140
sub edx, ecx
cmp edx, esi
jbe 0x10007163
lea ecx, [ecx]
movsx ecx, byte [ebp + esi - 0x30]
lea edi, [edi + edi*4]
inc esi
lea edi, [edi - 0x18]
lea edi, [ecx + edi*2]
cmp esi, edx
jb 0x10007150
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x264], edi
call fcn.10002b50
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x25c]
push eax
inc ebx
push ebx
push dword [ebp - 0x260]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10006f70
mov esi, dword [ebp - 0x270]
mov edi, dword [ebp - 0x274]
push dword [ebp - 0x260]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor bl, bl
mov eax, edi
cmp edi, esi
je 0x100071df
mov ecx, dword [ebp - 0x27c]
mov edx, 1
nop
cmp dword [eax], ecx
movzx ebx, bl
cmove ebx, edx
add eax, 4
cmp eax, esi
jne 0x100071d0
test edi, edi
je 0x100071ec
push edi
call fcn.10015a88
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100152c3
mov esp, ebp
pop ebp
ret