Function at 0x452ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
cmp dword [ebp + 8], 0
jne 0x452ef7
xor eax, eax
jmp 0x453162
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov eax, dword [0x48a888]
mov dword [ebp - 0x34], eax
mov ecx, dword [0x48a88c]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x48a890]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x48a894]
mov dword [ebp - 0x28], eax
push 2
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x452f4e
xor eax, eax
jmp 0x453162
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00460240
add esp, 0xc
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 8], 0
jmp 0x452f77
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x453155
push 0
push 0
push 0xc8
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExA]
test eax, eax
je 0x452fb1
jmp 0x452f6e
push 0xc
push 0x48a18c
lea eax, [ebp - 0x100]
push eax
call fcn.0045f6e1
add esp, 0xc
test eax, eax
je 0x452fcd
jmp 0x452f6e
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], 4
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x10c]
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 + 8]
mov edx, dword [ebp - 0x108]
cmp edx, dword [ecx]
je 0x453029
jmp 0x452f6e
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], 4
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x10c]
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 - 0x108]
shr eax, 0x10
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 4]
je 0x453089
jmp 0x452f6e
mov edx, dword [ebp - 0x108]
and edx, 0xffff
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 8]
je 0x4530a2
jmp 0x452f6e
push 0xf003f
push 1
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
je 0x45314e
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x118], 0x100
mov byte [ebp - 0x218], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
push 0x48a19c
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x453141
cmp dword [ebp + 0xc], 0
je 0x453141
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00460670
add esp, 8
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x38]
pop edi
mov esp, ebp
pop ebp
ret