Function at 0x517e60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
test eax, eax
je 0x517e76
cmp eax, 2
jne 0x518366
mov eax, dword [edi + 0x30]
push esi
lea esi, [edi + 0x2c]
test eax, eax
je 0x517ec8
cmp dword [ebp + 8], 0
jle 0x517eba
test ebx, ebx
jle 0x517eba
mov ecx, dword [ebp + 8]
push 0xe
push ebx
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x517ed4
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x517ed4
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [esi + eax], 0x57
jmp 0x517ed4
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov dword [esi + edx], 6
cmp byte [edi + 0x3e14], 0
jne 0x517ef3
mov edx, dword [edi + 0x3e0c]
mov eax, dword [ebp + 8]
push 1
lea esi, [edi + 0xaf4]
call fcn.0051c5c0
sub ebx, dword [edi + 0x3e10]
lea ecx, [edi + 0x2794]
sub ebx, dword [edi + 0x3e0c]
mov esi, ebx
mov ebx, dword [ebp + 8]
push ebx
mov eax, esi
call fcn.00519fd0
lea eax, [edi + 0x4c]
push str.PrntPreView_InfoWnd
call fcn.005080c0
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x517f2b
mov eax, 0x54ee24
cmp dword [edi + 0x44], 0
mov dword [ebp - 0x10], 0
jle 0x517f60
test eax, eax
je 0x517f60
cmp word [eax], 0
je 0x517f60
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x517f4e
mov ecx, 0x54ee24
push ecx
push 0
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x517f6c
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x517f97
test ecx, ecx
je 0x517f97
cmp word [ecx], ax
je 0x517f97
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x517f88
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub ebx, eax
mov eax, dword [edi + 0x3e0c]
add eax, esi
cmp byte [edi + 0x3e14], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
lea eax, [edi + 0x4c]
je 0x518050
push str.PrntPreViewInfo_PrntSheets_Text
call fcn.005080c0
mov eax, dword [edi + 0x4c]
mov ecx, eax
test eax, eax
jne 0x517fcf
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [edi + 0x44], ebx
jle 0x518000
test ecx, ecx
je 0x518000
cmp word [ecx], bx
je 0x518000
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x517feb
mov eax, 0x54ee24
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push str.PosiX
push ecx
call esi
mov ebx, eax
jmp 0x518006
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x518012
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x518039
test ecx, ecx
je 0x518039
cmp word [ecx], ax
je 0x518039
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x51802e
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call esi
add eax, dword [ebp + 8]
push 1
push eax
push ebx
lea ecx, [edi + 0x260]
call fcn.0051c380
jmp 0x5182d9
push str.PrntPreViewInfo_FileNameText
call fcn.005080c0
mov eax, dword [edi + 0x4c]
xor ebx, ebx
mov ecx, eax
cmp eax, ebx
jne 0x51806a
mov ecx, 0x54ee24
mov dword [ebp - 0xc], ebx
cmp dword [edi + 0x44], ebx
jle 0x51809c
cmp ecx, ebx
je 0x51809c
cmp word [ecx], bx
je 0x51809c
mov eax, dword [edi + 0x40]
cmp eax, ebx
jne 0x518087
mov eax, 0x54ee24
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push ebx
push str.PosiX
push ecx
call esi
mov dword [ebp - 0xc], eax
jmp 0x5180a2
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x4c]
cmp ecx, ebx
jne 0x5180ae
mov ecx, 0x54ee24
mov dword [ebp - 8], ebx
cmp dword [edi + 0x44], ebx
jle 0x5180d8
cmp ecx, ebx
je 0x5180d8
cmp word [ecx], bx
je 0x5180d8
mov eax, dword [edi + 0x40]
cmp eax, ebx
jne 0x5180cb
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call esi
mov dword [ebp - 8], eax
mov ecx, dword [edi + 0x4c]
cmp ecx, ebx
jne 0x5180e4
mov ecx, 0x54ee24
cmp dword [edi + 0x44], ebx
jle 0x51810b
test ecx, ecx
je 0x51810b
cmp word [ecx], bx
je 0x51810b
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x5180fe
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call esi
mov ebx, eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x518117
mov ecx, 0x54ee24
xor esi, esi
cmp dword [edi + 0x44], esi
jle 0x518144
test ecx, ecx
je 0x518144
cmp word [ecx], si
je 0x518144
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x518133
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov edx, dword [ebp - 8]
add edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
push 1
push edx
push ecx
lea ecx, [edi + 0x140]
call fcn.0051c380
mov eax, dword [ebp - 4]
lea ecx, [ebx + eax]
lea eax, [edi + 0x114]
mov edx, esi
call fcn.00509180
push str.PrntPreViewInfo_TiffPageText
lea eax, [edi + 0x4c]
call fcn.005080c0
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x51818b
mov eax, 0x54ee24
cmp dword [edi + 0x44], 0
mov dword [ebp - 0x10], 0
jle 0x5181c0
test eax, eax
je 0x5181c0
cmp word [eax], 0
je 0x5181c0
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x5181ae
mov ecx, 0x54ee24
push ecx
push 0
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x5181cc
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x5181f7
test ecx, ecx
je 0x5181f7
cmp word [ecx], ax
je 0x5181f7
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x5181e8
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
lea esi, [eax + ecx]
push 1
push esi
add edx, ebx
push edx
lea ecx, [edi + 0x1d0]
call fcn.0051c380
mov eax, dword [edi + 0x3e2c]
mov ecx, dword [edi + 0x3e28]
mov edx, dword [edi + 0x3e20]
push 1
push eax
mov eax, dword [edi + 0x3e18]
push ecx
push esi
add edx, ebx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push str.PrntPreViewInfo_ScaleText
lea eax, [edi + 0x4c]
call fcn.005080c0
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x518254
mov eax, 0x54ee24
xor esi, esi
cmp dword [edi + 0x44], esi
jle 0x518281
test eax, eax
je 0x518281
cmp word [eax], si
je 0x518281
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x518270
mov ecx, 0x54ee24
push ecx
push 0
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x51828d
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x5182b8
test ecx, ecx
je 0x5182b8
cmp word [ecx], ax
je 0x5182b8
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x5182a9
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add eax, dword [ebp + 8]
push 1
push eax
add esi, ebx
push esi
lea ecx, [edi + 0xb0]
call fcn.0051c380
mov esi, edi
call fcn.005187b0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.PrntPreViewClose_BtnWnd
lea eax, [edi + 0x4c]
call fcn.005080c0
mov eax, dword [edi + 0x4c]
mov ecx, eax
test eax, eax
jne 0x5182f4
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [edi + 0x44], ebx
jle 0x51831d
test ecx, ecx
je 0x51831d
cmp word [ecx], bx
je 0x51831d
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x518310
mov eax, 0x54ee24
push eax
push 0
push str.PosiX
push ecx
call esi
mov ebx, eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x518329
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x518350
test ecx, ecx
je 0x518350
cmp word [ecx], ax
je 0x518350
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x518345
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call esi
add eax, dword [ebp + 8]
add ebx, dword [ebp - 4]
push 1
push eax
push ebx
lea ecx, [edi + 0x848]
call fcn.0051c380
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4