Function at 0x494528
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], esi
jne 0x494559
push ebx
push esi
call fcn.00412570
mov esi, dword [esi + 0x28]
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], esi
jne 0x494559
mov eax, 0x80070057
jmp 0x494a22
lea eax, [ebp + 8]
push edi
push eax
call fcn.0043dcd9
mov edi, dword [ebp + 8]
mov esi, 0x80000000
push 0x2c
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ebx
call fcn.00405636
mov ebx, dword [ebp - 0x18]
mov ax, word [ebx]
and word [ebx], 0
and dword [ebp - 0x34], 0
pop ecx
pop ecx
mov word [ebp - 0x30], ax
jmp 0x4945f1
push 7
push edi
push str._center
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x494771
mov dword [ebp - 0xc], 0x40000000
lea eax, [ebp + 8]
push eax
call fcn.00405676
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
je 0x4945e4
and word [eax], 0
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043dcd9
pop ecx
mov edi, dword [ebp + 8]
cmp word [edi], 0x2d
je 0x4945a9
mov ax, word [ebp - 0x30]
push dword [ebp - 8]
mov word [ebx], ax
mov ebx, dword [ebp - 4]
or ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x48]
call fcn.0044646b
mov esi, 0x4bca2c
push esi
lea ecx, [ebp - 0x10]
call fcn.0044cf2d
push esi
lea ecx, [ebp - 4]
call fcn.0044cf2d
push esi
lea ecx, [ebp - 0xc]
call fcn.0044cf2d
push esi
lea ecx, [ebp - 0x3c]
call fcn.0044cf2d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
xor eax, eax
cmp word [edi], 0x2a
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov byte [ebp + 0x13], al
jne 0x49466b
inc edi
lea eax, [ebp + 8]
inc edi
push eax
mov byte [ebp + 0x13], 1
mov dword [ebp + 8], edi
call fcn.0043dcd9
pop ecx
push 0x2c
pop esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446f11
mov ecx, dword [ebp - 8]
add esp, 0xc
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.00402ed1
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x49475e
push 2
pop edi
add dword [ebp + 8], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0045708a
push eax
call fcn.0045025b
mov eax, dword [ebp + 8]
add esp, 0x14
cmp word [eax], si
jne 0x49475e
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0045708a
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00446fcd
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x49475e
add dword [ebp + 8], edi
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00447001
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x49475e
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0045708a
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00446f11
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x49475e
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0045708a
push dword [eax]
call fcn.00450534
pop ecx
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x13], 0
pop edi
je 0x4949b2
mov eax, dword [ebp - 8]
jmp 0x4949bb
push 6
push edi
push str._right
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x494791
mov dword [ebp - 0xc], 0x20000000
jmp 0x4945c8
push 5
push edi
push str._left
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x4947ad
mov dword [ebp - 0xc], esi
jmp 0x4945c8
push 8
push edi
push str._pcenter
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x4947ca
or byte [ebp - 2], 0x80
jmp 0x4945c8
push 6
push edi
push str._round
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x4947e7
or byte [ebp - 2], 0x20
jmp 0x4945c8
push 7
push edi
push str._nscope
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x494804
or byte [ebp - 2], 0x40
jmp 0x4945c8
push 8
push edi
push str._nscopef
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x494821
or byte [ebp - 2], 0x50
jmp 0x4945c8
push 7
push edi
push str._nfocus
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x49483e
or byte [ebp - 2], 0x10
jmp 0x4945c8
push 4
push edi
push str._def
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x49485b
or byte [ebp - 2], 8
jmp 0x4945c8
push 3
push edi
push 0x4c555c
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x494878
or byte [ebp - 1], 2
jmp 0x4945c8
push 2
push edi
push 0x4c8ae0
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x49489a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
jmp 0x4945c8
push 3
push edi
push 0x4c8adc
call fcn.0043f11b
add esp, 0xc
test al, al
je 0x4948fe
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.004441a1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
add edi, 6
mov dword [ebp + 8], edi
call fcn.00459645
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405656
add esp, 0x18
test eax, eax
jle 0x4948f6
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1c]
jmp 0x4949a8
push 6
push edi
push str._font:
call fcn.0043f11b
add esp, 0xc
test al, al
je 0x494934
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
add edi, 0xc
mov dword [ebp + 8], edi
call fcn.00459645
add esp, 0x10
jmp 0x4945ee
push 7
push edi
push str._color:
call fcn.0043f11b
add esp, 0xc
test al, al
je 0x4945c8
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
call fcn.004441a1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
add edi, 0xe
mov dword [ebp + 8], edi
call fcn.00459645
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0044703c
movsx eax, ax
add esp, 0x18
test eax, eax
je 0x49498f
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], ecx
cmp eax, 3
jge 0x49499a
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
cmp eax, 4
jge 0x4949a5
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x20]
call fcn.0043dd41
jmp 0x4945ee
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x194]
push dword [ebp - 0x24]
movzx ecx, word [ebp - 0x20]
push dword [ebp - 0x14]
or ecx, ebx
push dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00493fb2
lea ecx, [ebp - 0x3c]
call fcn.0043dd41
lea ecx, [ebp - 0xc]
call fcn.0043dd41
lea ecx, [ebp - 4]
call fcn.0043dd41
lea ecx, [ebp - 0x10]
call fcn.0043dd41
lea ecx, [ebp - 0x48]
call fcn.0043dd41
lea ecx, [ebp - 0x34]
call fcn.0043dd41
xor eax, eax
pop esi
pop ebx
leave
ret 0xc