Function at 0x517d40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
test eax, eax
je 0x517d56
cmp eax, 2
jne 0x518246
mov eax, dword [edi + 0x30]
push esi
lea esi, [edi + 0x2c]
test eax, eax
je 0x517da8
cmp dword [ebp + 8], 0
jle 0x517d9a
test ebx, ebx
jle 0x517d9a
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 0x517db4
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 0x517db4
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [esi + eax], 0x57
jmp 0x517db4
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov dword [esi + edx], 6
cmp byte [edi + 0x3e14], 0
jne 0x517dd3
mov edx, dword [edi + 0x3e0c]
mov eax, dword [ebp + 8]
push 1
lea esi, [edi + 0xaf4]
call fcn.0051c4f0
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.00519eb0
lea eax, [edi + 0x4c]
push str.PrntPreView_InfoWnd
call fcn.005080c0
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x517e0b
mov eax, 0x54ee24
cmp dword [edi + 0x44], 0
mov dword [ebp - 0x10], 0
jle 0x517e40
test eax, eax
je 0x517e40
cmp word [eax], 0
je 0x517e40
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x517e2e
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 0x517e4c
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x517e77
test ecx, ecx
je 0x517e77
cmp word [ecx], ax
je 0x517e77
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x517e68
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 0x517f30
push str.PrntPreViewInfo_PrntSheets_Text
call fcn.005080c0
mov eax, dword [edi + 0x4c]
mov ecx, eax
test eax, eax
jne 0x517eaf
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [edi + 0x44], ebx
jle 0x517ee0
test ecx, ecx
je 0x517ee0
cmp word [ecx], bx
je 0x517ee0
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x517ecb
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 0x517ee6
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x517ef2
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x517f19
test ecx, ecx
je 0x517f19
cmp word [ecx], ax
je 0x517f19
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x517f0e
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.0051c2b0
jmp 0x5181b9
push str.PrntPreViewInfo_FileNameText
call fcn.005080c0
mov eax, dword [edi + 0x4c]
xor ebx, ebx
mov ecx, eax
cmp eax, ebx
jne 0x517f4a
mov ecx, 0x54ee24
mov dword [ebp - 0xc], ebx
cmp dword [edi + 0x44], ebx
jle 0x517f7c
cmp ecx, ebx
je 0x517f7c
cmp word [ecx], bx
je 0x517f7c
mov eax, dword [edi + 0x40]
cmp eax, ebx
jne 0x517f67
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 0x517f82
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x4c]
cmp ecx, ebx
jne 0x517f8e
mov ecx, 0x54ee24
mov dword [ebp - 8], ebx
cmp dword [edi + 0x44], ebx
jle 0x517fb8
cmp ecx, ebx
je 0x517fb8
cmp word [ecx], bx
je 0x517fb8
mov eax, dword [edi + 0x40]
cmp eax, ebx
jne 0x517fab
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 0x517fc4
mov ecx, 0x54ee24
cmp dword [edi + 0x44], ebx
jle 0x517feb
test ecx, ecx
je 0x517feb
cmp word [ecx], bx
je 0x517feb
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x517fde
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 0x517ff7
mov ecx, 0x54ee24
xor esi, esi
cmp dword [edi + 0x44], esi
jle 0x518024
test ecx, ecx
je 0x518024
cmp word [ecx], si
je 0x518024
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x518013
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.0051c2b0
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 0x51806b
mov eax, 0x54ee24
cmp dword [edi + 0x44], 0
mov dword [ebp - 0x10], 0
jle 0x5180a0
test eax, eax
je 0x5180a0
cmp word [eax], 0
je 0x5180a0
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x51808e
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 0x5180ac
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x5180d7
test ecx, ecx
je 0x5180d7
cmp word [ecx], ax
je 0x5180d7
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x5180c8
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.0051c2b0
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 0x518134
mov eax, 0x54ee24
xor esi, esi
cmp dword [edi + 0x44], esi
jle 0x518161
test eax, eax
je 0x518161
cmp word [eax], si
je 0x518161
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x518150
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 0x51816d
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x518198
test ecx, ecx
je 0x518198
cmp word [ecx], ax
je 0x518198
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x518189
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.0051c2b0
mov esi, edi
call fcn.00518690
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 0x5181d4
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [edi + 0x44], ebx
jle 0x5181fd
test ecx, ecx
je 0x5181fd
cmp word [ecx], bx
je 0x5181fd
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x5181f0
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 0x518209
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x518230
test ecx, ecx
je 0x518230
cmp word [ecx], ax
je 0x518230
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x518225
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.0051c2b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4