Function at 0x5166d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539dd0
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, 0x554c48
call fcn.00470260
push str.PrntPreViewWnd_CaptionText
lea eax, [esi + 0x10]
call fcn.005080c0
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x516720
mov eax, 0x54ee24
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
jle 0x51674e
cmp eax, ebx
je 0x51674e
cmp word [eax], bx
je 0x51674e
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x51673d
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 0x51675a
mov ecx, 0x54ee24
mov dword [ebp - 0x14], ebx
cmp dword [esi + 8], ebx
jle 0x516788
cmp ecx, ebx
je 0x516788
cmp word [ecx], bx
je 0x516788
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x516777
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 0x516794
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 8], ebx
jle 0x5167c2
cmp ecx, ebx
je 0x5167c2
cmp word [ecx], bx
je 0x5167c2
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x5167b1
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 0x5167ce
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 8], ebx
jle 0x5167fc
cmp ecx, ebx
je 0x5167fc
cmp word [ecx], bx
je 0x5167fc
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x5167eb
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.00471380
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
cmp eax, ebx
jne 0x516823
mov dword [ebp - 0x44], 0x54ee24
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x51682f
mov ecx, 0x54ee24
mov dword [ebp - 0x20], ebx
cmp dword [esi + 8], ebx
jle 0x51685d
cmp ecx, ebx
je 0x51685d
cmp word [ecx], bx
je 0x51685d
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x51684c
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 0x5168b9
push 0xafcb
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x5776a0
call fcn.00471380
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 0x5168f6
push eax
call fcn.0051eadb
add esp, 4
jmp 0x5168f6
push 0xafd9
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x5776a0
call fcn.00471380
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 0x5168f6
push eax
call fcn.0051eadb
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 0x516902
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.00473690
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 0x51699e
mov ebx, dword [esi + 0x58]
test ebx, ebx
jle 0x51699e
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 0x5169b2
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x5169c9
push eax
call fcn.0051eadb
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