Function at 0x40cbfd
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x440d3e
call fcn.004151bc
mov eax, 0x32758
call fcn.00416000
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x467e68
xor ebx, ebx
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], ebx
call fcn.00432a17
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00432a17
mov eax, dword [edi + 0x18c]
mov byte [ebp - 4], 1
cmp eax, ebx
mov dword [ebp - 0x18], ebx
jle 0x40d025
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, 0x100
push 0x19000
lea eax, [ebp - 0x32764]
push ebx
push eax
call fcn.00415690
push 0x19000
lea eax, [ebp - 0x19764]
push ebx
push eax
call fcn.00415690
add esp, 0x18
lea eax, [ebp - 0x34]
push dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x184]
call fcn.0040ee46
mov eax, dword [eax]
push ebx
push 2
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], eax
call fcn.004329a9
push ebx
lea eax, [ebp - 0x32764]
push 0x19000
push eax
push str.SUPPORTED
push str.VHead
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
test eax, eax
je 0x40d002
push ebx
lea eax, [ebp - 0x19764]
push 0x19000
push eax
push str.UNSUPPORTED
push str.VHead
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
test eax, eax
je 0x40cd2a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x19764]
push eax
lea eax, [ebp - 0x19764]
push eax
call fcn.00408fda
push ecx
lea eax, [ebp - 0x19764]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00432a17
mov ecx, dword [ebp - 0x10]
call fcn.0040d423
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x32764]
push eax
lea eax, [ebp - 0x32764]
push eax
call fcn.00408fda
lea eax, [ebp - 0x32764]
lea ecx, [ebp - 0x20]
push eax
call fcn.00432ae6
push 0x467e68
lea ecx, [ebp - 0x1c]
call fcn.00432ae6
push ebx
push 0x462e60
lea ecx, [ebp - 0x20]
call fcn.00431c04
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x40cd84
cmp eax, 0xffffffff
jne 0x40cd84
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00432a96
jmp 0x40cdb9
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
lea ecx, [ebp - 0x20]
call fcn.00431a4a
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00432a96
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004329a9
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
inc eax
push eax
push ebx
call fcn.0043191a
push 0x467e68
push dword [ebp - 0x1c]
call fcn.004160c5
pop ecx
test eax, eax
pop ecx
je 0x40cff8
mov eax, dword [0x466c7c]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
push ebx
push str.Mfg.Matrox
push dword [ebp - 0x24]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
push ebx
lea eax, [ebp - 0x664]
push esi
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x184]
call fcn.0040ee46
push dword [eax]
lea eax, [ebp - 0x764]
push esi
push eax
push str.Mfg.Matrox
call edi
lea ecx, [ebp - 0x3c]
call fcn.004329a9
lea eax, [ebp - 0x764]
lea ecx, [ebp - 0x14]
push eax
call fcn.00432ae6
push ebx
push 0x463268
lea ecx, [ebp - 0x14]
call fcn.00431c04
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00431a27
push dword [eax]
lea eax, [ebp - 0x564]
push eax
call fcn.004155a0
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004329a9
lea eax, [ebp - 0x564]
push str..Services
push eax
call fcn.004155b0
pop ecx
lea eax, [ebp - 0x38]
pop ecx
push dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x184]
call fcn.0040ee46
push dword [eax]
lea eax, [ebp - 0x158]
push esi
push eax
lea eax, [ebp - 0x564]
push eax
call edi
lea ecx, [ebp - 0x38]
call fcn.004329a9
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x158]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00408fda
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x14]
push eax
call fcn.00432ae6
push ebx
push 0x463268
lea ecx, [ebp - 0x14]
call fcn.00431c04
push eax
push 0x462e60
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
call fcn.00431c04
mov ecx, dword [ebp - 0x28]
sub eax, ecx
dec eax
inc ecx
push eax
lea eax, [ebp - 0x40]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00431a4a
push dword [eax]
lea eax, [ebp - 0x158]
push eax
call fcn.004155a0
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004329a9
push dword [ebp - 0x1c]
lea eax, [ebp - 0x464]
mov dword [ebp - 0x164], ebx
push eax
call fcn.004155a0
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x266]
push eax
call fcn.004155a0
add esp, 0x10
lea eax, [ebp - 0x48]
push dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x184]
call fcn.0040ee46
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 6
call fcn.00432a96
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.004329a9
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x15c]
push eax
call fcn.00432ae6
sub esp, 0x30c
lea eax, [ebp - 0x464]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.0040d08a
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x23c]
call fcn.0040efaa
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 4
call fcn.004329a9
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 7
call fcn.004329a9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x160]
call fcn.004329a9
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40cd5c
cmp dword [ebp - 0x24], ebx
je 0x40d010
push dword [ebp - 0x24]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x18c]
jl 0x40cc58
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004329a9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004329a9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret