Function at 0x490b60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4f8], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, 0x4c11c8
test eax, eax
mov ebx, edi
cmovne ebx, eax
push 0
lea eax, [ebp - 0x4f1]
push eax
mov dword [ebp - 0x514], ecx
push ebx
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
call fcn.00403fb0
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.0048f090
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x4fc], eax
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x490c0d
test eax, eax
jne 0x490c35
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push dword [ebp - 0x4fc]
push 0
push str.RECTS
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4fc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00401ac0
push 0x63
lea eax, [ebp - 0xd7]
push 0
push eax
mov byte [ebp - 0xd8], 0
call fcn.00459250
push 0x63
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.00459250
push 0x3e7
lea eax, [ebp - 0x4bf]
push 0
push eax
mov byte [ebp - 0x4c0], 0
call fcn.00459250
mov esi, 1
add esp, 0x24
mov dword [ebp - 0x50c], esi
cmp dword [ebp - 0x4fc], esi
jl 0x491365
test ebx, ebx
cmovne edi, ebx
push 0x18
call fcn.00459406
add esp, 4
mov dword [ebp - 0x504], eax
push str.RECT
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa
lea eax, [ebp - 0x4c0]
push eax
push esi
call fcn.0049aaba
add esp, 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c4], eax
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov word [ebp - 0x4ec], ax
cmp word [edi], ax
jne 0x490d65
xor ecx, ecx
jmp 0x490d7f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490d70
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x4ec]
call fcn.00406eb0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4c8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x4f8]
mov dword [ebp - 4], 2
lea ecx, [ecx + 8]
call fcn.0048f090
mov ecx, dword [ebp - 0x4dc]
mov ebx, eax
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x490df8
test eax, eax
jne 0x490e20
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c101c
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x4c8]
lea esi, [ebp - 0x4c8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x4d4]
call fcn.0045973a
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x490ea1
push dword [ebp - 0x4ec]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f0]
call esi
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [ebp - 0x504]
push ebx
sub esp, 0x30
mov ecx, esp
mov dword [ebx], eax
push 1
lea eax, [ebp - 0x4f1]
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00484720
mov ecx, dword [ebp - 0x4f8]
call fcn.0048e4e0
push dword [ebx]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebx + 4], eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4bb10c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c4], eax
xor eax, eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov word [ebp - 0x4ec], ax
cmp word [edi], ax
jne 0x490f84
xor ecx, ecx
jmp 0x490f9f
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490f90
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x4ec]
call fcn.00406eb0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4c8]
call esi
mov ecx, dword [ebp - 0x4f8]
mov dword [ebp - 4], 4
lea ecx, [ecx + 8]
call fcn.0048f090
mov ecx, dword [ebp - 0x4dc]
mov ebx, eax
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x491014
test eax, eax
jne 0x49103c
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c101c
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x4c8]
lea esi, [ebp - 0x4c8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x4d4]
call fcn.0045973a
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4910ba
push dword [ebp - 0x4ec]
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f0]
call ebx
mov eax, dword [ebp - 0x504]
lea ecx, [eax + 0xc]
push ecx
add eax, 8
push eax
sub esp, 0x30
mov dword [ecx], 0
mov ecx, esp
mov dword [eax], 0
push 1
lea eax, [ebp - 0x4fd]
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00484720
mov esi, dword [ebp - 0x4f8]
mov ecx, esi
call fcn.0048e860
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.AREA
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c4], eax
xor eax, eax
mov dword [ebp - 4], 5
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov word [ebp - 0x4ec], ax
cmp word [edi], ax
je 0x4911af
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4911a0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x4ec]
call fcn.00406eb0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4c8]
call ebx
lea ecx, [esi + 8]
mov dword [ebp - 4], 6
call fcn.0048f090
mov ecx, dword [ebp - 0x4dc]
mov ebx, eax
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x49121e
test eax, eax
jne 0x491246
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c101c
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x4c8]
lea esi, [ebp - 0x4c8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x4d4]
call fcn.0045973a
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4912c4
push dword [ebp - 0x4ec]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f0]
call esi
mov ebx, dword [ebp - 0x504]
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebx + 0x10]
push ecx
sub esp, 0x30
mov dword [ecx], 0
mov ecx, esp
mov dword [eax], 0
push 1
lea eax, [ebp - 0x505]
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00484720
mov ecx, dword [ebp - 0x4f8]
call fcn.0048e860
mov ecx, dword [ebp - 0x514]
lea eax, [ebp - 0x50c]
push eax
call fcn.00486260
mov esi, dword [ebp - 0x50c]
inc esi
mov dword [eax], ebx
mov dword [ebp - 0x50c], esi
cmp esi, dword [ebp - 0x4fc]
jle 0x490cd6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004591d7
mov esp, ebp
pop ebp
ret 8