Function at 0x409df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41c084]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x41cf38], 0x10
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x10c], 0x104
je 0x409e64
xor eax, eax
cmp eax, str.DevInst.cpp
jne 0x409e2c
mov eax, 0x41cfb4
jmp 0x409e47
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x409e46
mov eax, str.DevInst.cpp
jmp 0x409e47
inc eax
push str.QueryDevOemInfo
push 0x9f0
push eax
push 0x41926c
push str._T____s____s__d___s_:__n
call fcn.0040bbf0
add esp, 0x14
push 0x20019
push 2
push 0
push 1
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x41cf38], 1
mov esi, eax
je 0x409ef5
xor ecx, ecx
cmp ecx, str.DevInst.cpp
jne 0x409ea4
mov eax, 0x41cfb4
jmp 0x409ebf
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x409ebe
mov eax, str.DevInst.cpp
jmp 0x409ebf
inc eax
push str.QueryDevOemInfo
push 0x9fb
push eax
push 0x41926c
push 1
call fcn.0040b6d0
movsx edx, al
add esp, 4
push edx
push str.__C____s____s__d___s_:
call fcn.0040bbf0
push esi
push str.SetupDiOpenDevRegKey_Failed__Error__d._n
call fcn.0040bbf0
add esp, 0x20
test byte [0x41cf38], 0x10
je 0x40a0d3
xor eax, eax
cmp eax, str.DevInst.cpp
jne 0x409f1f
push str.QueryDevOemInfo
mov eax, 0x41cfb4
push 0x9fc
jmp 0x40a0c0
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x409f46
push str.QueryDevOemInfo
mov eax, str.DevInst.cpp
push 0x9fc
jmp 0x40a0c0
push str.QueryDevOemInfo
inc eax
push 0x9fc
jmp 0x40a0c0
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push str.InfPath
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a00f
cmp dword [ebp - 0x110], 1
jne 0x40a00f
push 3
lea ecx, [ebp - 0x108]
push 0x419c68
push ecx
call fcn.0040d6d4
add esp, 0xc
test eax, eax
jne 0x40a00f
xor edi, edi
mov eax, 0x419268
mov esi, ebx
call fcn.0040bb20
mov edx, dword [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
mov ecx, ebx
call fcn.0040a5a0
test byte [0x41cf38], 0x10
je 0x409ffa
push str.QueryDevOemInfo
push 0xa0d
call fcn.0040b730
push eax
push 0x41926c
push str._T____s____s__d___s_:__________n
call fcn.0040bbf0
add esp, 0x14
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c754
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x41cf38], 1
mov esi, eax
je 0x40a081
xor eax, eax
cmp eax, str.DevInst.cpp
jne 0x40a030
mov eax, 0x41cfb4
jmp 0x40a04b
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a04a
mov eax, str.DevInst.cpp
jmp 0x40a04b
inc eax
push str.QueryDevOemInfo
push 0xa12
push eax
push 0x41926c
push 1
call fcn.0040b6d0
movsx ecx, al
add esp, 4
push ecx
push str.__C____s____s__d___s_:
call fcn.0040bbf0
push esi
push str.RegQueryValueEx_Failed__Error__d._n
call fcn.0040bbf0
add esp, 0x20
test byte [0x41cf38], 0x10
je 0x40a0d3
xor edx, edx
cmp edx, str.DevInst.cpp
jne 0x40a09b
mov eax, 0x41cfb4
jmp 0x40a0b6
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a0b5
mov eax, str.DevInst.cpp
jmp 0x40a0b6
inc eax
push str.QueryDevOemInfo
push 0xa13
push eax
push 0x41926c
push str._T____s____s__d___s_:__________n
call fcn.0040bbf0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c754
mov esp, ebp
pop ebp
ret