Function at 0x50b490
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52df70
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov ecx, 0x53b7a8
call fcn.00466b30
push str.PrntPreViewWnd_CaptionText
lea eax, [esi + 0x10]
call fcn.004fcf00
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x50b4e0
mov eax, 0x538640
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
jle 0x50b50e
cmp eax, ebx
je 0x50b50e
cmp word [eax], bx
je 0x50b50e
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x50b4fd
mov ecx, 0x538640
push ecx
push ebx
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x50b51a
mov ecx, 0x538640
mov dword [ebp - 0x14], ebx
cmp dword [esi + 8], ebx
jle 0x50b548
cmp ecx, ebx
je 0x50b548
cmp word [ecx], bx
je 0x50b548
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x50b537
mov eax, 0x538640
push eax
push ebx
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x50b554
mov ecx, 0x538640
mov dword [ebp - 0x18], ebx
cmp dword [esi + 8], ebx
jle 0x50b582
cmp ecx, ebx
je 0x50b582
cmp word [ecx], bx
je 0x50b582
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x50b571
mov eax, 0x538640
push eax
push ebx
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x50b58e
mov ecx, 0x538640
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 8], ebx
jle 0x50b5bc
cmp ecx, ebx
je 0x50b5bc
cmp word [ecx], bx
je 0x50b5bc
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x50b5ab
mov eax, 0x538640
push eax
push ebx
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x1c], eax
push 0x2af8
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x55a400
call fcn.00467b90
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
cmp eax, ebx
jne 0x50b5e3
mov dword [ebp - 0x44], 0x538640
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x50b5ef
mov ecx, 0x538640
mov dword [ebp - 0x20], ebx
cmp dword [esi + 8], ebx
jle 0x50b61d
cmp ecx, ebx
je 0x50b61d
cmp word [ecx], bx
je 0x50b61d
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x50b60c
mov eax, 0x538640
push eax
push ebx
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ebx, 1
mov byte [ebp - 0x68], bl
mov edi, 0xffffff
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], bl
cmp byte [ebp + 0x10], al
je 0x50b679
push 0xafcb
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004fce50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x50b6b6
push eax
call fcn.005134a7
add esp, 4
jmp 0x50b6b6
push 0xafd9
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004fce50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x50b6b6
push eax
call fcn.005134a7
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x50b6c2
mov eax, 0x538640
add esi, 0x20
push eax
lea eax, [esi + 0x64]
call fcn.004fcf00
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push 0
push 0
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x50], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x54], edx
mov edx, dword [ebp - 0x44]
push ecx
mov dword [esi + 0x58], eax
push edx
lea eax, [esi + 0x3c]
mov dword [esi + 0x5c], ebx
mov ebx, dword [ebp + 0xc]
push eax
mov dword [esi + 0x60], 0x24
call fcn.0046a1f0
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x70], ecx
mov ecx, dword [ebp - 0x58]
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edx
mov edx, dword [ebp - 0x54]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
mov eax, dword [esi + 0x54]
test eax, eax
jle 0x50b75e
mov ebx, dword [esi + 0x58]
test ebx, ebx
jle 0x50b75e
mov ecx, dword [esi + 0x4c]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
push esi
mov eax, 0x10000000
mov edx, 0x1966
call fcn.004fdeb0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x50b772
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x50b789
push eax
call fcn.005134a7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc