Function at 0x50cb00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
test eax, eax
je 0x50cb16
cmp eax, 2
jne 0x50d006
mov eax, dword [edi + 0x30]
push esi
lea esi, [edi + 0x2c]
test eax, eax
je 0x50cb68
cmp dword [ebp + 8], 0
jle 0x50cb5a
test ebx, ebx
jle 0x50cb5a
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 0x50cb74
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 0x50cb74
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [esi + eax], 0x57
jmp 0x50cb74
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov dword [esi + edx], 6
cmp byte [edi + 0x3ce4], 0
jne 0x50cb93
mov edx, dword [edi + 0x3cdc]
mov eax, dword [ebp + 8]
push 1
lea esi, [edi + 0xaf4]
call fcn.005112b0
sub ebx, dword [edi + 0x3ce0]
lea ecx, [edi + 0x2664]
sub ebx, dword [edi + 0x3cdc]
mov esi, ebx
mov ebx, dword [ebp + 8]
push ebx
mov eax, esi
call fcn.0050ec70
lea eax, [edi + 0x4c]
push str.PrntPreView_InfoWnd
call fcn.004fcf00
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x50cbcb
mov eax, 0x538640
cmp dword [edi + 0x44], 0
mov dword [ebp - 0x10], 0
jle 0x50cc00
test eax, eax
je 0x50cc00
cmp word [eax], 0
je 0x50cc00
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x50cbee
mov ecx, 0x538640
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 0x50cc0c
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x50cc37
test ecx, ecx
je 0x50cc37
cmp word [ecx], ax
je 0x50cc37
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50cc28
mov eax, 0x538640
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub ebx, eax
mov eax, dword [edi + 0x3cdc]
add eax, esi
cmp byte [edi + 0x3ce4], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
lea eax, [edi + 0x4c]
je 0x50ccf0
push str.PrntPreViewInfo_PrntSheets_Text
call fcn.004fcf00
mov eax, dword [edi + 0x4c]
mov ecx, eax
test eax, eax
jne 0x50cc6f
mov ecx, 0x538640
xor ebx, ebx
cmp dword [edi + 0x44], ebx
jle 0x50cca0
test ecx, ecx
je 0x50cca0
cmp word [ecx], bx
je 0x50cca0
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50cc8b
mov eax, 0x538640
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push str.PosiX
push ecx
call esi
mov ebx, eax
jmp 0x50cca6
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x50ccb2
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x50ccd9
test ecx, ecx
je 0x50ccd9
cmp word [ecx], ax
je 0x50ccd9
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50ccce
mov eax, 0x538640
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.00511070
jmp 0x50cf79
push str.PrntPreViewInfo_FileNameText
call fcn.004fcf00
mov eax, dword [edi + 0x4c]
xor ebx, ebx
mov ecx, eax
cmp eax, ebx
jne 0x50cd0a
mov ecx, 0x538640
mov dword [ebp - 0xc], ebx
cmp dword [edi + 0x44], ebx
jle 0x50cd3c
cmp ecx, ebx
je 0x50cd3c
cmp word [ecx], bx
je 0x50cd3c
mov eax, dword [edi + 0x40]
cmp eax, ebx
jne 0x50cd27
mov eax, 0x538640
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 0x50cd42
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x4c]
cmp ecx, ebx
jne 0x50cd4e
mov ecx, 0x538640
mov dword [ebp - 8], ebx
cmp dword [edi + 0x44], ebx
jle 0x50cd78
cmp ecx, ebx
je 0x50cd78
cmp word [ecx], bx
je 0x50cd78
mov eax, dword [edi + 0x40]
cmp eax, ebx
jne 0x50cd6b
mov eax, 0x538640
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 0x50cd84
mov ecx, 0x538640
cmp dword [edi + 0x44], ebx
jle 0x50cdab
test ecx, ecx
je 0x50cdab
cmp word [ecx], bx
je 0x50cdab
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50cd9e
mov eax, 0x538640
push eax
push 0
push str.Width
push ecx
call esi
mov ebx, eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x50cdb7
mov ecx, 0x538640
xor esi, esi
cmp dword [edi + 0x44], esi
jle 0x50cde4
test ecx, ecx
je 0x50cde4
cmp word [ecx], si
je 0x50cde4
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50cdd3
mov eax, 0x538640
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.00511070
mov eax, dword [ebp - 4]
lea ecx, [ebx + eax]
lea eax, [edi + 0x114]
mov edx, esi
call fcn.004fdfc0
push str.PrntPreViewInfo_TiffPageText
lea eax, [edi + 0x4c]
call fcn.004fcf00
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x50ce2b
mov eax, 0x538640
cmp dword [edi + 0x44], 0
mov dword [ebp - 0x10], 0
jle 0x50ce60
test eax, eax
je 0x50ce60
cmp word [eax], 0
je 0x50ce60
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x50ce4e
mov ecx, 0x538640
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 0x50ce6c
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x50ce97
test ecx, ecx
je 0x50ce97
cmp word [ecx], ax
je 0x50ce97
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50ce88
mov eax, 0x538640
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.00511070
mov eax, dword [edi + 0x3cfc]
mov ecx, dword [edi + 0x3cf8]
mov edx, dword [edi + 0x3cf0]
push 1
push eax
mov eax, dword [edi + 0x3ce8]
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.004fcf00
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x50cef4
mov eax, 0x538640
xor esi, esi
cmp dword [edi + 0x44], esi
jle 0x50cf21
test eax, eax
je 0x50cf21
cmp word [eax], si
je 0x50cf21
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x50cf10
mov ecx, 0x538640
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 0x50cf2d
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x50cf58
test ecx, ecx
je 0x50cf58
cmp word [ecx], ax
je 0x50cf58
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50cf49
mov eax, 0x538640
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.00511070
mov esi, edi
call fcn.0050d450
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.PrntPreViewClose_BtnWnd
lea eax, [edi + 0x4c]
call fcn.004fcf00
mov eax, dword [edi + 0x4c]
mov ecx, eax
test eax, eax
jne 0x50cf94
mov ecx, 0x538640
xor ebx, ebx
cmp dword [edi + 0x44], ebx
jle 0x50cfbd
test ecx, ecx
je 0x50cfbd
cmp word [ecx], bx
je 0x50cfbd
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50cfb0
mov eax, 0x538640
push eax
push 0
push str.PosiX
push ecx
call esi
mov ebx, eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jne 0x50cfc9
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 0x44], eax
jle 0x50cff0
test ecx, ecx
je 0x50cff0
cmp word [ecx], ax
je 0x50cff0
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x50cfe5
mov eax, 0x538640
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.00511070
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4