Function at 0x40aa40
Capabilities:
Read .ini file

Disassembly:
push ebx
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0x43f3b0
push 0x70
push 0x4403d8
push str.text_format
push str.preferences
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
jne 0x40aae2
mov dword [0x44043c], 5
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x440438], eax
mov dword [0x440444], 8
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x440440], eax
mov edx, 0x4403dc
mov ecx, 0x5c
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
mov dword [0x4403d8], 0xa
mov dword [0x4403ec], 0x190
mov ecx, 0x4403f8
mov edx, 0x426998
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x40aad2
pop eax
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x48
push eax
mov eax, dword [0x4403d8]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x4403dc], eax
push 0x43f3b0
push 0x70
push 0x4402f8
push str.lines_format
push str.preferences
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
jne 0x40ab8e
or dword [0x44035c], 0xffffffff
mov dword [0x440358], 0xc0c0c0
mov dword [0x440364], 8
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x440360], eax
mov edx, 0x4402fc
mov ecx, 0x5c
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
mov dword [0x4402f8], 8
mov dword [0x44030c], 0x190
mov ecx, 0x440318
mov edx, 0x426998
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x40ab7e
pop eax
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x48
push eax
mov eax, dword [0x4402f8]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x4402fc], eax
push 0x43f3b0
push 8
push 0x440194
push str.breaks_color
push str.preferences
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
jne 0x40abde
or dword [0x440198], 0xffffffff
mov dword [0x440194], 0xff0080
push 0x43f3b0
push 8
push 0x440184
push str.tabs_color
push str.preferences
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
jne 0x40ac0f
or dword [0x440188], 0xffffffff
mov dword [0x440184], 0x408000
push 0x43f3b0
push 8
push 0x440174
push str.space_color
push str.preferences
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
jne 0x40ac40
or dword [0x440178], 0xffffffff
mov dword [0x440174], 0x80
push 0x43f3b0
push 8
push 0x440164
push str.bookmark_color
push str.preferences
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
jne 0x40ac71
or dword [0x440168], 0xffffffff
mov dword [0x440164], 0xd3d3d3
push ebx
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x4403dc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x440468], eax
push 0x4402fc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x440464], eax
mov eax, dword [0x440468]
push eax
push 0x440158
mov eax, dword [0x43f09c]
push eax
call fcn.00417ec0
mov eax, dword [0x440464]
push eax
push 0x440154
mov eax, dword [0x43f09c]
push eax
call fcn.00417f30
pop ebx
ret