Function at 0x504f70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a140
mov eax, dword fs:[0]
push eax
sub esp, 0x58
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 ebx, dword [ebp + 8]
push ebx
mov ecx, 0x554c48
call fcn.00470260
push str.TiffPage_Text
lea eax, [ebx + 0x10]
call fcn.005080c0
mov eax, dword [ebx + 0x10]
xor edi, edi
cmp eax, edi
jne 0x504fc1
mov eax, 0x54ee24
mov dword [ebp - 0x10], edi
cmp dword [ebx + 8], edi
jle 0x504fef
cmp eax, edi
je 0x504fef
cmp word [eax], di
je 0x504fef
mov ecx, dword [ebx + 4]
cmp ecx, edi
jne 0x504fde
mov ecx, 0x54ee24
push ecx
push edi
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 0x10]
cmp ecx, edi
jne 0x504ffb
mov ecx, 0x54ee24
mov dword [ebp - 0x14], edi
cmp dword [ebx + 8], edi
jle 0x505029
cmp ecx, edi
je 0x505029
cmp word [ecx], di
je 0x505029
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x505018
mov eax, 0x54ee24
push eax
push edi
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0x10]
cmp ecx, edi
jne 0x505035
mov ecx, 0x54ee24
mov dword [ebp - 0x18], edi
cmp dword [ebx + 8], edi
jle 0x505063
cmp ecx, edi
je 0x505063
cmp word [ecx], di
je 0x505063
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x505052
mov eax, 0x54ee24
push eax
push edi
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebx + 0x10]
cmp ecx, edi
jne 0x50506f
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 8], edi
jle 0x50509d
cmp ecx, edi
je 0x50509d
cmp word [ecx], di
je 0x50509d
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x50508c
mov eax, 0x54ee24
push eax
push edi
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push 0x2af8
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, 0x5776a0
mov dword [ebx + 0x270], eax
call fcn.00471380
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
cmp eax, edi
jne 0x5050cd
mov dword [ebp - 0x40], 0x54ee24
mov ebx, 1
push 0x54ee24
mov byte [ebp - 0x64], bl
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
xor eax, eax
cmp esi, eax
jle 0x505139
mov ecx, esi
lea ebx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00507c00
mov edi, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov ebx, 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
test edi, edi
je 0x505139
lea ecx, [esi + 1]
push ecx
push 0x54ee24
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], bl
mov eax, edi
test edi, edi
jne 0x505147
mov eax, 0x54ee24
mov esi, dword [ebp + 8]
add esi, 0x1d0
push eax
lea eax, [esi + 0x64]
call fcn.005080c0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 0
push 0
mov dword [esi + 0x4c], edx
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x54], ecx
mov ecx, dword [ebp - 0x40]
push eax
mov dword [esi + 0x58], edx
push ecx
lea edx, [esi + 0x3c]
mov dword [esi + 0x5c], ebx
mov ebx, dword [ebp + 0x10]
push edx
mov dword [esi + 0x60], 0x24
call fcn.00473690
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov dword [esi + 0x70], eax
mov eax, 0xffffff
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x78], ecx
mov ecx, dword [ebp - 0x50]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
mov eax, dword [esi + 0x54]
test eax, eax
jle 0x5051eb
mov ebx, dword [esi + 0x58]
test ebx, ebx
jle 0x5051eb
mov edx, dword [esi + 0x50]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [esi + 0x4c]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
push esi
xor eax, eax
mov edx, 0x19a2
call fcn.00509070
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x218], eax
mov byte [ebp - 4], 0
test edi, edi
je 0x505208
push edi
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x50521f
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 0x14