Function at 0x4a3030
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b038
mov eax, dword fs:[0]
push eax
sub esp, 0x40
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 edi, ecx
lea ebx, [edi + 0x3c]
push ebx
mov ecx, 0x554c48
call fcn.00470260
push str.PhotoEditorPage_ViewArea_Text_Cmp
lea eax, [edi + 0x4c]
call fcn.005080c0
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4a3081
mov eax, 0x54ee24
cmp dword [ebx + 8], 0
mov dword [ebp - 0x10], 0
jle 0x4a30b6
test eax, eax
je 0x4a30b6
cmp word [eax], 0
je 0x4a30b6
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x4a30a4
mov ecx, 0x54ee24
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 0x4a30c2
mov ecx, 0x54ee24
xor esi, esi
cmp dword [ebx + 8], esi
jle 0x4a30ef
test ecx, ecx
je 0x4a30ef
cmp word [ecx], si
je 0x4a30ef
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4a30de
mov eax, 0x54ee24
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 0x4a30fb
mov ecx, 0x54ee24
cmp dword [ebx + 8], 0
mov dword [ebp - 0x14], 0
jle 0x4a3132
test ecx, ecx
je 0x4a3132
cmp word [ecx], 0
je 0x4a3132
mov ebx, dword [ebx + 4]
mov eax, ebx
test ebx, ebx
jne 0x4a3120
mov eax, 0x54ee24
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, 0x5776a0
mov dword [ebp - 0x18], ebx
mov dword [ebp + 0x10], esi
call fcn.00471380
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x4a3199
mov dword [ebp - 0x40], 0x54ee24
push 0x753e
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x5776a0
call fcn.00471380
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4a31bc
mov eax, 0x54ee24
lea esi, [edi + 0x5dc]
push eax
lea eax, [esi + 0x64]
call fcn.005080c0
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.00473690
mov byte [esi + 0x70], 0
mov byte [esi + 0x78], 0
mov eax, dword [esi + 0x54]
test eax, eax
jle 0x4a323a
mov ebx, dword [esi + 0x58]
test ebx, ebx
jle 0x4a323a
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.00509070
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, 0x5776a0
call fcn.00471380
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00508010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
xor esi, esi
cmp eax, esi
je 0x4a3287
push eax
call fcn.0051eadb
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 0x4a3293
mov eax, 0x54ee24
lea esi, [edi + 0x66c]
push eax
lea eax, [esi + 0x64]
call fcn.005080c0
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.00473690
xor ebx, ebx
mov byte [esi + 0x70], bl
mov byte [esi + 0x78], bl
mov eax, dword [esi + 0x54]
cmp eax, ebx
jle 0x4a3314
mov ecx, dword [esi + 0x58]
cmp ecx, ebx
jle 0x4a3314
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.00509070
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4a3330
push eax
call fcn.0051eadb
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 0x4a3347
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 0x10