Function at 0x1001da5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x10061a0]
or dword [ebp - 0x58], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x3a8]
push edi
xor edi, edi
xor ebx, ebx
cmp esi, edi
mov dword [ebp + 0x390], eax
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], ebx
jne 0x1001d7e
push 3
pop eax
jmp 0x10020a8
lea eax, [esi + esi*2]
shl eax, 2
push eax
call fcn.0100539c
cmp eax, edi
pop ecx
mov dword [ebp - 0x6c], eax
je 0x10020a5
cmp esi, edi
jle 0x1001e12
mov eax, dword [ebp + 0x3ac]
mov eax, dword [eax]
cmp word [eax], 0x3d
jne 0x1001df0
add eax, 2
cmp word [eax], di
je 0x1001df0
push edi
push dword [ebp + 0x3a0]
lea ecx, [ebp - 0x64]
push ecx
xor ebx, ebx
inc ebx
push ebx
lea ecx, [ebp + 0x364]
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameExW]
test eax, eax
jne 0x1001de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100208d
mov eax, dword [ebp - 0x64]
cmp eax, edi
je 0x100208a
mov dword [ebp - 0x68], ebx
jmp 0x1001df3
mov eax, dword [ebp - 0x64]
cmp esi, ebx
jle 0x1001e15
mov ecx, dword [ebp + 0x3ac]
mov ecx, dword [ecx + ebx*4]
cmp word [ecx], 0x2a
jne 0x1001e1c
cmp word [ecx + 2], di
jne 0x1001e1c
inc ebx
mov dword [ebp - 0x68], ebx
jmp 0x1001e15
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], 1
cmp ebx, esi
mov dword [ebp - 0x5c], ebx
jge 0x1001e7a
mov ecx, dword [ebp - 0x6c]
lea eax, [ebx + ebx*2]
lea ebx, [ecx + eax*4 + 8]
mov eax, dword [ebp + 0x3ac]
mov ecx, dword [ebp - 0x5c]
push dword [eax + ecx*4]
lea eax, [ebp - 0x80]
push eax
call fcn.01001892
lea edi, [ebx - 8]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx - 4], 0
jne 0x1001e55
cmp dword [ebx], 0
jne 0x1001e5c
mov dword [ebp - 0x74], 1
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
add ebx, 0xc
cmp eax, dword [ebp + 0x3a8]
jl 0x1001e2d
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
xor edi, edi
cmp dword [ebp - 0x74], edi
jne 0x1001e9c
cmp dword [ebp - 0x70], edi
jne 0x1001e9c
push edi
push dword [ebp + 0x3a0]
neg eax
sbb eax, eax
lea ecx, [ebp + 0x364]
push edi
and eax, ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoListExW]
jmp 0x1001ecc
mov ecx, eax
neg ecx
sbb ecx, ecx
push edi
push dword [ebp + 0x3a0]
and ecx, 0xfffffffc
add ecx, 4
or ecx, dword [ebp + 0x3a4]
push edi
push ecx
neg eax
push edi
sbb eax, eax
lea ecx, [ebp + 0x364]
push edi
and eax, ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
cmp eax, 0xffffffff
mov dword [ebp - 0x58], eax
je 0x100208d
cmp ebx, dword [ebp + 0x3a8]
jge 0x1001f0e
mov ecx, dword [ebp - 0x6c]
mov edi, dword [ebp + 0x3a8]
lea eax, [ebx + ebx*2]
lea esi, [ecx + eax*4]
sub edi, ebx
xor eax, eax
cmp dword [esi + 8], eax
je 0x1001f06
push eax
push eax
push eax
push dword [esi]
push dword [ebp - 0x58]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
add esi, 0xc
dec edi
jne 0x1001ef1
xor edi, edi
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x54], 0x226
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
je 0x100208d
cmp dword [ebp - 0x70], edi
je 0x1001f32
mov dword [ebp - 0x74], edi
lea eax, [ebp + 0x374]
push eax
mov dword [ebp + 0x374], 0x1c
mov dword [ebp + 0x3a0], edi
push edi
jmp 0x1002079
cmp dword [ebp - 0x74], edi
je 0x1002034
cmp ebx, dword [ebp + 0x3a8]
mov dword [ebp - 0x5c], ebx
mov dword [ebp + 0x3ac], edi
jge 0x1002066
mov ecx, dword [ebp - 0x6c]
lea eax, [ebx + ebx*2]
lea esi, [ecx + eax*4]
cmp dword [ebp + 0x3ac], edi
jne 0x1002046
push dword [ebp - 0x40]
and dword [ebp - 0x60], 0
push 0
push 0xc8
lea eax, [ebp + 0x1d4]
push eax
push dword [ebp + 0x388]
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExW]
test eax, eax
je 0x1001faf
and word [ebp + 0x1d4], 0
cmp dword [esi + 8], 0
je 0x1001fc4
push esi
lea eax, [ebp + 0x1d4]
push eax
call fcn.01001b41
jmp 0x1001fff
push 1
lea eax, [ebp + 0x374]
push eax
push dword [ebp - 0x58]
call fcn.010019f9
mov edi, eax
push 2
lea eax, [ebp + 0x374]
push eax
push dword [ebp - 0x58]
call fcn.010019f9
push esi
push edi
mov dword [ebp - 0x60], eax
call fcn.01001ca5
test eax, eax
jne 0x1002003
push esi
push dword [ebp - 0x60]
call fcn.01001ca5
test eax, eax
je 0x100200d
mov dword [ebp + 0x3ac], 1
push edi
call fcn.010019d5
push dword [ebp - 0x60]
call fcn.010019d5
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
add esi, 0xc
xor edi, edi
cmp eax, dword [ebp + 0x3a8]
jl 0x1001f76
jmp 0x100203e
mov dword [ebp + 0x3ac], 1
cmp dword [ebp + 0x3ac], edi
je 0x1002066
push dword [ebp + 0x3b4]
lea eax, [ebp + 0x374]
push dword [ebp + 0x3a0]
push eax
push dword [ebp - 0x58]
call dword [ebp + 0x3b0]
cmp eax, edi
jne 0x10020c0
inc dword [ebp + 0x3a0]
lea eax, [ebp + 0x374]
push eax
push dword [ebp + 0x3a0]
push dword [ebp - 0x58]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1001f4f
mov dword [ebp - 0x60], edi
push dword [ebp - 0x6c]
call fcn.01005396
cmp dword [ebp - 0x58], 0xffffffff
pop ecx
je 0x10020a5
push dword [ebp - 0x58]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
pop ebx
call fcn.01005203
add ebp, 0x394
leave
ret 0x1c
mov dword [ebp - 0x60], eax
jmp 0x100208d