Function at 0x518ce0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536800
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x2af8
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x5776a0
call fcn.00471480
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x518d30
mov dword [ebp - 0x38], 0x54ee24
push str.PrntPreView_InfoWnd
lea eax, [esi + 0x4c]
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x518d4b
mov ecx, 0x54ee24
mov dword [ebp - 0x10], ebx
cmp dword [esi + 0x44], ebx
jle 0x518d79
cmp ecx, ebx
je 0x518d79
cmp word [ecx], bx
je 0x518d79
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518d68
mov eax, 0x54ee24
push eax
push ebx
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518d85
mov ecx, 0x54ee24
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x44], ebx
jle 0x518db3
cmp ecx, ebx
je 0x518db3
cmp word [ecx], bx
je 0x518db3
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518da2
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 1
cmp byte [esi + 0x3e14], 0
lea eax, [esi + 0x4c]
je 0x518fae
push str.PrntPreViewInfo_PrntSheets_Text
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x518de8
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x44], ebx
jle 0x518e1a
cmp ecx, ebx
je 0x518e1a
cmp word [ecx], bx
je 0x518e1a
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518e05
mov eax, 0x54ee24
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push ebx
push str.PosiX
push ecx
call edi
mov dword [ebp - 0x18], eax
jmp 0x518e20
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518e2c
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x44], ebx
jle 0x518e56
cmp ecx, ebx
je 0x518e56
cmp word [ecx], bx
je 0x518e56
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518e49
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call edi
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518e62
mov ecx, 0x54ee24
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x44], ebx
jle 0x518e8c
cmp ecx, ebx
je 0x518e8c
cmp word [ecx], bx
je 0x518e8c
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518e7f
mov eax, 0x54ee24
push eax
push ebx
push str.Width
push ecx
call edi
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518e98
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], ebx
jle 0x518ec4
cmp ecx, ebx
je 0x518ec4
cmp word [ecx], bx
je 0x518ec4
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518eb4
mov eax, 0x54ee24
push eax
push ebx
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518ed0
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x518efd
test ecx, ecx
je 0x518efd
cmp word [ecx], bx
je 0x518efd
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x518eec
mov eax, 0x54ee24
push eax
push 0
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x754b
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00508010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x518f30
push eax
call fcn.0051ebab
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x518f3c
mov eax, 0x54ee24
push eax
lea eax, [esi + 0x298]
call fcn.005080c0
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
push 0
push 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x284], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x280], edx
push ecx
lea edx, [esi + 0x270]
push edx
mov dword [esi + 0x288], eax
mov dword [esi + 0x28c], edi
mov dword [esi + 0x294], 0x24
mov dword [esi + 0x290], 1
call fcn.00473a60
mov byte [esi + 0x2a4], 0
mov byte [esi + 0x2ac], 0
jmp 0x51948a
push str.PrntPreViewInfo_ScaleText
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x518fc6
mov ecx, 0x54ee24
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x44], ebx
jle 0x518ff8
cmp ecx, ebx
je 0x518ff8
cmp word [ecx], bx
je 0x518ff8
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518fe3
mov eax, 0x54ee24
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push ebx
push str.PosiX
push ecx
call edi
mov dword [ebp - 0x20], eax
jmp 0x518ffe
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x51900a
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x44], ebx
jle 0x519034
cmp ecx, ebx
je 0x519034
cmp word [ecx], bx
je 0x519034
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x519027
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call edi
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x519040
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x44], ebx
jle 0x51906a
cmp ecx, ebx
je 0x51906a
cmp word [ecx], bx
je 0x51906a
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x51905d
mov eax, 0x54ee24
push eax
push ebx
push str.Width
push ecx
call edi
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x519076
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], edi
jle 0x5190a3
test ecx, ecx
je 0x5190a3
cmp word [ecx], di
je 0x5190a3
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x519092
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x5190af
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x5190dc
test ecx, ecx
je 0x5190dc
cmp word [ecx], bx
je 0x5190dc
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5190cb
mov eax, 0x54ee24
push eax
push 0
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x54ee24
lea eax, [esi + 0xe8]
call fcn.005080c0
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push 0
push 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0xd4], edx
mov edx, dword [ebp - 0x38]
mov dword [esi + 0xd0], eax
push edx
lea eax, [esi + 0xc0]
push eax
mov dword [esi + 0xd8], ecx
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe4], 0x26
mov dword [esi + 0xe0], 1
call fcn.00473a60
push str.PrntPreViewInfo_FileNameText
lea eax, [esi + 0x4c]
mov byte [esi + 0xf4], 0
mov byte [esi + 0xfc], 0
call fcn.005080c0
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x519166
mov eax, 0x54ee24
xor edi, edi
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x44], edi
jle 0x51919a
cmp eax, edi
je 0x51919a
cmp word [eax], di
je 0x51919a
mov ecx, dword [esi + 0x40]
cmp ecx, edi
jne 0x519185
mov ecx, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push edi
push str.PosiX
push eax
call ebx
mov dword [ebp - 0x20], eax
jmp 0x5191a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x5191ac
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], edi
cmp dword [esi + 0x44], edi
jle 0x5191d6
cmp ecx, edi
je 0x5191d6
cmp word [ecx], di
je 0x5191d6
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5191c9
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x5191e2
mov ecx, 0x54ee24
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x44], edi
jle 0x51920c
cmp ecx, edi
je 0x51920c
cmp word [ecx], di
je 0x51920c
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5191ff
mov eax, 0x54ee24
push eax
push edi
push str.Width
push ecx
call ebx
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x519218
mov ecx, 0x54ee24
cmp dword [esi + 0x44], edi
jle 0x51923f
test ecx, ecx
je 0x51923f
cmp word [ecx], di
je 0x51923f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x519232
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call ebx
mov edi, eax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x51924b
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x519278
test ecx, ecx
je 0x519278
cmp word [ecx], bx
je 0x519278
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x519267
mov eax, 0x54ee24
push eax
push 0
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x54ee24
lea eax, [esi + 0x178]
call fcn.005080c0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push 0
push 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x164], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x160], ecx
push eax
lea ecx, [esi + 0x150]
push ecx
mov dword [esi + 0x168], edx
mov dword [esi + 0x16c], edi
mov dword [esi + 0x174], 0x40025
mov dword [esi + 0x170], 1
call fcn.00473a60
push str.PrntPreViewInfo_TiffPageText
lea eax, [esi + 0x4c]
mov byte [esi + 0x184], 0
mov byte [esi + 0x18c], 0
call fcn.005080c0
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x519302
mov eax, 0x54ee24
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x44], ebx
jle 0x519336
cmp eax, ebx
je 0x519336
cmp word [eax], bx
je 0x519336
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
jne 0x519321
mov ecx, 0x54ee24
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push ebx
push str.PosiX
push eax
call edi
mov dword [ebp - 0x20], eax
jmp 0x51933c
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x519348
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x44], ebx
jle 0x519372
cmp ecx, ebx
je 0x519372
cmp word [ecx], bx
je 0x519372
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x519365
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call edi
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x51937e
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x44], ebx
jle 0x5193a8
cmp ecx, ebx
je 0x5193a8
cmp word [ecx], bx
je 0x5193a8
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x51939b
mov eax, 0x54ee24
push eax
push ebx
push str.Width
push ecx
call edi
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x5193b4
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], ebx
jle 0x5193e0
cmp ecx, ebx
je 0x5193e0
cmp word [ecx], bx
je 0x5193e0
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x5193d0
mov eax, 0x54ee24
push eax
push ebx
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x5193ec
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x519419
test ecx, ecx
je 0x519419
cmp word [ecx], bx
je 0x519419
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x519408
mov eax, 0x54ee24
push eax
push 0
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x54ee24
lea eax, [esi + 0x208]
call fcn.005080c0
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
push 0
push 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x1f4], edx
mov dword [esi + 0x1f0], eax
mov eax, dword [ebp - 0x18]
push ecx
lea edx, [esi + 0x1e0]
push edx
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], edi
mov dword [esi + 0x204], 0x24
mov dword [esi + 0x200], 1
call fcn.00473a60
xor al, al
mov byte [esi + 0x214], al
mov byte [esi + 0x21c], al
push str.PrntPreViewClose_BtnText
lea eax, [esi + 0x4c]
xor edi, edi
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, edi
jne 0x5194a7
mov ecx, 0x54ee24
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x44], edi
jle 0x5194d9
cmp ecx, edi
je 0x5194d9
cmp word [ecx], di
je 0x5194d9
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5194c4
mov eax, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push edi
push str.PosiX
push ecx
call ebx
mov dword [ebp - 0x20], eax
jmp 0x5194df
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x5194eb
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], edi
cmp dword [esi + 0x44], edi
jle 0x519515
cmp ecx, edi
je 0x519515
cmp word [ecx], di
je 0x519515
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x519508
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x519521
mov ecx, 0x54ee24
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x44], edi
jle 0x51954b
cmp ecx, edi
je 0x51954b
cmp word [ecx], di
je 0x51954b
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x51953e
mov eax, 0x54ee24
push eax
push edi
push str.Width
push ecx
call ebx
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x519557
mov ecx, 0x54ee24
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x44], edi
jle 0x519581
cmp ecx, edi
je 0x519581
cmp word [ecx], di
je 0x519581
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x519574
mov eax, 0x54ee24
push eax
push edi
push str.Height
push ecx
call ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x51958d
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], edi
jle 0x5195b9
cmp ecx, edi
je 0x5195b9
cmp word [ecx], di
je 0x5195b9
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5195a9
mov eax, 0x54ee24
push eax
push edi
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x80ff
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00508010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, edi
je 0x5195f5
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x2c]
mov eax, edi
test edi, edi
jne 0x519603
mov eax, 0x54ee24
push eax
lea eax, [esi + 0x8bc]
mov byte [esi + 0x9e0], 1
call fcn.005080c0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push 0
push 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x8a8], edx
mov edx, dword [ebp - 0x38]
mov dword [esi + 0x8ac], eax
mov dword [esi + 0x8a4], ecx
mov ecx, dword [ebp - 0x14]
push edx
lea eax, [esi + 0x894]
push eax
mov dword [esi + 0x8b0], ecx
mov dword [esi + 0x8b8], 0x15
mov dword [esi + 0x8b4], 1
call fcn.00473a60
xor ebx, ebx
mov byte [esi + 0x8c8], bl
mov byte [esi + 0x8d0], bl
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x519684
push edi
call fcn.0051ebab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x51969b
push eax
call fcn.0051ebab
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4