Function at 0x402a90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x4ac
mov al, byte [0x40bee4]
push ebx
push esi
push edi
mov byte [esp + 0xb8], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xb9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
xor esi, esi
push ecx
push 0xf003f
stosw word es:[edi], ax
push esi
xor ebx, ebx
push str.SoftwareIntelProunstlSupportedDevices
push 0x80000002
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], esi
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402daf
lea edx, [esp + 0x30]
push ebp
push edx
mov edx, dword [esp + 0x14]
push esi
push esi
lea eax, [esp + 0x2c]
push esi
lea ecx, [esp + 0x4c]
push eax
push ecx
xor edi, edi
mov dword [esp + 0x3c], esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
mov dword [esp + 0x40], 0x80
mov dword [esp + 0x50], edi
mov dword [esp + 0x48], 1
call esi
test eax, eax
jne 0x402d95
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebp, 0x200
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0xf003f
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402bd4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2bc]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0xcc]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov esi, 1
call ebx
test eax, eax
jne 0x402bc3
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x2bc]
push edx
push ecx
push 0
lea edx, [esp + 0x20]
push 0
lea ecx, [esp + 0xcc]
mov eax, esi
push edx
mov edx, dword [esp + 0x2c]
push ecx
push eax
inc edi
push edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
inc esi
call ebx
test eax, eax
je 0x402b8d
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov dword [esp + 0x40], 0x80
call esi
test eax, eax
je 0x402b35
test edi, edi
mov dword [esp + 0x30], edi
je 0x402d95
lea eax, [edi*8]
push eax
call fcn.004049b0
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x48], 1
call esi
test eax, eax
jne 0x402d88
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0xf003f
lea eax, [esp + 0x44]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402d50
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2bc]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0xcc]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov edi, 1
call ebx
test eax, eax
jne 0x402d3f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea esi, [ecx + edx*8]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jae 0x402d3f
lea ecx, [esp + 0x3c]
push 4
push ecx
call fcn.00402a30
lea edx, [esp + 0xc4]
and eax, 0xffff
push 4
push edx
mov dword [esi], eax
call fcn.00402a30
and eax, 0xffff
add esp, 0x10
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2bc]
push ecx
inc eax
push edx
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
push 0
lea edx, [esp + 0xcc]
mov eax, edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
add esi, 8
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
inc edi
call ebx
test eax, eax
je 0x402cc5
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
mov eax, ecx
inc ecx
push edx
mov dword [esp + 0x2c], ecx
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x4c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x80
push eax
call esi
test eax, eax
je 0x402c5a
mov ecx, dword [esp + 0x4c0]
mov edx, dword [esp + 0x24]
mov dword [ecx], edx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4ac
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x4ac
ret