Function at 0x414cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44920b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2898
call fcn.0043f820
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2890], edi
mov dword [ebp - 0x28a4], 0xffffffff
push str.SystemCurrentControlSetControlClass_
lea eax, [ebp - 0x2818]
mov dword [ebp - 4], 0
push 0x400
push eax
call fcn.004319e1
push esi
lea eax, [ebp - 0x2818]
push 0x400
push eax
call fcn.00431c47
add esp, 0x18
lea eax, [ebp - 0x2888]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x2818]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415066
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov word [ebp - 0x2018], ax
lea eax, [ebp - 0x2884]
push eax
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2884], 0x2000
push eax
push 0
push 0
push str.InfPath
push dword [ebp - 0x2888]
call ebx
cmp word [ebp - 0x2018], 0
jne 0x414dd8
xor ecx, ecx
jmp 0x414df0
lea ecx, [ebp - 0x2018]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414de1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2018]
lea esi, [edi + 0x18]
push eax
mov ecx, esi
call fcn.00406140
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x414e0e
mov esi, dword [esi]
push 0
push 2
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [ebp - 0x28a4], eax
cmp eax, 0xffffffff
jne 0x414e55
push 0x25
push str.INF.cpp
push 0x453a78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2880]
call fcn.00402ee0
push 0x45f830
lea eax, [ebp - 0x2880]
push eax
call fcn.004337ab
push str.Name
push str.PackageInfo
lea ecx, [ebp - 0x28a4]
call fcn.0042ecf0
push 1
lea eax, [ebp - 0x2830]
push eax
lea ecx, [ebp - 0x28a4]
call fcn.0042ee80
lea esi, [edi + 0x78]
mov dword [ebp - 0x288c], eax
cmp esi, eax
je 0x414ebc
cmp dword [esi + 0x14], 8
jb 0x414ea1
push dword [esi]
call fcn.004213f0
mov eax, dword [ebp - 0x288c]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
mov ecx, esi
push eax
call fcn.00407f70
cmp dword [ebp - 0x281c], 8
jb 0x414ed3
push dword [ebp - 0x2830]
call fcn.004213f0
add esp, 4
mov eax, dword [ebp - 0x28a4]
cmp eax, 0xffffffff
je 0x414ee5
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov dword [ebp - 0x28a4], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x414f11
xor eax, eax
mov dword [ebp - 0x2884], 0x2000
mov word [ebp - 0x2018], ax
lea eax, [ebp - 0x2884]
push eax
lea eax, [ebp - 0x2018]
push eax
push 0
push 0
push str.DriverVersion
push dword [ebp - 0x2888]
call ebx
lea eax, [ebp - 0x2018]
push eax
lea ecx, [edi + 0x30]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x2884], 0x2000
mov word [ebp - 0x2018], ax
lea eax, [ebp - 0x2884]
push eax
lea eax, [ebp - 0x2018]
push eax
push 0
push 0
push str.InfSection
push dword [ebp - 0x2888]
call ebx
lea eax, [ebp - 0x2018]
push eax
lea ecx, [edi + 0x48]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x2884], 0x2000
mov word [ebp - 0x2018], ax
lea eax, [ebp - 0x2884]
push eax
lea eax, [ebp - 0x2018]
push eax
push 0
push 0
push str.ProviderName
push dword [ebp - 0x2888]
call ebx
lea eax, [ebp - 0x2018]
lea esi, [edi + 0x60]
push eax
mov ecx, esi
call fcn.00404490
cmp dword [esi + 0x14], 8
jb 0x414fe6
mov eax, dword [esi]
mov dword [ebp - 0x288c], eax
jmp 0x414fec
mov dword [ebp - 0x288c], esi
cmp dword [esi + 0x14], 8
jb 0x414ff6
mov edi, dword [esi]
jmp 0x414ff8
mov edi, esi
lea eax, [ebp - 0x2890]
mov ecx, esi
push eax
call fcn.00413a60
mov eax, dword [eax]
cmp edi, eax
je 0x415028
push 0x414ca0
push dword [ebp - 0x288c]
mov edx, edi
lea ecx, [ebp - 0x288c]
push eax
call fcn.00417f30
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x2884], 0x2000
mov word [ebp - 0x2018], ax
lea eax, [ebp - 0x2884]
push eax
lea eax, [ebp - 0x2018]
push eax
push 0
push 0
push str.DriverDesc
push dword [ebp - 0x2888]
call ebx
push dword [ebp - 0x2888]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28a4]
cmp eax, 0xffffffff
je 0x415078
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret