Function at 0x41e230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441926
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28f8
call fcn.004392c0
mov eax, dword [0x4533e4]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x28f4], ebx
mov dword [ebp - 0x2908], 0xffffffff
push str.SystemCurrentControlSetControlClass_
lea eax, [ebp - 0x2818]
push 0x400
push eax
mov dword [ebp - 4], 0
call fcn.0042cbdd
add esp, 0xc
push esi
lea ecx, [ebp - 0x2818]
push 0x400
push ecx
call fcn.0042d02f
add esp, 0xc
lea edx, [ebp - 0x28f0]
push edx
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 0x41e60a
lea edx, [ebp - 0x28ec]
push edx
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
push ecx
mov word [ebp - 0x2018], cx
mov ecx, dword [ebp - 0x28f0]
push str.InfPath
push ecx
mov dword [ebp - 0x28ec], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x2018]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e315
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x1c]
lea eax, [ebp - 0x2018]
call fcn.00402c20
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x41e33f
mov esi, dword [esi]
push 0
push 2
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [ebp - 0x2908], eax
cmp eax, 0xffffffff
jne 0x41e387
push 0x25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x2890]
push edx
mov ecx, str.INF.cpp
mov ebx, 0x446828
call fcn.00402e10
push 0x44d9ac
lea eax, [ebp - 0x2890]
push eax
call fcn.0042db23
lea ecx, [ebp - 0x2904]
push ecx
push str.Name
push str.PackageInfo
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x41e3e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41e3e5
cmp eax, 0xe0000101
je 0x41e3e5
cmp eax, 0xe0000102
je 0x41e3e5
push 0x3d
push eax
lea edx, [ebp - 0x28e8]
push edx
mov ecx, str.INF.cpp
mov ebx, 0x446828
call fcn.00402e10
push 0x44d9ac
lea eax, [ebp - 0x28e8]
push eax
call fcn.0042db23
push 1
lea ecx, [ebp - 0x2908]
push ecx
lea ecx, [ebp - 0x2834]
call fcn.0042b0e0
lea esi, [ebx + 0x8c]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00405410
cmp dword [ebp - 0x2820], 8
jb 0x41e422
mov edx, dword [ebp - 0x2834]
push edx
call fcn.0042c048
add esp, 4
mov eax, dword [ebp - 0x2908]
cmp eax, 0xffffffff
je 0x41e434
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov dword [ebp - 0x2908], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x41e45a
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x28ec]
push ecx
xor eax, eax
lea edx, [ebp - 0x2018]
push edx
push eax
push eax
mov word [ebp - 0x2018], ax
mov eax, dword [ebp - 0x28f0]
push str.DriverVersion
push eax
mov dword [ebp - 0x28ec], 0x2000
call edi
lea eax, [ebp - 0x2018]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e4a0
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x38]
lea eax, [ebp - 0x2018]
call fcn.00402c20
lea edx, [ebp - 0x28ec]
push edx
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
push ecx
mov word [ebp - 0x2018], cx
mov ecx, dword [ebp - 0x28f0]
push str.InfSection
push ecx
mov dword [ebp - 0x28ec], 0x2000
call edi
lea eax, [ebp - 0x2018]
lea edx, [eax + 2]
jmp 0x41e500
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e500
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x54]
lea eax, [ebp - 0x2018]
call fcn.00402c20
lea eax, [ebp - 0x28ec]
push eax
xor edx, edx
lea ecx, [ebp - 0x2018]
push ecx
push edx
push edx
mov word [ebp - 0x2018], dx
mov edx, dword [ebp - 0x28f0]
push str.ProviderName
push edx
mov dword [ebp - 0x28ec], 0x2000
call edi
lea eax, [ebp - 0x2018]
lea edx, [eax + 2]
jmp 0x41e560
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e560
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x70]
lea eax, [ebp - 0x2018]
call fcn.00402c20
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x41e58a
mov edx, dword [esi]
jmp 0x41e58c
mov edx, esi
cmp eax, 8
jb 0x41e595
mov ecx, dword [esi]
jmp 0x41e597
mov ecx, esi
mov edi, dword [esi + 0x10]
lea edi, [ecx + edi*2]
cmp eax, 8
jb 0x41e5a6
mov eax, dword [esi]
jmp 0x41e5a8
mov eax, esi
cmp eax, edi
je 0x41e5c8
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
cmp ecx, 0x25
jne 0x41e5bd
mov ecx, 0x2a
mov word [edx + eax], cx
add eax, 2
cmp eax, edi
jne 0x41e5b0
lea ecx, [ebp - 0x28ec]
push ecx
xor eax, eax
lea edx, [ebp - 0x2018]
push edx
push eax
push eax
mov word [ebp - 0x2018], ax
mov eax, dword [ebp - 0x28f0]
push str.DriverDesc
push eax
mov dword [ebp - 0x28ec], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x28f0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2908]
cmp eax, 0xffffffff
je 0x41e61c
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.0042c039
mov esp, ebp
pop ebp
ret