Function at 0x498e40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f160
mov eax, dword fs:[0]
push eax
sub esp, 0x38
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 eax, dword [0x55a418]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x498e7f.2
movzx eax, byte [eax + 0x499524]
jmp dword [eax*4 + 0x49951c]
mov byte [ebp - 0x10], 1
jmp 0x498e90
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push ecx
lea eax, [edi + 0x5c]
push edx
mov ecx, 0x40
mov dword [ebp - 0x24], eax
call fcn.005069b0
lea esi, [edi + 0x3c]
push esi
mov ecx, 0x53b7a8
mov dword [ebp - 0x2c], esi
call fcn.00466b30
lea eax, [edi + 0x4c]
push str.PhotoEditorPage_ViewScrlBtn
mov dword [ebp - 0x28], eax
call fcn.004fcf00
mov eax, dword [esi + 0x10]
mov ecx, eax
test eax, eax
jne 0x498edd
mov ecx, 0x538640
xor ebx, ebx
xor eax, eax
cmp dword [esi + 8], ebx
jle 0x498f09
cmp ecx, ebx
je 0x498f09
cmp word [ecx], bx
je 0x498f09
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x498efb
mov eax, 0x538640
push eax
push ebx
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x3890], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
cmp eax, ebx
jne 0x498f1d
mov ecx, 0x538640
xor eax, eax
cmp dword [esi + 8], ebx
jle 0x498f47
cmp ecx, ebx
je 0x498f47
cmp word [ecx], bx
je 0x498f47
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x498f39
mov eax, 0x538640
push eax
push ebx
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x3894], eax
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x498f59
mov eax, 0x538640
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
jle 0x498f87
cmp eax, ebx
je 0x498f87
cmp word [eax], bx
je 0x498f87
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x498f76
mov ecx, 0x538640
push ecx
push ebx
push str.LMargin
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x498f93
mov ecx, 0x538640
mov dword [ebp - 0x14], ebx
cmp dword [esi + 8], ebx
jle 0x498fc3
cmp ecx, ebx
je 0x498fc3
cmp word [ecx], bx
je 0x498fc3
mov esi, dword [esi + 4]
mov eax, esi
cmp esi, ebx
jne 0x498fb2
mov eax, 0x538640
push eax
push ebx
push str.RMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [edi + 0x3894]
mov dword [ebp + 0x18], ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x3898], eax
mov eax, dword [0x55a3f8]
cmp eax, ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
je 0x49901d
push 0x80
push 0
push 0
push 0
push 0xc94e
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x499013
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x55a3ec], eax
mov eax, dword [0x55a3f8]
mov dword [ebp + 0x18], esi
jmp 0x499027
mov dword [0x55a3ec], 0x57
mov dword [ebp - 0x18], 0
test eax, eax
je 0x499060
push 0x80
push 0
push 0
push 0
push 0xc94f
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x499056
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x55a3ec], eax
mov eax, dword [0x55a3f8]
mov dword [ebp - 0x18], esi
jmp 0x49906a
mov dword [0x55a3ec], 0x57
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4990a3
push 0x80
push 0
push 0
push 0
push 0xc950
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x499099
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x55a3ec], eax
mov eax, dword [0x55a3f8]
mov dword [ebp - 0x1c], esi
jmp 0x4990ad
mov dword [0x55a3ec], 0x57
xor edx, edx
test eax, eax
je 0x4990d8
push 0x80
push edx
push edx
push edx
push 0xc951
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4990d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x55a3ec], eax
mov edx, esi
jmp 0x4990e2
mov dword [0x55a3ec], 0x57
mov ecx, dword [edi + 0x3890]
mov eax, dword [edi + 0x3894]
mov ebx, dword [ebp + 0x18]
mov dword [edi + 0x258], ebx
mov ebx, dword [ebp - 0x18]
mov dword [edi + 0x25c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [edi + 0x2b4], ecx
mov dword [edi + 0x2c4], ecx
push 0x5211
lea ecx, [ebp - 0x38]
mov dword [edi + 0x260], ebx
xor ebx, ebx
push ecx
mov ecx, 0x55a400
mov dword [edi + 0x264], edx
mov byte [edi + 0x249], 1
mov dword [edi + 0x2ac], ebx
mov dword [edi + 0x2b0], ebx
mov dword [edi + 0x2b8], eax
mov dword [edi + 0x2bc], ebx
mov dword [edi + 0x2c0], ebx
mov dword [edi + 0x2c8], eax
call fcn.00467b90
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x244], ebx
cmp eax, ebx
jne 0x499170
mov eax, 0x538640
mov edx, dword [edi + 0x3894]
mov ecx, dword [edi + 0x3890]
push edx
mov edx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push eax
push 0x17f9
push edx
mov eax, 0x10000000
lea ecx, [edi + 0x84]
call fcn.00433520
mov ecx, dword [edi + 0xb4]
mov esi, eax
test ecx, ecx
je 0x4991bb
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4991cf
mov ecx, dword [edi + 0xb0]
mov ecx, dword [ecx + 4]
mov dword [ecx + edi + 0xb0], 6
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x4991db
mov edi, 0x538640
mov ecx, dword [ebp - 0x24]
call fcn.00506a20
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add eax, dword [edi + 0x3890]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
mov dword [edi + 0x389c], eax
mov eax, dword [0x55a3f8]
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x499236
push 0x80
push ebx
push ebx
push ebx
push 0xc952
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
jne 0x49922d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x55a3ec], eax
mov eax, dword [0x55a3f8]
mov ebx, esi
jmp 0x499240
mov dword [0x55a3ec], 0x57
mov dword [ebp + 0x18], 0
test eax, eax
je 0x49927d
push 0x80
push 0
push 0
push 0
push 0xc953
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
jne 0x499273
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x55a3ec], eax
mov eax, dword [0x55a3f8]
mov dword [ebp + 0x18], esi
jmp 0x499287
mov dword [0x55a3ec], 0x57
mov dword [ebp + 0x14], 0
test eax, eax
je 0x4992c4
push 0x80
push 0
push 0
push 0
push 0xc954
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
jne 0x4992ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x55a3ec], eax
mov eax, dword [0x55a3f8]
mov dword [ebp + 0x14], esi
jmp 0x4992ce
mov dword [0x55a3ec], 0x57
xor edx, edx
test eax, eax
je 0x4992fd
push 0x80
push edx
push edx
push edx
push 0xc955
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
jne 0x4992f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x55a3ec], eax
mov edx, esi
jmp 0x499307
mov dword [0x55a3ec], 0x57
mov ecx, dword [edi + 0x3890]
mov eax, dword [edi + 0x3894]
mov dword [edi + 0x504], ebx
mov ebx, dword [ebp + 0x18]
mov dword [edi + 0x508], ebx
mov ebx, dword [ebp + 0x14]
mov dword [edi + 0x560], ecx
mov dword [edi + 0x570], ecx
push 0x5210
lea ecx, [ebp - 0x44]
mov dword [edi + 0x50c], ebx
xor ebx, ebx
push ecx
mov ecx, 0x55a400
mov dword [edi + 0x510], edx
mov byte [edi + 0x4f5], 1
mov dword [edi + 0x558], ebx
mov dword [edi + 0x55c], ebx
mov dword [edi + 0x564], eax
mov dword [edi + 0x568], ebx
mov dword [edi + 0x56c], ebx
mov dword [edi + 0x574], eax
call fcn.00467b90
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004fce50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x44]
cmp eax, ebx
je 0x4993a5
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x4f0], ebx
cmp eax, ebx
jne 0x4993b7
mov eax, 0x538640
mov edx, dword [edi + 0x3894]
mov ecx, dword [edi + 0x3890]
push edx
mov edx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push eax
push 0x17fa
push edx
mov eax, 0x10000000
lea ecx, [edi + 0x330]
call fcn.00433520
mov ecx, dword [edi + 0x360]
mov esi, eax
test ecx, ecx
je 0x499402
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x499416
mov ecx, dword [edi + 0x35c]
mov ecx, dword [ecx + 4]
mov dword [ecx + edi + 0x35c], 6
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x499422
mov edi, 0x538640
mov ecx, dword [ebp - 0x24]
call fcn.00506a20
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x3890]
add edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x3898]
add edx, dword [ebp - 0x10]
mov ecx, dword [esi + 0x389c]
mov dword [esi + 0x38a0], eax
mov eax, dword [ebp - 0x28]
push str.PhotoEditorPage_ViewScrlBtn_Cmp
mov dword [esi + 0x3888], edx
mov dword [esi + 0x38a4], ecx
call fcn.004fcf00
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x499473
mov eax, 0x538640
xor ebx, ebx
cmp dword [edi + 8], ebx
jle 0x4994a0
test eax, eax
je 0x4994a0
cmp word [eax], bx
je 0x4994a0
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x49948f
mov ecx, 0x538640
push ecx
push 0
push str.LMargin
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x4994ac
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x4994d7
test ecx, ecx
je 0x4994d7
cmp word [ecx], ax
je 0x4994d7
mov eax, dword [edi + 4]
test eax, eax
jne 0x4994c8
mov eax, 0x538640
push eax
push 0
push str.RMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add eax, dword [esi + 0x3890]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x38ac], eax
add eax, ebx
mov dword [esi + 0x388c], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x38a8], ebx
test eax, eax
je 0x499508
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