Function at 0x40c342
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x440cd0
call fcn.004151bc
mov eax, 0x1914c
call fcn.00416000
mov eax, dword [0x466c7c]
push ebx
xor edx, edx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x18c]
mov byte [ebp - 4], 2
cmp eax, edx
mov dword [ebp - 0x20], edx
jbe 0x40c7e9
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, str.Error
mov ebx, str.Strings
cmp dword [ebp - 0x28], 0
jne 0x40c7e9
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00432ae6
push 0x19000
lea eax, [ebp - 0x19158]
push 0
push eax
call fcn.00415690
add esp, 0xc
lea ecx, [ebp - 0x18]
push str.SUBSYS
call fcn.00431bf6
cmp eax, 0xffffffff
je 0x40c407
push str.SUBSYS
lea ecx, [ebp - 0x18]
call fcn.00431bf6
add eax, 0xf
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00431b5c
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00432a96
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
jmp 0x40c44a
push 0x46326c
lea ecx, [ebp - 0x18]
call fcn.00431bf6
cmp eax, 0xffffffff
je 0x40c44f
push 0x46326c
lea ecx, [ebp - 0x18]
call fcn.00431bf6
add eax, 8
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00431b5c
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00432a96
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004329a9
push dword [ebp - 0x20]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x184]
call fcn.0040ee46
push dword [eax]
push dword [ebp + 0x10]
call fcn.004155a0
pop ecx
pop ecx
lea ecx, [ebp - 0x4c]
call fcn.004329a9
lea eax, [ebp - 0x19158]
push eax
push str.Mfg.Matrox
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 0x10]
call fcn.00432a17
mov ecx, dword [ebp - 0x24]
call fcn.00409817
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x19158]
push eax
lea eax, [ebp - 0x19158]
push eax
call fcn.00408fda
cmp byte [ebp - 0x19158], 0
lea eax, [ebp - 0x19158]
mov dword [ebp - 0x10], eax
je 0x40c508
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x3b
je 0x40c4ee
push dword [ebp + 0xc]
push eax
call fcn.00415490
pop ecx
test eax, eax
pop ecx
je 0x40c4ee
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00415490
pop ecx
test eax, eax
pop ecx
jne 0x40c5c4
push dword [ebp - 0x10]
call fcn.00415410
pop ecx
mov ecx, dword [ebp - 0x10]
cmp byte [ecx + eax + 1], 0
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x10], eax
jne 0x40c4c2
lea eax, [ebp - 0x19158]
push 0x46326c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.00431bf6
cmp eax, 0xffffffff
je 0x40c559
push 0x46326c
lea ecx, [ebp - 0x18]
call fcn.00431bf6
add eax, 8
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00431b5c
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00432a96
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004329a9
cmp byte [ebp - 0x19158], 0
je 0x40c7d4
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x3b
je 0x40c5a5
push dword [ebp + 0xc]
push eax
call fcn.00415490
pop ecx
test eax, eax
pop ecx
je 0x40c5a5
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00415490
pop ecx
test eax, eax
pop ecx
je 0x40c5a5
push str.SUBSYS
push dword [ebp - 0x10]
call fcn.00415490
pop ecx
test eax, eax
pop ecx
je 0x40c6af
push dword [ebp - 0x10]
call fcn.00415410
pop ecx
mov ecx, dword [ebp - 0x10]
cmp byte [ecx + eax + 1], 0
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x10], eax
jne 0x40c566
jmp 0x40c7d4
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 1
call fcn.00432ae6
push 0x463268
lea ecx, [ebp - 0x14]
call fcn.00431bf6
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00431a27
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00432a96
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004329a9
push 0x462e60
lea ecx, [ebp - 0x14]
call fcn.00431bf6
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
call fcn.00431b5c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00432a96
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004329a9
push dword [ebp - 0x14]
push dword [ebp + 0x14]
call fcn.004155a0
pop ecx
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00432ae6
lea eax, [ebp - 0x44]
push 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00431a27
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00432a96
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004329a9
push 0x463264
lea ecx, [ebp - 0x1c]
call fcn.00431bf6
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00431b5c
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00432a96
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
jmp 0x40c795
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 1
call fcn.00432ae6
push 0x463268
lea ecx, [ebp - 0x14]
call fcn.00431bf6
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00431a27
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00432a96
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004329a9
push 0x462e60
lea ecx, [ebp - 0x14]
call fcn.00431bf6
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x14]
call fcn.00431b5c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00432a96
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004329a9
push dword [ebp - 0x14]
push dword [ebp + 0x14]
call fcn.004155a0
pop ecx
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00432ae6
lea eax, [ebp - 0x48]
push 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00431a27
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call fcn.00432a96
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004329a9
push 0x463264
lea ecx, [ebp - 0x1c]
call fcn.00431bf6
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00431b5c
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call fcn.00432a96
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.004329a9
push dword [ebp + 0x10]
lea eax, [ebp - 0x158]
push 0xff
push eax
push esi
push dword [ebp - 0x1c]
push ebx
call edi
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.00415510
pop ecx
test eax, eax
pop ecx
je 0x40c7d4
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0x18]
call fcn.004155a0
pop ecx
pop ecx
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x18c]
jb 0x40c397
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004329a9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004329a9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
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 0x14