Function at 0x10009b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100336cb
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x100426ec]
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 0x10009bf2
xor al, al
jmp 0x10009eae
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 0x10009e70
lea ecx, [ebp - 0x240]
lea edx, [ebp - 0x258]
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10009e47
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10009c41
push 0xff
lea eax, [ebp - 0x22f]
push 0
push eax
mov byte [ebp - 0x230], 0
call fcn.1001dc30
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 0x10009e47
lea eax, [ebp - 0x230]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009cc0
sub eax, edx
je 0x10009e47
push 0xff
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], cl
call fcn.1001dc30
movq xmm0, qword [str.SYSTEMCurrentControlSetControlClass_]
movq qword [ebp - 0x2a8], xmm0
movq xmm0, qword [0x1003a030]
movq qword [ebp - 0x2a0], xmm0
movq xmm0, qword [0x1003a038]
movq qword [ebp - 0x298], xmm0
movq xmm0, qword [0x1003a040]
movq qword [ebp - 0x290], xmm0
movq xmm0, qword [0x1003a048]
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 0x10009d44
sub ecx, edx
push ecx
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.1001b5f0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x130]
push 0x100
push eax
call fcn.100194c3
add esp, 0x18
lea eax, [ebp - 0x268]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x130]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009e47
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 0x10009e3b
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 0x10009e00
sub edx, ecx
cmp edx, esi
jbe 0x10009e23
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 0x10009e10
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x264], edi
call fcn.10002b90
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 0x10009c30
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 0x10009e9f
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 0x10009e90
test edi, edi
je 0x10009eac
push edi
call fcn.10018f48
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.10018784
mov esp, ebp
pop ebp
ret