Function at 0x458280
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46addd
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x487db8]
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, 0x478ed0
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], 0x4745e4
mov dword [ebp - 0x4c8], 0x46ef78
call fcn.00403400
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.00456810
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 0x45832d
test eax, eax
jne 0x458355
push eax
call fcn.00440394
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043fd86
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.00455300
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.004400d0
push 0x63
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.004400d0
push 0x3e7
lea eax, [ebp - 0x4bf]
push 0
push eax
mov byte [ebp - 0x4c0], 0
call fcn.004400d0
mov esi, 1
add esp, 0x24
mov dword [ebp - 0x50c], esi
cmp dword [ebp - 0x4fc], esi
jl 0x458a85
test ebx, ebx
cmovne edi, ebx
push 0x18
call fcn.004401ab
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.00460d12
add esp, 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4745e4
mov dword [ebp - 0x4c8], 0x46ef78
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 0x458485
xor ecx, ecx
jmp 0x45849f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458490
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.00456810
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 0x458518
test eax, eax
jne 0x458540
push eax
call fcn.00440394
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043fd86
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.00455300
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x478d24
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.00440394
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4585c1
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.00451580
mov ecx, dword [ebp - 0x4f8]
call fcn.00455cf0
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 0x4789e8
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4745e4
mov dword [ebp - 0x4c8], 0x46ef78
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 0x4586a4
xor ecx, ecx
jmp 0x4586bf
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4586b0
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.00456810
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 0x458734
test eax, eax
jne 0x45875c
push eax
call fcn.00440394
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043fd86
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.00455300
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x478d24
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.00440394
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4587da
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.00451580
mov esi, dword [ebp - 0x4f8]
mov ecx, esi
call fcn.00456070
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], 0x4745e4
mov dword [ebp - 0x4c8], 0x46ef78
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 0x4588cf
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4588c0
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.00456810
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 0x45893e
test eax, eax
jne 0x458966
push eax
call fcn.00440394
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0043fd86
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.00455300
push ebx
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x478d24
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.00440394
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call ebx
cmp dword [ebp - 0x4d8], 8
jb 0x4589e4
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.00451580
mov ecx, dword [ebp - 0x4f8]
call fcn.00456070
mov ecx, dword [ebp - 0x514]
lea eax, [ebp - 0x50c]
push eax
call fcn.00451f50
mov esi, dword [ebp - 0x50c]
inc esi
mov dword [eax], ebx
mov dword [ebp - 0x50c], esi
cmp esi, dword [ebp - 0x4fc]
jle 0x4583f6
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.00440060
mov esp, ebp
pop ebp
ret 8