Function at 0x456280
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46885d
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x484db8]
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, 0x475ec0
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], 0x47602c
mov dword [ebp - 0x4c8], 0x46c7e0
call fcn.00403400
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.00454810
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 0x45632d
test eax, eax
jne 0x456355
push eax
call fcn.0043e335
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043dd7c
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.00453300
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.00401500
push 0x63
lea eax, [ebp - 0xd7]
push 0
push eax
mov byte [ebp - 0xd8], 0
call fcn.0043e0c0
push 0x63
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.0043e0c0
push 0x3e7
lea eax, [ebp - 0x4bf]
push 0
push eax
mov byte [ebp - 0x4c0], 0
call fcn.0043e0c0
mov esi, 1
add esp, 0x24
mov dword [ebp - 0x50c], esi
cmp dword [ebp - 0x4fc], esi
jl 0x456a85
test ebx, ebx
cmovne edi, ebx
push 0x18
call fcn.0043fc30
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.0045ecd2
add esp, 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x47602c
mov dword [ebp - 0x4c8], 0x46c7e0
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 0x456485
xor ecx, ecx
jmp 0x45649f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456490
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x4ec]
call fcn.00405680
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.00454810
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 0x456518
test eax, eax
jne 0x456540
push eax
call fcn.0043e335
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043dd7c
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.00453300
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x475d14
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.0043e335
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4565c1
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.0044f580
mov ecx, dword [ebp - 0x4f8]
call fcn.00453cf0
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 0x4759d8
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x47602c
mov dword [ebp - 0x4c8], 0x46c7e0
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 0x4566a4
xor ecx, ecx
jmp 0x4566bf
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4566b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x4ec]
call fcn.00405680
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.00454810
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 0x456734
test eax, eax
jne 0x45675c
push eax
call fcn.0043e335
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043dd7c
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.00453300
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x475d14
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.0043e335
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4567da
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.0044f580
mov esi, dword [ebp - 0x4f8]
mov ecx, esi
call fcn.00454070
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], 0x47602c
mov dword [ebp - 0x4c8], 0x46c7e0
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 0x4568cf
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4568c0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x4ec]
call fcn.00405680
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.00454810
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 0x45693e
test eax, eax
jne 0x456966
push eax
call fcn.0043e335
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043dd7c
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.00453300
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x475d14
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.0043e335
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4569e4
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.0044f580
mov ecx, dword [ebp - 0x4f8]
call fcn.00454070
mov ecx, dword [ebp - 0x514]
lea eax, [ebp - 0x50c]
push eax
call fcn.0044ff50
mov esi, dword [ebp - 0x50c]
inc esi
mov dword [eax], ebx
mov dword [ebp - 0x50c], esi
cmp esi, dword [ebp - 0x4fc]
jle 0x4563f6
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.0043e056
mov esp, ebp
pop ebp
ret 8