Function at 0x5167f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539f30
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov ecx, 0x554c58
call fcn.00470370
push str.PrntPreViewWnd_CaptionText
lea eax, [esi + 0x10]
call fcn.005080c0
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x516840
mov eax, 0x54ee24
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
jle 0x51686e
cmp eax, ebx
je 0x51686e
cmp word [eax], bx
je 0x51686e
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x51685d
mov ecx, 0x54ee24
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 0x51687a
mov ecx, 0x54ee24
mov dword [ebp - 0x14], ebx
cmp dword [esi + 8], ebx
jle 0x5168a8
cmp ecx, ebx
je 0x5168a8
cmp word [ecx], bx
je 0x5168a8
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x516897
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 ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x5168b4
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 8], ebx
jle 0x5168e2
cmp ecx, ebx
je 0x5168e2
cmp word [ecx], bx
je 0x5168e2
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x5168d1
mov eax, 0x54ee24
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 0x5168ee
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 8], ebx
jle 0x51691c
cmp ecx, ebx
je 0x51691c
cmp word [ecx], bx
je 0x51691c
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x51690b
mov eax, 0x54ee24
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, 0x5776a0
call fcn.00471480
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
cmp eax, ebx
jne 0x516943
mov dword [ebp - 0x44], 0x54ee24
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x51694f
mov ecx, 0x54ee24
mov dword [ebp - 0x20], ebx
cmp dword [esi + 8], ebx
jle 0x51697d
cmp ecx, ebx
je 0x51697d
cmp word [ecx], bx
je 0x51697d
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x51696c
mov eax, 0x54ee24
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 0x5169d9
push 0xafcb
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00508010
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x516a16
push eax
call fcn.0051ebab
add esp, 4
jmp 0x516a16
push 0xafd9
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00508010
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x516a16
push eax
call fcn.0051ebab
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 0x516a22
mov eax, 0x54ee24
add esi, 0x20
push eax
lea eax, [esi + 0x64]
call fcn.005080c0
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.00473a60
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 0x516abe
mov ebx, dword [esi + 0x58]
test ebx, ebx
jle 0x516abe
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.00509070
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x516ad2
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x516ae9
push eax
call fcn.0051ebab
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