Function at 0x4f9890
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e310
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x53b7a8
call fcn.00466b30
push str.PrntSheets_Text
lea eax, [esi + 0x10]
call fcn.004fcf00
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
jne 0x4f98e1
mov eax, 0x538640
mov dword [ebp - 0x10], edi
cmp dword [esi + 8], edi
jle 0x4f990f
cmp eax, edi
je 0x4f990f
cmp word [eax], di
je 0x4f990f
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x4f98fe
mov ecx, 0x538640
push ecx
push edi
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x4f991b
mov ecx, 0x538640
mov dword [ebp - 0x14], edi
cmp dword [esi + 8], edi
jle 0x4f9949
cmp ecx, edi
je 0x4f9949
cmp word [ecx], di
je 0x4f9949
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4f9938
mov eax, 0x538640
push eax
push edi
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x4f9955
mov ecx, 0x538640
mov dword [ebp - 0x18], edi
cmp dword [esi + 8], edi
jle 0x4f9983
cmp ecx, edi
je 0x4f9983
cmp word [ecx], di
je 0x4f9983
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4f9972
mov eax, 0x538640
push eax
push edi
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x4f998f
mov ecx, 0x538640
mov dword [ebp - 0x1c], edi
cmp dword [esi + 8], edi
jle 0x4f99bd
cmp ecx, edi
je 0x4f99bd
cmp word [ecx], di
je 0x4f99bd
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4f99ac
mov eax, 0x538640
push eax
push edi
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push 0x2af8
lea ecx, [ebp - 0x34]
push ecx
mov ecx, 0x55a400
mov dword [esi + 0x268], eax
call fcn.00467b90
mov dword [ebp - 4], edi
mov ebx, dword [ebp - 0x34]
cmp ebx, edi
jne 0x4f99e8
mov ebx, 0x538640
push 0x754b
lea edx, [ebp - 0x28]
push edx
mov ecx, 0x55a400
mov byte [ebp - 0x4c], 1
mov edi, 0xffffff
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x3c], 0
call fcn.00467b90
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4f9a1c
mov eax, 0x538640
add esi, 0xb0
push eax
lea eax, [esi + 0x64]
call fcn.004fcf00
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x50], ecx
mov ecx, dword [ebp - 0x1c]
push ecx
mov dword [esi + 0x54], edx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x3c]
push edx
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], 0x24
mov dword [esi + 0x5c], 1
call fcn.0046a1f0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
jle 0x4f9abf
mov ecx, dword [esi + 0x58]
cmp ecx, ebx
jle 0x4f9abf
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x4c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
mov ebx, ecx
xor eax, eax
mov edx, 0x198e
call fcn.004fdeb0
xor ebx, ebx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
mov dword [edx + 0xf8], ecx
cmp eax, ebx
je 0x4f9ae7
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4f9afe
push eax
call fcn.005134a7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14