Function at 0x499850
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f128
mov eax, dword fs:[0]
push eax
sub esp, 0x40
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 edi, ecx
lea ebx, [edi + 0x3c]
push ebx
mov ecx, 0x53b7a8
call fcn.00466b30
push str.PhotoEditorPage_ViewArea_Text_Cmp
lea eax, [edi + 0x4c]
call fcn.004fcf00
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4998a1
mov eax, 0x538640
cmp dword [ebx + 8], 0
mov dword [ebp - 0x10], 0
jle 0x4998d6
test eax, eax
je 0x4998d6
cmp word [eax], 0
je 0x4998d6
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x4998c4
mov ecx, 0x538640
push ecx
push 0
push str.Height
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x4998e2
mov ecx, 0x538640
xor esi, esi
cmp dword [ebx + 8], esi
jle 0x49990f
test ecx, ecx
je 0x49990f
cmp word [ecx], si
je 0x49990f
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4998fe
mov eax, 0x538640
push eax
push 0
push str.TMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x49991b
mov ecx, 0x538640
cmp dword [ebx + 8], 0
mov dword [ebp - 0x14], 0
jle 0x499952
test ecx, ecx
je 0x499952
cmp word [ecx], 0
je 0x499952
mov ebx, dword [ebx + 4]
mov eax, ebx
test ebx, ebx
jne 0x499940
mov eax, 0x538640
push eax
push 0
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x38c4], eax
mov eax, dword [edi + 0x388c]
lea ecx, [eax + eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
sub eax, ecx
sub eax, dword [edi + 0x38c0]
mov dword [edi + 0x38c8], esi
sub esi, dword [edi + 0x38bc]
cdq
add esi, dword [ebp + 0x14]
sub eax, edx
mov ebx, eax
push 0x2af8
lea edx, [ebp - 0x4c]
sar ebx, 1
push edx
mov ecx, 0x55a400
mov dword [ebp - 0x18], ebx
mov dword [ebp + 0x10], esi
call fcn.00467b90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x4999b9
mov dword [ebp - 0x40], 0x538640
push 0x753e
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x55a400
call fcn.00467b90
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4999dc
mov eax, 0x538640
lea esi, [edi + 0x5dc]
push eax
lea eax, [esi + 0x64]
call fcn.004fcf00
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x4c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x50], edx
mov edx, dword [ebp - 0x40]
push ecx
mov dword [esi + 0x58], eax
push edx
lea eax, [esi + 0x3c]
mov dword [esi + 0x54], ebx
mov ebx, dword [ebp + 0xc]
push eax
mov dword [esi + 0x60], 0x25
mov dword [esi + 0x5c], 2
call fcn.0046a1f0
mov byte [esi + 0x70], 0
mov byte [esi + 0x78], 0
mov eax, dword [esi + 0x54]
test eax, eax
jle 0x499a5a
mov ebx, dword [esi + 0x58]
test ebx, ebx
jle 0x499a5a
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x4c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
push esi
xor eax, eax
mov edx, 0x19a3
call fcn.004fdeb0
mov ebx, dword [edi + 0x38c0]
add ebx, dword [edi + 0x388c]
push 0x753f
add ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push edx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004fce50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
xor esi, esi
cmp eax, esi
je 0x499aa7
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x499ab3
mov eax, 0x538640
lea esi, [edi + 0x66c]
push eax
lea eax, [esi + 0x64]
call fcn.004fcf00
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
push 0
push 0
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x14]
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 + 0x4c], ebx
push edx
mov ebx, edi
mov dword [esi + 0x60], 0x25
mov dword [esi + 0x5c], 2
call fcn.0046a1f0
xor ebx, ebx
mov byte [esi + 0x70], bl
mov byte [esi + 0x78], bl
mov eax, dword [esi + 0x54]
cmp eax, ebx
jle 0x499b34
mov ecx, dword [esi + 0x58]
cmp ecx, ebx
jle 0x499b34
mov edx, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [ebp + 8]
push edx
push edi
push eax
push esi
mov ebx, ecx
xor eax, eax
mov edx, 0x19a4
call fcn.004fdeb0
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x499b50
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x499b67
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 0x10