Function at 0x448a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x448a4c
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 2
push ebx
push ebx
push 0x4aa84c
mov dword [ebp - 4], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
je 0x448a89
lea eax, [ebp - 0x24c]
push eax
push esi
mov dword [ebp - 0x24c], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
jne 0x448a92
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push esi
mov dword [ebp - 0x2c], 0x1c
mov dword [ebp - 8], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x448c09
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0xc8
lea edx, [ebp - 0x314]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExA]
test eax, eax
jne 0x448b40
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x15
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov dword [ebp - 0x10], 4
call ebx
mov edx, dword [ebp + 8]
cmp edx, dword [edi]
jne 0x448b40
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
mov dword [ebp - 0x10], 4
call ebx
mov eax, dword [ebp + 8]
mov edx, dword [edi + 4]
mov ecx, eax
shr ecx, 0x10
cmp ecx, edx
jne 0x448b40
mov ecx, dword [edi + 8]
and eax, 0xffff
cmp eax, ecx
je 0x448b6c
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x2c]
inc eax
push edx
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x448ab6
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20019
push 1
push 0
push 1
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x448bf5
xor eax, eax
mov byte [ebp - 0x12c], 0
mov ecx, 0x3f
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x12c]
push edx
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push 0
push 0x4866cc
push ebx
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x448bec
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x448bec
lea eax, [ebp - 0x12c]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x448be2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x448c02
push str.GetDriverKeyfromBDF:_SetupDiOpenDevRegKey_function_fails_n
call fcn.0040acd0
add esp, 4
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret