Function at 0x490d50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9edd
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x4d5e88]
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, 0x4c0d0c
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], 0x4c0ee0
mov dword [ebp - 0x4c8], 0x4c13e4
call fcn.00403fb0
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.0048f280
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 0x490dfd
test eax, eax
jne 0x490e25
push eax
call fcn.004593fa
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.00458527
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.0048c890
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.00458f10
push 0x63
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.00458f10
push 0x3e7
lea eax, [ebp - 0x4bf]
push 0
push eax
mov byte [ebp - 0x4c0], 0
call fcn.00458f10
mov esi, 1
add esp, 0x24
mov dword [ebp - 0x50c], esi
cmp dword [ebp - 0x4fc], esi
jl 0x491555
test ebx, ebx
cmovne edi, ebx
push 0x18
call fcn.004590c6
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.0049ae92
add esp, 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4c0ee0
mov dword [ebp - 0x4c8], 0x4c13e4
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 0x490f55
xor ecx, ecx
jmp 0x490f6f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490f60
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.0048f280
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 0x490fe8
test eax, eax
jne 0x491010
push eax
call fcn.004593fa
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.00458527
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.0048c890
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c0b60
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.004593fa
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x491091
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.004848c0
mov ecx, dword [ebp - 0x4f8]
call fcn.0048e6d0
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 0x4bac1c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4c0ee0
mov dword [ebp - 0x4c8], 0x4c13e4
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 0x491174
xor ecx, ecx
jmp 0x49118f
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491180
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.0048f280
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 0x491204
test eax, eax
jne 0x49122c
push eax
call fcn.004593fa
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.00458527
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.0048c890
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c0b60
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.004593fa
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4912aa
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.004848c0
mov esi, dword [ebp - 0x4f8]
mov ecx, esi
call fcn.0048ea50
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], 0x4c0ee0
mov dword [ebp - 0x4c8], 0x4c13e4
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 0x49139f
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491390
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.0048f280
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 0x49140e
test eax, eax
jne 0x491436
push eax
call fcn.004593fa
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.00458527
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.0048c890
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c0b60
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.004593fa
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4914b4
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.004848c0
mov ecx, dword [ebp - 0x4f8]
call fcn.0048ea50
mov ecx, dword [ebp - 0x514]
lea eax, [ebp - 0x50c]
push eax
call fcn.00486450
mov esi, dword [ebp - 0x50c]
inc esi
mov dword [eax], ebx
mov dword [ebp - 0x50c], esi
cmp esi, dword [ebp - 0x4fc]
jle 0x490ec6
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.00458e9f
mov esp, ebp
pop ebp
ret 8