Function at 0x46c400
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x4cc
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 8]
push edi
mov ecx, esi
call fcn.00445b64
push eax
mov eax, dword [esp + 0x4e4]
push 0
push str.RECTS
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, eax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], 0
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0xf4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0xf5]
mov ebp, 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, ebp
mov dword [esp + 0x18], edx
stosb byte es:[edi], al
jl 0x46c768
push 0x18
call fcn.0047d58e
add esp, 4
lea ecx, [esp + 0x90]
mov edi, eax
push str.RECT
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xf4]
push 0xa
push edx
push ebp
call fcn.0047f82a
add esp, 0xc
push eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, esi
call fcn.00445b64
push eax
mov eax, dword [esp + 0x4e4]
lea ecx, [esp + 0xf8]
push 0x3e8
push ecx
lea edx, [esp + 0x9c]
push 0x4c6e14
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push edi
mov dword [edi], eax
sub esp, 0x28
lea edx, [esp + 0x43]
mov ecx, esp
mov dword [esp + 0x3c], esp
push 1
lea eax, [esp + 0x124]
push edx
push eax
call fcn.0044554d
mov ecx, ebx
call fcn.0046f990
mov ecx, dword [edi]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [edi + 4], eax
lea edx, [esp + 0x90]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x2c]
push 0x4c2f74
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
test eax, eax
jne 0x46c568
mov eax, 0x4a36e0
push 0
push 0
push 0
inc ecx
push 0
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x10], eax
cmp eax, ecx
jbe 0x46c5ab
mov eax, dword [esi + 0x14]
push eax
call fcn.0044c894
mov eax, dword [esp + 0x14]
shr eax, 6
inc eax
shl eax, 6
push eax
mov dword [esi + 0x18], eax
call fcn.0047d58e
add esp, 8
mov dword [esi + 0x14], eax
mov edx, dword [esi + 8]
test edx, edx
jne 0x46c5b7
mov edx, 0x4a36e0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push 0
push 0
push eax
mov eax, dword [esi + 0xc]
inc eax
push ecx
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x4e0]
push eax
lea edx, [esp + 0xf8]
push 0x3e8
push edx
lea eax, [esp + 0x38]
push 0x4c6e14
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [edi + 0xc]
lea ecx, [edi + 8]
push eax
push ecx
sub esp, 0x28
mov dword [ecx], 0
mov dword [eax], 0
mov ecx, esp
mov dword [esp + 0x40], esp
lea edx, [esp + 0x45]
push 1
lea eax, [esp + 0x128]
push edx
push eax
call fcn.0044554d
mov ecx, ebx
call fcn.0046f700
lea ecx, [esp + 0x90]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x2c]
push str.AREA
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
test eax, eax
jne 0x46c666
mov eax, 0x4a36e0
push 0
push 0
push 0
inc ecx
push 0
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x10], eax
cmp eax, ecx
jbe 0x46c6a9
mov eax, dword [esi + 0x14]
push eax
call fcn.0044c894
mov eax, dword [esp + 0x14]
shr eax, 6
inc eax
shl eax, 6
push eax
mov dword [esi + 0x18], eax
call fcn.0047d58e
add esp, 8
mov dword [esi + 0x14], eax
mov edx, dword [esi + 8]
test edx, edx
jne 0x46c6b5
mov edx, 0x4a36e0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push 0
push 0
push eax
mov eax, dword [esi + 0xc]
inc eax
push ecx
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0xf4]
push eax
mov eax, dword [esp + 0x4e4]
push 0x3e8
push ecx
lea edx, [esp + 0x38]
push 0x4c6e14
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [edi + 0x14]
lea eax, [edi + 0x10]
push ecx
push eax
sub esp, 0x28
mov dword [ecx], 0
mov dword [eax], 0
mov ecx, esp
mov dword [esp + 0x40], esp
lea edx, [esp + 0x46]
push 1
lea eax, [esp + 0x128]
push edx
push eax
call fcn.0044554d
mov ecx, ebx
call fcn.0046f700
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x4e8]
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0
call fcn.004751f0
mov eax, dword [esp + 0x24]
inc ebp
mov dword [eax + 0x10], edi
mov eax, dword [esp + 0x18]
cmp ebp, eax
jle 0x46c48a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret 8