Function at 0x408d48
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push dword [0x4137dc]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x413bb4]
mov dword [ebp - 4], eax
mov edi, 0x100
lea eax, [ebp - 0x124]
push edi
push eax
push 0x4133e0
mov esi, str.Settings
push str.Text_Font
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor ebx, ebx
cmp byte [ebp - 0x124], bl
je 0x408db0
push edi
call fcn.00409547
pop ecx
mov dword [0x4137e0], eax
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x413bb4]
lea eax, [ebp - 0x124]
push edi
push eax
push str.Times_New_Roman
push str.Title_Font
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [0x413bb4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push str.Font_Character_Set
push esi
call edi
push dword [0x413bb4]
mov byte [0x413810], al
push 8
push str.Font_Character_Size
push esi
call edi
mov byte [0x413858], al
lea eax, [ebp - 0x124]
push eax
push 0x10
movzx eax, byte [0x413810]
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push 1
push 0x2bc
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
push ebx
push ebx
push 0x48
push 0x5a
push dword [ebp - 4]
call esi
push eax
push 0x10
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push 0xe
mov dword [0x413840], eax
push dword [ebp - 4]
call esi
push 0xc
mov edi, eax
push dword [ebp - 4]
call esi
imul edi, eax
push 8
push dword [ebp - 4]
call esi
push 0xa
mov dword [0x4138a4], eax
push dword [ebp - 4]
call esi
cmp di, 8
mov dword [0x4138a8], eax
jl 0x408f57
push 0x184
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x60
mov dword [ebp - 0x10], eax
pop edx
mov word [eax], 0x300
mov word [eax + 2], dx
mov dword [ebp - 8], ebx
lea ecx, [eax + 5]
mov dword [ebp - 0x18], edx
xor esi, esi
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x413bec]
lea esi, [esi + 0x413be0]
imul eax, dword [ebp - 8]
push 0x5f
cdq
pop edi
idiv edi
mov edx, dword [esi]
mov esi, dword [ebp - 0x14]
add edx, eax
lea eax, [ebp + esi - 0x24]
cmp edx, ebx
mov dword [eax], edx
jge 0x408eda
mov dword [eax], ebx
mov edx, 0xff
cmp dword [eax], edx
jle 0x408ee5
mov dword [eax], edx
add esi, 4
dec dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
jne 0x408eb1
mov al, byte [ebp - 0x24]
inc dword [ebp - 8]
mov byte [ecx - 1], al
mov al, byte [ebp - 0x20]
mov byte [ecx], al
mov al, byte [ebp - 0x1c]
mov byte [ecx + 1], al
mov byte [ecx + 2], bl
add ecx, 4
dec dword [ebp - 0x18]
jne 0x408ea5
push dword [ebp - 0x10]
mov esi, dword [0x413870]
call dword [sym.imp.GDI32.dll_CreatePalette]
push dword [ebp - 0x10]
mov dword [0x413870], eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push dword [0x413870]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectPalette]
cmp esi, ebx
je 0x408f4e
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_RealizePalette]
push dword [ebp - 4]
push dword [0x4137dc]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
leave
ret