Function at 0x453cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov eax, dword [0x48ac48]
mov dword [ebp - 0x34], eax
mov ecx, dword [0x48ac4c]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x48ac50]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x48ac54]
mov dword [ebp - 0x28], eax
push 0xc
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00460cd0
add esp, 0xc
push 2
push 0
push 0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x453d41
xor eax, eax
jmp 0x453f60
push 0x1c
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.00460cd0
add esp, 0xc
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 8], 0
jmp 0x453d6a
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x453f53
push 0
push 0
push 0xc8
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExA]
test eax, eax
je 0x453da4
jmp 0x453d61
cmp dword [ebp + 0x10], 0
je 0x453dc6
push 0xc
push str.PCIVEN_1002
lea ecx, [ebp - 0x100]
push ecx
call fcn.00460171
add esp, 0xc
test eax, eax
je 0x453dc6
jmp 0x453d61
push 0xf003f
push 1
push 0
push 1
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
je 0x453f4e
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x10c], 0x100
mov byte [ebp - 0x210], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push str.VideoID
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x453f41
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0045fb60
add esp, 8
test eax, eax
je 0x453f41
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 4
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x15
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x214]
mov dword [ecx], edx
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x220], 4
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x1c
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [ebp - 0x218]
shr eax, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x218]
and edx, 0xffff
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], 1
jmp 0x453f53
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x453d61
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x38]
pop edi
mov esp, ebp
pop ebp
ret 0xc