Function at 0x41c370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447d9b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2898
call fcn.0043de50
mov eax, dword [0x45f4c8]
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.0042ffd1
push esi
lea eax, [ebp - 0x2818]
push 0x400
push eax
call fcn.0043002d
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 0x41c6e6
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 0x41c458
xor ecx, ecx
jmp 0x41c470
lea ecx, [ebp - 0x2018]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c461
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2018]
lea esi, [edi + 0x18]
push eax
mov ecx, esi
call fcn.00404410
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x41c48e
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 0x41c4d5
push 0x25
push str.INF.cpp
push 0x451a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2880]
call fcn.00407310
push 0x45d2ac
lea eax, [ebp - 0x2880]
push eax
call fcn.00431dcb
push str.Name
push str.PackageInfo
lea ecx, [ebp - 0x28a4]
call fcn.0042d820
push 1
lea eax, [ebp - 0x2830]
push eax
lea ecx, [ebp - 0x28a4]
call fcn.0042d9b0
lea esi, [edi + 0x78]
mov dword [ebp - 0x288c], eax
cmp esi, eax
je 0x41c53c
cmp dword [esi + 0x14], 8
jb 0x41c521
push dword [esi]
call fcn.00420070
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.00403f60
cmp dword [ebp - 0x281c], 8
jb 0x41c553
push dword [ebp - 0x2830]
call fcn.00420070
add esp, 4
mov eax, dword [ebp - 0x28a4]
cmp eax, 0xffffffff
je 0x41c565
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov dword [ebp - 0x28a4], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x41c591
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.00402990
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.00402990
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.00402990
cmp dword [esi + 0x14], 8
jb 0x41c666
mov eax, dword [esi]
mov dword [ebp - 0x288c], eax
jmp 0x41c66c
mov dword [ebp - 0x288c], esi
cmp dword [esi + 0x14], 8
jb 0x41c676
mov edi, dword [esi]
jmp 0x41c678
mov edi, esi
lea eax, [ebp - 0x2890]
mov ecx, esi
push eax
call fcn.00403fc0
mov eax, dword [eax]
cmp edi, eax
je 0x41c6a8
push 0x41c330
push dword [ebp - 0x288c]
mov edx, edi
lea ecx, [ebp - 0x288c]
push eax
call fcn.0041f2c0
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 0x41c6f8
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.0042f51f
mov esp, ebp
pop ebp
ret