Function at 0x4f9db0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
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 ebx, dword [ebp + 8]
push ebx
mov ecx, 0x53b7a8
call fcn.00466b30
push str.TiffPage_Text
lea eax, [ebx + 0x10]
call fcn.004fcf00
mov eax, dword [ebx + 0x10]
xor edi, edi
cmp eax, edi
jne 0x4f9e01
mov eax, 0x538640
mov dword [ebp - 0x10], edi
cmp dword [ebx + 8], edi
jle 0x4f9e2f
cmp eax, edi
je 0x4f9e2f
cmp word [eax], di
je 0x4f9e2f
mov ecx, dword [ebx + 4]
cmp ecx, edi
jne 0x4f9e1e
mov ecx, 0x538640
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 0x4f9e3b
mov ecx, 0x538640
mov dword [ebp - 0x14], edi
cmp dword [ebx + 8], edi
jle 0x4f9e69
cmp ecx, edi
je 0x4f9e69
cmp word [ecx], di
je 0x4f9e69
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x4f9e58
mov eax, 0x538640
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 0x4f9e75
mov ecx, 0x538640
mov dword [ebp - 0x18], edi
cmp dword [ebx + 8], edi
jle 0x4f9ea3
cmp ecx, edi
je 0x4f9ea3
cmp word [ecx], di
je 0x4f9ea3
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x4f9e92
mov eax, 0x538640
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 0x4f9eaf
mov ecx, 0x538640
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 8], edi
jle 0x4f9edd
cmp ecx, edi
je 0x4f9edd
cmp word [ecx], di
je 0x4f9edd
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x4f9ecc
mov eax, 0x538640
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, 0x55a400
mov dword [ebx + 0x270], eax
call fcn.00467b90
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
cmp eax, edi
jne 0x4f9f0d
mov dword [ebp - 0x40], 0x538640
mov ebx, 1
push 0x538640
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 0x4f9f79
mov ecx, esi
lea ebx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.004fca40
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 0x4f9f79
lea ecx, [esi + 1]
push ecx
push 0x538640
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 0x4f9f87
mov eax, 0x538640
mov esi, dword [ebp + 8]
add esi, 0x1d0
push eax
lea eax, [esi + 0x64]
call fcn.004fcf00
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.0046a1f0
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 0x4fa02b
mov ebx, dword [esi + 0x58]
test ebx, ebx
jle 0x4fa02b
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.004fdeb0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x218], eax
mov byte [ebp - 4], 0
test edi, edi
je 0x4fa048
push edi
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4fa05f
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 0x14