Function at 0x41fc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457041
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ecx
mov eax, 0x28ec
call fcn.00437780
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x28e4], edx
mov esi, ecx
mov dword [ebp - 0x28e8], edi
mov dword [ebp - 0x2900], 0xffffffff
push str.SystemCurrentControlSetControlClass_
lea eax, [ebp - 0x820]
mov dword [ebp - 4], 0
push 0x400
push eax
call fcn.0043efc6
push esi
lea eax, [ebp - 0x820]
push 0x400
push eax
call fcn.0043f02a
add esp, 0x18
lea eax, [ebp - 0x28e0]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x820]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4200c0
mov word [ebp - 0x2820], ax
lea eax, [ebp - 0x28dc]
push eax
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x28dc], 0x2000
push eax
push 0
push 0
push str.InfPath
push dword [ebp - 0x28e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x2820], 0
jne 0x41fd10
xor ecx, ecx
jmp 0x41fd2f
lea ecx, [ebp - 0x2820]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fd20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2820]
lea esi, [edi + 0x18]
push eax
mov ecx, esi
call fcn.00404c00
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x41fd4d
mov esi, dword [esi]
push 0
push 2
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [ebp - 0x2900], eax
cmp eax, 0xffffffff
jne 0x41fd94
push 0x24
push str.INF.cpp
push 0x466c0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2888]
call fcn.004016d0
push 0x474bb0
lea eax, [ebp - 0x2888]
push eax
call fcn.00439290
lea ecx, [ebp - 0x28fc]
push ecx
push str.Name
push str.PackageInfo
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x41fdf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41fdf1
cmp eax, 0xe0000101
je 0x41fdf1
cmp eax, 0xe0000102
je 0x41fdf1
push 0x3c
push str.INF.cpp
push 0x466c0c
push eax
lea ecx, [ebp - 0x28d8]
call fcn.004016d0
push 0x474bb0
lea eax, [ebp - 0x28d8]
push eax
call fcn.00439290
push 1
lea eax, [ebp - 0x2838]
push eax
lea ecx, [ebp - 0x2900]
call fcn.00433520
mov ecx, eax
lea esi, [edi + 0x78]
mov dword [ebp - 0x28ec], ecx
cmp esi, ecx
je 0x41fe54
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x41fe2d
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00405180
mov ecx, dword [ebp - 0x28ec]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x41fe45
mov eax, dword [esi]
jmp 0x41fe47
mov eax, esi
xor edx, edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.00404b90
mov eax, dword [ebp - 0x2824]
cmp eax, 8
jb 0x41fe72
inc eax
lea ecx, [ebp - 0x2838]
push eax
push dword [ebp - 0x2838]
call fcn.00405180
mov eax, dword [ebp - 0x2900]
cmp eax, 0xffffffff
je 0x41fe84
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov dword [ebp - 0x2900], 0xffffffff
jmp 0x41fea8
mov dword [ebp - 4], 0
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov word [ebp - 0x2820], ax
lea eax, [ebp - 0x28dc]
push eax
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x28dc], 0x2000
push eax
push 0
push 0
push str.DriverVersion
push dword [ebp - 0x28e0]
call esi
lea eax, [ebp - 0x2820]
push eax
lea ecx, [edi + 0x30]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x28dc], 0x2000
mov word [ebp - 0x2820], ax
lea eax, [ebp - 0x28dc]
push eax
lea eax, [ebp - 0x2820]
push eax
push 0
push 0
push str.InfSection
push dword [ebp - 0x28e0]
call esi
lea eax, [ebp - 0x2820]
push eax
lea ecx, [edi + 0x48]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x28dc], 0x2000
mov word [ebp - 0x2820], ax
lea eax, [ebp - 0x28dc]
push eax
lea eax, [ebp - 0x2820]
push eax
push 0
push 0
push str.ProviderName
push dword [ebp - 0x28e0]
call esi
lea eax, [ebp - 0x2820]
add edi, 0x60
push eax
mov ecx, edi
call fcn.00403010
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x41ff86
mov esi, dword [edi]
jmp 0x41ff88
mov esi, edi
cmp eax, 8
jb 0x41ff8f
mov edi, dword [edi]
mov ecx, dword [ebp - 0x28e4]
lea eax, [ebp - 0x28ec]
push eax
lea ecx, [ecx + 0x60]
call fcn.00408740
xor ecx, ecx
mov eax, dword [eax]
mov edx, eax
sub edx, edi
inc edx
shr edx, 1
cmp edi, eax
cmova edx, ecx
test edx, edx
je 0x42007e
cmp edx, 0x10
jb 0x420054
lea eax, [edx - 1]
lea eax, [edi + eax*2]
cmp esi, eax
ja 0x41ffd9
lea eax, [edx - 1]
lea eax, [esi + eax*2]
cmp eax, edi
jae 0x420054
movaps xmm3, xmmword [0x46e4c0]
mov eax, edx
movaps xmm4, xmmword [0x46e4d0]
and eax, 0xf
movaps xmm5, xmmword [0x46e510]
mov dword [ebp - 0x28e4], edx
sub dword [ebp - 0x28e4], eax
mov eax, dword [ebp - 0x28e4]
movups xmm2, xmmword [edi]
add ecx, 0x10
movaps xmm1, xmm3
pcmpeqw xmm1, xmm2
pandn xmm1, xmm5
movaps xmm0, xmm1
pand xmm1, xmm2
pandn xmm0, xmm4
por xmm0, xmm1
movaps xmm1, xmm3
movups xmmword [esi], xmm0
movups xmm2, xmmword [edi + 0x10]
add edi, 0x20
pcmpeqw xmm1, xmm2
pandn xmm1, xmm5
movaps xmm0, xmm1
pand xmm1, xmm2
pandn xmm0, xmm4
por xmm0, xmm1
movups xmmword [esi + 0x10], xmm0
add esi, 0x20
cmp ecx, eax
jne 0x420005
cmp ecx, edx
je 0x42007e
sub edi, esi
mov dword [ebp - 0x28e8], 0x2a
movzx eax, word [edi + esi]
lea esi, [esi + 2]
cmp eax, 0x25
cmove eax, dword [ebp - 0x28e8]
inc ecx
mov word [esi - 2], ax
cmp ecx, edx
jne 0x420064
xor eax, eax
mov dword [ebp - 0x28dc], 0x2000
mov word [ebp - 0x2820], ax
lea eax, [ebp - 0x28dc]
push eax
lea eax, [ebp - 0x2820]
push eax
push 0
push 0
push str.DriverDesc
push dword [ebp - 0x28e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x28e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2900]
cmp eax, 0xffffffff
je 0x4200d2
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
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret