Function at 0x4087c8
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4406a3
call fcn.004151bc
mov eax, 0x191a8
call fcn.00416000
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x18c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
jbe 0x408add
mov esi, 0x467e68
jmp 0x4087fe
xor edi, edi
push 0x19000
lea eax, [ebp - 0x191b4]
push edi
push eax
call fcn.00415690
add esp, 0xc
lea eax, [ebp - 0x191b4]
push eax
push str.Mfg.Matrox
push ecx
lea ecx, [ebx + 0x184]
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x18]
push eax
call fcn.0040ee46
mov ecx, ebx
call fcn.00409817
lea eax, [ebp - 0x191b4]
mov ecx, ebx
push eax
lea eax, [ebp - 0x191b4]
push eax
call fcn.00408fda
cmp byte [ebp - 0x191b4], 0
mov dword [ebp - 0x14], edi
lea edi, [ebp - 0x191b4]
je 0x408acb
mov al, byte [edi]
cmp al, 0x3b
je 0x408ab7
cmp al, 0x25
jne 0x408ab4
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jne 0x408ab4
and byte [edi + 4], 0
mov eax, dword [ebx + 0x1b8]
inc edi
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x14], ecx
je 0x4088cb
jmp 0x40889e
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
jne 0x4088aa
mov ecx, 0x444464
push edi
push ecx
call fcn.00415510
pop ecx
test eax, eax
pop ecx
je 0x408aa4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x1b8]
mov dword [ebp - 0x14], eax
jne 0x40889b
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x184]
push eax
call fcn.0040ee46
push dword [eax]
lea eax, [ebp - 0x1b4]
push 0xff
push eax
push str.Error
push edi
push str.Strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x20]
call fcn.004329a9
lea eax, [ebp - 0x1b4]
push str.Error
push eax
call fcn.00415510
pop ecx
test eax, eax
pop ecx
je 0x408aa4
mov al, byte [ebp - 0xd]
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call fcn.00404e00
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00404e9a
mov al, byte [ebp - 0xd]
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x70], al
call fcn.00404e00
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00404e9a
mov al, byte [ebp - 0xd]
push 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
mov byte [ebp - 0x60], al
call fcn.00404e00
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x60]
call fcn.00404e9a
mov al, byte [ebp - 0xd]
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov byte [ebp - 0x30], al
call fcn.00404e00
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00404e9a
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00404927
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.00404e00
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00404e00
mov byte [ebp - 4], 6
push 1
lea ecx, [ebp - 0x70]
call fcn.00404e00
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00404e00
push edi
call fcn.00415410
pop ecx
push eax
push edi
lea ecx, [ebp - 0x94]
call fcn.00404e9a
mov al, byte [ebp - 0xd]
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.00404e00
push edi
call fcn.00415410
pop ecx
push eax
push edi
lea ecx, [ebp - 0x50]
call fcn.00404e9a
lea eax, [ebp - 0x84]
lea ecx, [ebx + 0xdc]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 9
call fcn.004041b0
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00404e00
mov eax, dword [ebx + 0x1b8]
lea ecx, [ebx + 0x1b4]
lea edx, [ebp - 0xb4]
push edx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00404e3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x1c], 1
call fcn.004032cb
and dword [ebp - 0x14], 0
add edi, 4
push edi
call fcn.00415410
pop ecx
add edi, eax
inc edi
jmp 0x408ac2
push edi
call fcn.00415410
pop ecx
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x408866
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 0x18c]
jb 0x4087fc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret