Function at 0x10024a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.010043b0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov ecx, 0x8b
lea edi, [ebp - 0x23c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
push edi
xor esi, esi
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x100277a
or dword [ebp - 0x234], 0x4000800
lea eax, [ebp - 0x23c]
push eax
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x100253c
push 1
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x100277a
push dword [ebp + 0x10]
push esi
push 1
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
neg eax
sbb eax, eax
neg eax
jmp 0x100277c
and dword [ebp - 0x234], 0xfbfff7ff
push 0x20019
push 2
push esi
push 1
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002565
push eax
jmp 0x1002774
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x10012f4
push ebx
mov dword [ebp - 4], 0x208
call esi
test eax, eax
jne 0x1002773
cmp dword [ebp - 8], 1
jne 0x1002773
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10012d8
mov edi, 0x200
push ebx
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x1002773
cmp dword [ebp - 8], 1
jne 0x1002773
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10012c0
push ebx
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x1002773
cmp dword [ebp - 8], 1
jne 0x1002773
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10012a8
push ebx
mov dword [ebp - 4], edi
call esi
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [ebp - 0x10], esi
jne 0x100277a
cmp dword [ebp - 8], 1
jne 0x100277a
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x43c]
push eax
push esi
push 0xb
push ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x100277a
or byte [ebp - 0x236], 1
or byte [ebp - 0x233], 8
lea eax, [ebp - 0x23c]
push eax
push ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x100277a
push 1
push ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x100277a
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push esi
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
push 1
push ebx
push edi
call esi
test eax, eax
je 0x1002759
mov edi, 0x622
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp + 0x10]
add eax, 0x20c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1002740
lea eax, [ebp - 0x83c]
push eax
mov eax, dword [ebp + 0x10]
add eax, 0x40c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1002740
push eax
push edi
lea eax, [ebp - 0x1060]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x1060], edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x1002710
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1002740
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1002740
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100276a
push dword [ebp + 0x10]
inc dword [ebp + 0xc]
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10026b1
push 1
push ebx
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov eax, dword [ebp - 0xc]
jmp 0x100277c
mov dword [ebp - 0xc], 1
jmp 0x1002765
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc