Function at 0x518bc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536730
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.00471380
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x518c10
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 0x518c2b
mov ecx, 0x54ee24
mov dword [ebp - 0x10], ebx
cmp dword [esi + 0x44], ebx
jle 0x518c59
cmp ecx, ebx
je 0x518c59
cmp word [ecx], bx
je 0x518c59
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518c48
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 0x518c65
mov ecx, 0x54ee24
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x44], ebx
jle 0x518c93
cmp ecx, ebx
je 0x518c93
cmp word [ecx], bx
je 0x518c93
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518c82
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 0x518e8e
push str.PrntPreViewInfo_PrntSheets_Text
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x518cc8
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x44], ebx
jle 0x518cfa
cmp ecx, ebx
je 0x518cfa
cmp word [ecx], bx
je 0x518cfa
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518ce5
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 0x518d00
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518d0c
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x44], ebx
jle 0x518d36
cmp ecx, ebx
je 0x518d36
cmp word [ecx], bx
je 0x518d36
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518d29
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 0x518d42
mov ecx, 0x54ee24
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x44], ebx
jle 0x518d6c
cmp ecx, ebx
je 0x518d6c
cmp word [ecx], bx
je 0x518d6c
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518d5f
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 0x518d78
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], ebx
jle 0x518da4
cmp ecx, ebx
je 0x518da4
cmp word [ecx], bx
je 0x518da4
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518d94
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 0x518db0
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x518ddd
test ecx, ecx
je 0x518ddd
cmp word [ecx], bx
je 0x518ddd
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x518dcc
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.00471380
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 0x518e10
push eax
call fcn.0051eadb
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x518e1c
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.00473690
mov byte [esi + 0x2a4], 0
mov byte [esi + 0x2ac], 0
jmp 0x51936a
push str.PrntPreViewInfo_ScaleText
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x518ea6
mov ecx, 0x54ee24
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x44], ebx
jle 0x518ed8
cmp ecx, ebx
je 0x518ed8
cmp word [ecx], bx
je 0x518ed8
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518ec3
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 0x518ede
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518eea
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x44], ebx
jle 0x518f14
cmp ecx, ebx
je 0x518f14
cmp word [ecx], bx
je 0x518f14
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518f07
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 0x518f20
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x44], ebx
jle 0x518f4a
cmp ecx, ebx
je 0x518f4a
cmp word [ecx], bx
je 0x518f4a
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518f3d
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 0x518f56
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], edi
jle 0x518f83
test ecx, ecx
je 0x518f83
cmp word [ecx], di
je 0x518f83
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x518f72
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 0x518f8f
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x518fbc
test ecx, ecx
je 0x518fbc
cmp word [ecx], bx
je 0x518fbc
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x518fab
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.00473690
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 0x519046
mov eax, 0x54ee24
xor edi, edi
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x44], edi
jle 0x51907a
cmp eax, edi
je 0x51907a
cmp word [eax], di
je 0x51907a
mov ecx, dword [esi + 0x40]
cmp ecx, edi
jne 0x519065
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 0x519080
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x51908c
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], edi
cmp dword [esi + 0x44], edi
jle 0x5190b6
cmp ecx, edi
je 0x5190b6
cmp word [ecx], di
je 0x5190b6
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5190a9
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 0x5190c2
mov ecx, 0x54ee24
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x44], edi
jle 0x5190ec
cmp ecx, edi
je 0x5190ec
cmp word [ecx], di
je 0x5190ec
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5190df
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 0x5190f8
mov ecx, 0x54ee24
cmp dword [esi + 0x44], edi
jle 0x51911f
test ecx, ecx
je 0x51911f
cmp word [ecx], di
je 0x51911f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x519112
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 0x51912b
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x519158
test ecx, ecx
je 0x519158
cmp word [ecx], bx
je 0x519158
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x519147
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.00473690
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 0x5191e2
mov eax, 0x54ee24
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x44], ebx
jle 0x519216
cmp eax, ebx
je 0x519216
cmp word [eax], bx
je 0x519216
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
jne 0x519201
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 0x51921c
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x519228
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x44], ebx
jle 0x519252
cmp ecx, ebx
je 0x519252
cmp word [ecx], bx
je 0x519252
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x519245
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 0x51925e
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x44], ebx
jle 0x519288
cmp ecx, ebx
je 0x519288
cmp word [ecx], bx
je 0x519288
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x51927b
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 0x519294
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], ebx
jle 0x5192c0
cmp ecx, ebx
je 0x5192c0
cmp word [ecx], bx
je 0x5192c0
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x5192b0
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 0x5192cc
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x5192f9
test ecx, ecx
je 0x5192f9
cmp word [ecx], bx
je 0x5192f9
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5192e8
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.00473690
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 0x519387
mov ecx, 0x54ee24
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x44], edi
jle 0x5193b9
cmp ecx, edi
je 0x5193b9
cmp word [ecx], di
je 0x5193b9
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5193a4
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 0x5193bf
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x5193cb
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], edi
cmp dword [esi + 0x44], edi
jle 0x5193f5
cmp ecx, edi
je 0x5193f5
cmp word [ecx], di
je 0x5193f5
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x5193e8
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 0x519401
mov ecx, 0x54ee24
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x44], edi
jle 0x51942b
cmp ecx, edi
je 0x51942b
cmp word [ecx], di
je 0x51942b
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x51941e
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 0x519437
mov ecx, 0x54ee24
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x44], edi
jle 0x519461
cmp ecx, edi
je 0x519461
cmp word [ecx], di
je 0x519461
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x519454
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 0x51946d
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], edi
jle 0x519499
cmp ecx, edi
je 0x519499
cmp word [ecx], di
je 0x519499
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x519489
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.00471380
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 0x5194d5
push eax
call fcn.0051eadb
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 0x5194e3
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.00473690
xor ebx, ebx
mov byte [esi + 0x8c8], bl
mov byte [esi + 0x8d0], bl
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x519564
push edi
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x51957b
push eax
call fcn.0051eadb
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