Function at 0x45beb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x3c]
push esi
mov ecx, 0x554c48
call fcn.00470260
xor edi, edi
cmp byte [ebp + 0x10], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 4], eax
je 0x45bedf
push str.PhotoEditorPage_Mini_EnhcFncArea
jmp 0x45bee4
push str.PhotoEditorPage_EnhcFncArea
call fcn.005080c0
mov eax, dword [esi + 0x10]
mov ecx, eax
cmp eax, edi
jne 0x45bef7
mov ecx, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], edi
cmp dword [esi + 8], edi
jle 0x45bf27
cmp ecx, edi
je 0x45bf27
cmp word [ecx], di
je 0x45bf27
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x45bf1a
mov eax, 0x54ee24
push eax
push edi
push str.PosiX
push ecx
call ebx
mov dword [ebp - 8], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x45bf33
mov ecx, 0x54ee24
mov dword [ebp - 0xc], edi
cmp dword [esi + 8], edi
jle 0x45bf5d
cmp ecx, edi
je 0x45bf5d
cmp word [ecx], di
je 0x45bf5d
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x45bf50
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x45bf69
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], edi
jle 0x45bf8f
cmp ecx, edi
je 0x45bf8f
cmp word [ecx], di
je 0x45bf8f
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x45bf85
mov eax, 0x54ee24
push eax
push edi
push str.OffsetY
push ecx
call ebx
cmp byte [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x408], eax
mov eax, dword [ebp - 4]
je 0x45bfa8
push str.PhotoEditorPage_Mini_EnhcPict
jmp 0x45bfad
push str.PhotoEditorPage_EnhcPict
call fcn.005080c0
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x45bfbe
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 8], edi
jle 0x45bfea
cmp ecx, edi
je 0x45bfea
cmp word [ecx], di
je 0x45bfea
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x45bfda
mov eax, 0x54ee24
push eax
push edi
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x45bff6
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 8], edi
jle 0x45c023
test ecx, ecx
je 0x45c023
cmp word [ecx], di
je 0x45c023
mov eax, dword [esi + 4]
test eax, eax
jne 0x45c012
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x45c02f
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x45c05a
test ecx, ecx
je 0x45c05a
cmp word [ecx], ax
je 0x45c05a
mov eax, dword [esi + 4]
test eax, eax
jne 0x45c04b
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
mov dword [edx + 0x400], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x45c071
mov ecx, 0x54ee24
xor eax, eax
cmp dword [esi + 8], eax
jle 0x45c09f
test ecx, ecx
je 0x45c09f
cmp word [ecx], ax
je 0x45c09f
mov eax, dword [esi + 4]
test eax, eax
jne 0x45c08d
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
add ebx, dword [ebp - 8]
add edi, dword [ebp - 0xc]
mov dword [edx + 0x3f8], ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edx + 0x404], eax
mov dword [edx + 0x3fc], edi
mov eax, dword [0x577698]
test eax, eax
je 0x45c1ca
push 0x80
push 0
push 0
push 0
push 0xc7be
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x45c0f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x45c115
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xa4
call fcn.00475200
test eax, eax
je 0x45c10e
mov eax, esi
call fcn.00475290
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x577698]
test eax, eax
je 0x45c1d9
push 0x80
push 0
push 0
push 0
push 0xc7bf
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x45c14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x45c16d
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xc4
call fcn.00475200
test eax, eax
je 0x45c166
mov eax, esi
call fcn.00475290
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x577698]
test eax, eax
je 0x45c1e5
push 0x80
push 0
push 0
push 0
push 0xc7c0
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x45c19e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
test edi, edi
je 0x45c1c1
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0xe4
call fcn.00475200
test eax, eax
je 0x45c1ba
mov eax, esi
call fcn.00475290
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x57768c], 0x57
jmp 0x45c11a
mov dword [0x57768c], 0x57
jmp 0x45c172
pop edi
pop esi
mov dword [0x57768c], 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0xc