Function at 0x456b20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4691ed
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, 0x4767e0
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], 0x471efc
mov dword [ebp - 0x4c8], 0x46cf9c
call fcn.00403400
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.004550b0
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 0x456bcd
test eax, eax
jne 0x456bf5
push eax
call fcn.0043ebe5
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043e61d
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.00453ba0
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.0043e970
push 0x63
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.0043e970
push 0x3e7
lea eax, [ebp - 0x4bf]
push 0
push eax
mov byte [ebp - 0x4c0], 0
call fcn.0043e970
mov esi, 1
add esp, 0x24
mov dword [ebp - 0x50c], esi
cmp dword [ebp - 0x4fc], esi
jl 0x457325
test ebx, ebx
cmovne edi, ebx
push 0x18
call fcn.004404d0
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.0045f586
add esp, 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x471efc
mov dword [ebp - 0x4c8], 0x46cf9c
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 0x456d25
xor ecx, ecx
jmp 0x456d3f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456d30
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.004550b0
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 0x456db8
test eax, eax
jne 0x456de0
push eax
call fcn.0043ebe5
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043e61d
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.00453ba0
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x476634
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.0043ebe5
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x456e61
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.0044fe20
mov ecx, dword [ebp - 0x4f8]
call fcn.00454590
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 0x4762f8
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x471efc
mov dword [ebp - 0x4c8], 0x46cf9c
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 0x456f44
xor ecx, ecx
jmp 0x456f5f
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456f50
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.004550b0
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 0x456fd4
test eax, eax
jne 0x456ffc
push eax
call fcn.0043ebe5
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043e61d
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.00453ba0
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x476634
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.0043ebe5
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x45707a
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.0044fe20
mov esi, dword [ebp - 0x4f8]
mov ecx, esi
call fcn.00454910
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], 0x471efc
mov dword [ebp - 0x4c8], 0x46cf9c
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 0x45716f
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457160
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.004550b0
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 0x4571de
test eax, eax
jne 0x457206
push eax
call fcn.0043ebe5
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043e61d
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.00453ba0
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x476634
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.0043ebe5
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x457284
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.0044fe20
mov ecx, dword [ebp - 0x4f8]
call fcn.00454910
mov ecx, dword [ebp - 0x514]
lea eax, [ebp - 0x50c]
push eax
call fcn.004507f0
mov esi, dword [ebp - 0x50c]
inc esi
mov dword [eax], ebx
mov dword [ebp - 0x50c], esi
cmp esi, dword [ebp - 0x4fc]
jle 0x456c96
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.0043e8f7
mov esp, ebp
pop ebp
ret 8