Function at 0x485257
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov esi, ecx
mov dword [ebp - 0x14], esi
jne 0x485288
push edi
push esi
call fcn.00412371
mov eax, dword [esi + 0x28]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x485288
mov eax, 0x80070057
jmp 0x4856f6
push esi
lea ecx, [ebp - 0x38]
call fcn.004462b2
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
mov byte [ebp - 3], 0
xor ecx, ecx
jmp 0x485300
mov eax, ecx
call fcn.0043daaf
test al, al
jne 0x485308
cmp cx, 0x2d
jne 0x4852c1
or byte [ebp - 5], 8
jmp 0x4852fb
cmp cx, 0x7c
jne 0x4852cd
or byte [ebp - 5], 0x10
jmp 0x4852fb
cmp cx, 0x2b
jne 0x4852d9
or byte [ebp - 5], 4
jmp 0x4852fb
cmp cx, 0x2e
jne 0x4852e5
mov byte [ebp - 2], 1
jmp 0x4852fb
cmp cx, 0x3e
jne 0x4852f1
mov byte [ebp - 3], 2
jmp 0x4852fb
cmp cx, 0x2a
jne 0x4852fb
mov byte [ebp - 1], 1
inc edx
inc edx
mov dword [ebp + 8], edx
mov cx, word [edx]
cmp cx, di
jne 0x4852aa
lea eax, [ebp + 8]
push ebx
push eax
call fcn.0043dae7
mov esi, dword [ebp + 8]
push 0x2c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
call fcn.004a7e7b
mov ebx, dword [ebp - 0x18]
mov ax, word [ebx]
mov word [ebx], di
pop ecx
mov word [ebp - 0x24], ax
mov edi, 0x80000000
jmp 0x485483
push 7
push esi
push str._center
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48535a
mov dword [ebp - 0xc], 0x40000000
jmp 0x485477
push 6
push esi
push str._right
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48537a
mov dword [ebp - 0xc], 0x20000000
jmp 0x485477
push 5
push esi
push str._left
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x485396
mov dword [ebp - 0xc], edi
jmp 0x485477
push 6
push esi
push str._trans
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x4853b3
or byte [ebp - 5], 2
jmp 0x485477
push 2
push esi
push 0x4c689c
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x4853d0
or byte [ebp - 8], 0x80
jmp 0x485477
push 3
push esi
push 0x4c7ed0
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x4853f7
mov eax, dword [ebp - 8]
and eax, 0xffffff7f
or eax, 0x20
mov dword [ebp - 8], eax
jmp 0x485477
push 3
push esi
push 0x4c7ecc
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x485411
or byte [ebp - 5], 1
jmp 0x485477
push 8
push esi
push str._vcenter
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48542b
or byte [ebp - 7], 1
jmp 0x485477
push 5
push esi
push str._ncmd
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x485445
or dword [ebp - 8], 0x40
jmp 0x485477
push 3
push esi
push 0x4c5b84
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48545f
or byte [ebp - 6], 0x20
jmp 0x485477
push 4
push esi
push str._mod
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x485477
or byte [ebp - 6], 0x40
lea eax, [ebp + 8]
push eax
call fcn.00408ddd
mov esi, dword [ebp + 8]
cmp word [esi], 0x2d
pop ecx
je 0x48533a
mov ax, word [ebp - 0x24]
mov word [ebx], ax
mov eax, dword [ebp - 0xc]
or dword [ebp - 8], eax
cmp word [esi], 0x2a
mov byte [ebp - 4], 0
jne 0x4854b8
inc esi
lea eax, [ebp + 8]
inc esi
push eax
mov byte [ebp - 4], 1
mov dword [ebp + 8], esi
call fcn.0043dae7
pop ecx
mov esi, 0x4bca0c
push esi
lea ecx, [ebp - 0x10]
call fcn.0044cd74
push esi
lea ecx, [ebp - 0xc]
call fcn.0044cd74
lea ecx, [ebp - 0x18]
call fcn.00443f5b
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044cd74
mov eax, dword [ebp + 0x10]
push 0x2c
pop esi
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call fcn.00446d58
mov ecx, dword [ebp - 0x14]
add esp, 0xc
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.00402eb0
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x48560b
add dword [ebp + 8], 2
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00456f8f
push eax
call fcn.004500a2
mov eax, dword [ebp + 8]
add esp, 0x14
cmp word [eax], si
jne 0x48560b
add dword [ebp + 8], 2
push edi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00456f8f
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00446e14
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x48560b
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446e48
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x48560b
add dword [ebp + 8], 2
push edi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00456f8f
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.00446e83
movsx eax, ax
cmp eax, 3
pop ecx
pop ecx
jge 0x4855d8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x40], ecx
cmp eax, 4
jge 0x4855e3
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x48560b
add dword [ebp + 8], 2
push edi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00456f8f
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00446e14
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x48563e
lea ecx, [ebp + 8]
call fcn.00443f5b
mov ecx, dword [ebp - 0x14]
push edi
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x2c]
call fcn.00454bdd
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0043db4f
cmp byte [ebp - 2], 0
jne 0x48564f
push ebx
push dword [ebp - 0xc]
call fcn.004141d2
pop ecx
pop ecx
cmp byte [ebp - 3], 0
je 0x485659
or byte [ebp - 5], 1
lea eax, [ebp - 0xc]
push eax
call fcn.0044770a
cmp dword [ebp - 0x48], ebx
mov eax, dword [0x4d6360]
pop ecx
jge 0x48567c
cmp dword [ebp - 0x44], ebx
jge 0x485684
cmp dword [ebp - 0x40], ebx
jge 0x48567c
cmp dword [ebp - 0x3c], ebx
jl 0x48568c
cmp dword [ebp - 0x44], ebx
jge 0x485684
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x3c], ebx
jge 0x48568c
mov dword [ebp - 0x3c], eax
cmp byte [ebp - 4], 0
pop ebx
je 0x485698
mov eax, dword [ebp - 0x14]
jmp 0x4856a1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x194]
push dword [ebp - 8]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0048326d
lea ecx, [ebp - 0x2c]
call fcn.0043db4f
lea ecx, [ebp - 0x18]
call fcn.0043db4f
lea ecx, [ebp - 0xc]
call fcn.0043db4f
lea ecx, [ebp - 0x10]
call fcn.0043db4f
lea ecx, [ebp - 0x38]
call fcn.0043db4f
xor eax, eax
pop edi
pop esi
leave
ret 0xc