Function at 0x498330
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x5b9260
push 0
push str.AlwaysDefPrinter
push 0x5a11dc
call edi
mov esi, dword [esp + 0x1c]
push 0x5b9260
push 0
push str.AutoRotate
push 0x5a11dc
mov dword [esi], eax
call edi
push 0x5b9260
push 0
push str.Option
push 0x5a11dc
mov dword [esi + 4], eax
call edi
push 0x5b9260
push 0
push str.Head
push 0x5a11dc
mov dword [esi + 8], eax
call edi
push 0x5b9260
push 0
push str.Foot
push 0x5a11dc
mov dword [esi + 0x70], eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ebx, [esi + 0x504]
push 0x5b9260
push 0x104
push ebx
push 0x5aae60
push str.HeadTxt
push 0x5a11dc
mov dword [esi + 0x74], eax
call ebp
lea eax, [esi + 0x70c]
push 0x5b9260
push 0x104
push eax
push 0x5aae60
push str.FootTxt
push 0x5a11dc
call ebp
push ebx
call fcn.004c8cb0
lea eax, [esi + 0x70c]
push eax
call fcn.004c8cb0
add esp, 8
push 0x5b9260
push 0
push 0x59fa88
push 0x5a11dc
call edi
push 0x5b9260
push 0
push str.CenteredY
push 0x5a11dc
mov dword [esi + 0x4c], eax
call edi
push 0x5b9260
push 0
push str.MultipageOpt
push 0x5a11dc
mov dword [esi + 0x50], eax
call edi
push 0x5b9260
push 1
mov dword [esi + 0x60], eax
push str.PageRange1
push 0x5a11dc
call edi
push 0x5b9260
push 1
push str.PageRange2
push 0x5a11dc
mov dword [esi + 0x64], eax
call edi
push 0x5b9260
push 0
push str.EvenOdd
push 0x5a11dc
mov dword [esi + 0x68], eax
call edi
lea ebx, [esi + 0xf4]
push 0x5b9260
push 0x104
push ebx
push 0x5a14d8
push str.CustomPages
push 0x5a11dc
mov dword [esi + 0x6c], eax
call ebp
push 0x599e98
push 0x104
push ebx
call fcn.004c9b60
push 0x5b9260
push 0x5a14d4
push 0x599dc4
push 0x5a11dc
call fcn.004c8880
fstp dword [esi + 0xc]
push 0x5b9260
push 0x5a14d4
push 0x599dac
push 0x5a11dc
call fcn.004c8880
fstp dword [esi + 0x10]
push 0x5b9260
push 0x598478
push 0x5a13fc
push 0x5a11dc
call fcn.004c8880
fstp dword [esi + 0x14]
push 0x5b9260
push 0x598478
push 0x5a13f4
push 0x5a11dc
call fcn.004c8880
fstp dword [esi + 0x18]
add esp, 0x4c
push 0x5b9260
push 0x598490
push str.ScaleX
push 0x5a11dc
call fcn.004c8880
fstp dword [esi + 0x24]
push 0x5b9260
push 0x598490
push str.ScaleY
push 0x5a11dc
call fcn.004c8880
fstp dword [esi + 0x28]
add esp, 0x20
push 0x5b9260
push 0
push str.Inches
push 0x5a11dc
call edi
push 0x5b9260
push 1
push str.AspectRatio
push 0x5a11dc
mov dword [esi + 0x44], eax
call edi
push 0x5b9260
push 0
push str.Borderless
mov dword [esi + 0x48], eax
push 0x5a11dc
call edi
push 0x5b9260
push 0
push str.CheckOverflow
push 0x5a11dc
mov dword [esi + 0x58], eax
call edi
push 0x5b9260
push 0
push str.FitFillPaper
push 0x5a11dc
mov dword [esi + 0x5c], eax
call edi
push 0x5b9260
push 1
push str.Collate
push 0x5a11dc
mov dword [esi + 0x54], eax
call edi
push 0x5b9260
push 0
push str.UseCopies
push 0x5a11dc
mov dword [esi + 0xf0], eax
mov dword [esi + 0xec], 1
call edi
test eax, eax
je 0x498632
push 0x5b9260
push 1
push str.Copies
push 0x5a11dc
call edi
mov dword [esi + 0xec], eax
push 0x5b9260
push 0x5a11dc
push 0
push 0
lea eax, [esi + 0x78]
push 0
push eax
call fcn.004ca5f0
add esp, 0x18
push 0x5b9260
push 0
push str.TextColor
push 0x5a11dc
call edi
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0xdc]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.004c5070
fild dword [esp + 0x28]
add esp, 0x18
fstp dword [esp + 0x10]
fild dword [esp + 0x14]
pop edi
fstp dword [esp + 0x18]
fld dword [esp + 0xc]
fdiv dword [esp + 0x18]
fstp dword [esi + 0x1c]
fld dword [esp + 0x18]
fdiv dword [esp + 0xc]
fstp dword [esi + 0x20]
pop esi
pop ebp
pop ebx
add esp, 8
ret